[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B1XSCEXX83SCPPKZQZ627S":3,"skill-same:01M7B1XSCEXX83SCPPKZQZ627S":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7B1XSCEXX83SCPPKZQZ627S","zig-best-practices",null,"Use when reading or writing Zig files (.zig, build.zig, build.zig.zon).","Yabuku-xD\u002Fomfx","Yabuku-xD","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78594762?v=4","01M7B1X88FX04Z53K2S2P3N2Z9","Shyamalan Kannan","01M7B1X89G34W3D025T1F4KNKF",0,"MIT","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-best-practices\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: zig-best-practices\ndescription: Use when reading or writing Zig files (.zig, build.zig, build.zig.zon).\n---\n\n# Zig Best Practices\n\nFollows type-first, functional, and error handling patterns from CLAUDE.md. This skill covers Zig-specific idioms only.\n\n## Type System Patterns\n\n**Tagged unions for mutually exclusive states** — prevents invalid combinations that a struct with multiple nullable fields would allow:\n```zig\nconst RequestState = union(enum) {\n    idle,\n    loading,\n    success: []const u8,\n    failure: anyerror,\n};\n```\n\n**Explicit error sets** — documents exactly what can fail; `anyerror` hides failure modes:\n```zig\nconst ParseError = error{ InvalidSyntax, UnexpectedToken, EndOfInput };\nfn parse(input: []const u8) ParseError!Ast { ... }\n```\n\n**Distinct types for domain IDs** — compiler prevents mixing up different ID types:\n```zig\nconst UserId = enum(u64) { _ };\nconst OrderId = enum(u64) { _ };\n```\n\n**Comptime validation** — catch invalid configurations at compile time, not runtime:\n```zig\nfn Buffer(comptime size: usize) type {\n    if (size == 0) @compileError(\"buffer size must be greater than 0\");\n    return struct { data: [size]u8 = undefined, len: usize = 0 };\n}\n```\n\n## Memory Management\n\n- Pass allocators explicitly to every function that allocates; no global allocator state.\n- Place `defer resource.deinit()` immediately after acquisition — keeps cleanup co-located with creation.\n- Use `errdefer` for cleanup on error paths; `defer` for unconditional cleanup.\n- Use arena allocators for batch\u002Ftemporary work; they free everything at once.\n- Use `std.testing.allocator` in tests — reports leaks with stack traces.\n\n```zig\nfn createResource(allocator: std.mem.Allocator) !*Resource {\n    const resource = try allocator.create(Resource);\n    errdefer allocator.destroy(resource);  \u002F\u002F runs only on error\n    resource.* = try initializeResource();\n    return resource;\n}\n```\n\n## Key Conventions\n\n- Prefer `const` over `var`; prefer slices over raw pointers.\n- Prefer `comptime T: type` over `anytype`; explicit types produce clearer errors. Use `anytype` only for genuinely polymorphic cases (callbacks, `std.debug.print`-style).\n- Exhaustive `switch`: include an `else` returning an error or `unreachable` for truly impossible cases.\n- Use `std.log.scoped(.module_name)` for namespaced logging; define a module-level `const log` constant.\n- Larger cohesive files are idiomatic — tests alongside implementation, comptime generics at file scope.\n\n## Advanced Topics\n\n- **Generic containers** (queues, stacks, trees): See [GENERICS.md](GENERICS.md)\n- **C library interop** (raylib, SDL, curl): See [C-INTEROP.md](C-INTEROP.md)\n- **Debugging memory leaks** (GPA, stack traces): See [DEBUGGING.md](DEBUGGING.md)\n\n## Tooling\n\n**zigdoc** — browse std library and dependency docs:\n```bash\nzigdoc std.mem.Allocator   # std lib symbol\nzigdoc vaxis.Window        # project dependency\nzigdoc @init               # create AGENTS.md with API patterns\n```\n\n**ziglint** — static analysis with `.ziglint.zon` config:\n```bash\nziglint                    # lint current directory\nziglint --ignore Z001      # suppress specific rule\n```\n\n## References\n\n- Language Reference: https:\u002F\u002Fziglang.org\u002Fdocumentation\u002F0.15.2\u002F\n- Standard Library: https:\u002F\u002Fziglang.org\u002Fdocumentation\u002F0.15.2\u002Fstd\u002F\n- Zig Guide: https:\u002F\u002Fzig.guide\u002F\n","# Zig Best Practices\n\nFollows type-first, functional, and error handling patterns from CLAUDE.md. This skill covers Zig-specific idioms only.\n\n## Type System Patterns\n\n**Tagged unions for mutually exclusive states** — prevents invalid combinations that a struct with multiple nullable fields would allow:\n```zig\nconst RequestState = union(enum) {\n    idle,\n    loading,\n    success: []const u8,\n    failure: anyerror,\n};\n```\n\n**Explicit error sets** — documents exactly what can fail; `anyerror` hides failure modes:\n```zig\nconst ParseError = error{ InvalidSyntax, UnexpectedToken, EndOfInput };\nfn parse(input: []const u8) ParseError!Ast { ... }\n```\n\n**Distinct types for domain IDs** — compiler prevents mixing up different ID types:\n```zig\nconst UserId = enum(u64) { _ };\nconst OrderId = enum(u64) { _ };\n```\n\n**Comptime validation** — catch invalid configurations at compile time, not runtime:\n```zig\nfn Buffer(comptime size: usize) type {\n    if (size == 0) @compileError(\"buffer size must be greater than 0\");\n    return struct { data: [size]u8 = undefined, len: usize = 0 };\n}\n```\n\n## Memory Management\n\n- Pass allocators explicitly to every function that allocates; no global allocator state.\n- Place `defer resource.deinit()` immediately after acquisition — keeps cleanup co-located with creation.\n- Use `errdefer` for cleanup on error paths; `defer` for unconditional cleanup.\n- Use arena allocators for batch\u002Ftemporary work; they free everything at once.\n- Use `std.testing.allocator` in tests — reports leaks with stack traces.\n\n```zig\nfn createResource(allocator: std.mem.Allocator) !*Resource {\n    const resource = try allocator.create(Resource);\n    errdefer allocator.destroy(resource);  \u002F\u002F runs only on error\n    resource.* = try initializeResource();\n    return resource;\n}\n```\n\n## Key Conventions\n\n- Prefer `const` over `var`; prefer slices over raw pointers.\n- Prefer `comptime T: type` over `anytype`; explicit types produce clearer errors. Use `anytype` only for genuinely polymorphic cases (callbacks, `std.debug.print`-style).\n- Exhaustive `switch`: include an `else` returning an error or `unreachable` for truly impossible cases.\n- Use `std.log.scoped(.module_name)` for namespaced logging; define a module-level `const log` constant.\n- Larger cohesive files are idiomatic — tests alongside implementation, comptime generics at file scope.\n\n## Advanced Topics\n\n- **Generic containers** (queues, stacks, trees): See [GENERICS.md](GENERICS.md)\n- **C library interop** (raylib, SDL, curl): See [C-INTEROP.md](C-INTEROP.md)\n- **Debugging memory leaks** (GPA, stack traces): See [DEBUGGING.md](DEBUGGING.md)\n\n## Tooling\n\n**zigdoc** — browse std library and dependency docs:\n```bash\nzigdoc std.mem.Allocator   # std lib symbol\nzigdoc vaxis.Window        # project dependency\nzigdoc @init               # create AGENTS.md with API patterns\n```\n\n**ziglint** — static analysis with `.ziglint.zon` config:\n```bash\nziglint                    # lint current directory\nziglint --ignore Z001      # suppress specific rule\n```\n\n## References\n\n- Language Reference: https:\u002F\u002Fziglang.org\u002Fdocumentation\u002F0.15.2\u002F\n- Standard Library: https:\u002F\u002Fziglang.org\u002Fdocumentation\u002F0.15.2\u002Fstd\u002F\n- Zig Guide: https:\u002F\u002Fzig.guide\u002F\n",{"name":5,"description":7},"main","ebe6483a57ceac5b9da32b4a23fa4ba2fa7ac170",".agents\u002Fskills\u002Fzig-best-practices","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx","https:\u002F\u002Fgithub.com\u002FYabuku-xD","shyamalankannan.com","😳 Indie-head with a versatile knowledge in development and modeling.","2026-11-13 04:46:29",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Yabuku-xD\u002Fomfx --skill zig-best-practices",{"tool":38,"command":39},"bunx","bunx skills add Yabuku-xD\u002Fomfx --skill zig-best-practices",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Yabuku-xD\u002Fomfx --skill zig-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-best-practices\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"C-INTEROP.md","REFERENCE","参考文档",2088,"https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-best-practices\u002FC-INTEROP.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"DEBUGGING.md",1674,"https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-best-practices\u002FDEBUGGING.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"GENERICS.md",1789,"https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-best-practices\u002FGENERICS.md",[61,68,75,82,88,95],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7B1ZQXR4F45F34W3A9DH795","hello-omfx","Example skill. Use when testing omfx skill discovery.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002Fskills\u002Fhello-omfx\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7B1ZJ19F0WDTZKD05EMGS5V","zig-tiger-style","TigerStyle Zig coding guidelines — distilled from TigerBeetle's production codebase. Use this skill whenever the user is writing, reviewing, or refactoring Zig code, asking about Zig idioms, best practices, assertions, memory layout, naming conventions, or code style. Also trigger when the user asks how to structure Zig structs, handle errors, write safe loops, or design Zig APIs. Even if the user just says \"write me some Zig\" or pastes Zig code for review, consult this skill first.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-tiger-style\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7B1ZFD4G462R79S6GYFXZBM","zig-testing","Zig 测试与调试技能。涉及 std.testing 的断言、测试组织、内存泄漏检测、以及 std.debug 的日志、堆栈回溯。在需要编写测试、调试代码、诊断问题时调用。","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-testing\u002FSKILL.md",[],[],{"skillNo":83,"name":77,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7B1Z9K5AWQ89KBWSVK7Q9KM","Zig testing skill for writing and running tests. Use when using zig build test, writing comptime tests, using test filters, working with test allocators to detect leaks, or using Zig's built-in fuzz testing (0.14+). Activates on queries about Zig tests, zig test, zig build test, comptime testing, test allocators, Zig fuzz testing, or detecting memory leaks in Zig tests.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-testing-lowlevel\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7B1Z52KAWNN9PPKMX9FP06N","zig-project-structure","Zig 项目结构全生命周期管理。创建项目骨架（exe\u002Flib\u002F多模块\u002F带依赖）或检查已有项目的目录结构、文件命名、构建配置合规性，输出结构化报告。","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-project-structure\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7B1YXXZMP87C8DDYPM213N8","zig-memory-patterns","This skill should be used when the user asks questions like \"how do allocators work in Zig\", \"explain Zig memory management\", \"when to use arena allocator\", \"how does Zig compare to Rust ownership\", \"how to manage memory in Zig\", or asks about memory allocation patterns for programmers coming from C, C++, Rust, or garbage-collected languages.","https:\u002F\u002Fgithub.com\u002FYabuku-xD\u002Fomfx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzig-memory-patterns\u002FSKILL.md",[],[]]