[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Y7MQJ024DS8T5PT5KRAKF":3,"skill-same:01M77Y7MQJ024DS8T5PT5KRAKF":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77Y7MQJ024DS8T5PT5KRAKF","zig-standards",null,"Use when writing, reviewing, testing, formatting, or configuring any Zig code (.zig files, build.zig, build.zig.zon) in a touchstone repo — exact-version-pinned compiler (Zig is pre-1.0 and moving), zig fmt, zig build\u002Ftest, comptime generics, explicit allocators, error unions, cross-compilation. Invoke before adding deps, touching memory\u002Fallocators, choosing a release mode, or wiring C interop. Not for cross-cutting supply-chain (security-standards) or pipeline (ci-cd-standards) concerns.","hwanngo\u002Ftouchstone","hwanngo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40811995?v=4","01M77Y071N2D3A6BMB2GVS4F36","01M77Y072AAS1FW736DJ42EP5S",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fzig-standards\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: zig-standards\ndescription: Use when writing, reviewing, testing, formatting, or configuring any Zig code (.zig files, build.zig, build.zig.zon) in a touchstone repo — exact-version-pinned compiler (Zig is pre-1.0 and moving), zig fmt, zig build\u002Ftest, comptime generics, explicit allocators, error unions, cross-compilation. Invoke before adding deps, touching memory\u002Fallocators, choosing a release mode, or wiring C interop. Not for cross-cutting supply-chain (security-standards) or pipeline (ci-cd-standards) concerns.\nlicense: MIT\nmetadata:\n  version: 0.2.0\n  author: touchstone\n---\n\n# Zig Standards\n\nFull standard: **`standards\u002Flanguages\u002Fzig.md`** in the touchstone repo. This skill inlines the\nload-bearing rules so it stays useful even when installed standalone in `~\u002F.claude\u002Fskills\u002F`:\n\n## Always\n- **Pin the exact compiler** — Zig is pre-1.0; there's no rustup\u002Fnvm, the binary *is* the version. Commit a `.zigversion`, pin it in CI, set `minimum_zig_version` in `build.zig.zon`, and treat every bump as a real migration (std + build API churn each release).\n- Format with **`zig fmt --check .`** (one canonical style, no config); build and test with **`zig build`** + **`zig build test`** wired as steps in `build.zig`.\n- Add dependencies only via **`zig fetch --save`** (writes URL + pinned content hash into `build.zig.zon`); commit `build.zig.zon`. Never hand-edit a hash.\n- **Generics are `comptime` functions returning `type`** — no macros, no preprocessor, no hidden codegen.\n\n## Don't get burned\n- **Memory:** library functions take an `Allocator` param (no hidden\u002Fglobal allocation); pair every `alloc`\u002F`create` with one `free`\u002F`destroy`; `defer` to release, **`errdefer`** to unwind on the error path. An **arena** for request-scoped lifetimes.\n- **Leaks are test failures:** use **`std.testing.allocator`** in every test that allocates; run binaries on the `DebugAllocator` (formerly `GeneralPurposeAllocator`) in Debug\u002FReleaseSafe to catch leaks\u002Fdouble-free\u002Fuse-after-free.\n- **Errors are values (`!T`):** propagate with `try`, handle with `catch` — never a blind `catch {}` or `catch unreachable`; no `@panic`\u002F`unreachable` on bad input (that's for stating invariants).\n- **No hidden control flow:** no exceptions, no destructors, no operator overloading — what you read is what runs; keep that property in your own APIs.\n- **Release modes are a deliberate choice:** ship **ReleaseSafe** (checks on, near-Fast speed) unless a *profiled* hot path justifies **ReleaseFast\u002FSmall**, which disable safety checks and make overflow\u002FOOB real UB.\n- **C interop crosses the safety boundary:** `@cImport`\u002F`zig cc` give zero-boilerplate C builds (Zig can replace Make\u002FCMake and cross-compile C for free), but wrap C APIs in a validating Zig layer that owns lifetimes.\n- **Cross-compilation is the default superpower:** `zig build -Dtarget=…` builds any target from any host with no cross-toolchain; target static `*-linux-musl` for distroless containers.\n\n## Done\n`zig fmt --check .` clean · `zig build` + `zig build test` green with **no leaks** (`std.testing.allocator`) · built on the pinned version with `minimum_zig_version` set · `build.zig.zon` committed, deps added via `zig fetch --save` · library funcs take an `Allocator`, errors propagated\u002Fhandled (none dropped) · ships ReleaseSafe unless a profiled hot path says otherwise. See `standards\u002Flanguages\u002Fzig.md`.\n","# Zig Standards\n\nFull standard: **`standards\u002Flanguages\u002Fzig.md`** in the touchstone repo. This skill inlines the\nload-bearing rules so it stays useful even when installed standalone in `~\u002F.claude\u002Fskills\u002F`:\n\n## Always\n- **Pin the exact compiler** — Zig is pre-1.0; there's no rustup\u002Fnvm, the binary *is* the version. Commit a `.zigversion`, pin it in CI, set `minimum_zig_version` in `build.zig.zon`, and treat every bump as a real migration (std + build API churn each release).\n- Format with **`zig fmt --check .`** (one canonical style, no config); build and test with **`zig build`** + **`zig build test`** wired as steps in `build.zig`.\n- Add dependencies only via **`zig fetch --save`** (writes URL + pinned content hash into `build.zig.zon`); commit `build.zig.zon`. Never hand-edit a hash.\n- **Generics are `comptime` functions returning `type`** — no macros, no preprocessor, no hidden codegen.\n\n## Don't get burned\n- **Memory:** library functions take an `Allocator` param (no hidden\u002Fglobal allocation); pair every `alloc`\u002F`create` with one `free`\u002F`destroy`; `defer` to release, **`errdefer`** to unwind on the error path. An **arena** for request-scoped lifetimes.\n- **Leaks are test failures:** use **`std.testing.allocator`** in every test that allocates; run binaries on the `DebugAllocator` (formerly `GeneralPurposeAllocator`) in Debug\u002FReleaseSafe to catch leaks\u002Fdouble-free\u002Fuse-after-free.\n- **Errors are values (`!T`):** propagate with `try`, handle with `catch` — never a blind `catch {}` or `catch unreachable`; no `@panic`\u002F`unreachable` on bad input (that's for stating invariants).\n- **No hidden control flow:** no exceptions, no destructors, no operator overloading — what you read is what runs; keep that property in your own APIs.\n- **Release modes are a deliberate choice:** ship **ReleaseSafe** (checks on, near-Fast speed) unless a *profiled* hot path justifies **ReleaseFast\u002FSmall**, which disable safety checks and make overflow\u002FOOB real UB.\n- **C interop crosses the safety boundary:** `@cImport`\u002F`zig cc` give zero-boilerplate C builds (Zig can replace Make\u002FCMake and cross-compile C for free), but wrap C APIs in a validating Zig layer that owns lifetimes.\n- **Cross-compilation is the default superpower:** `zig build -Dtarget=…` builds any target from any host with no cross-toolchain; target static `*-linux-musl` for distroless containers.\n\n## Done\n`zig fmt --check .` clean · `zig build` + `zig build test` green with **no leaks** (`std.testing.allocator`) · built on the pinned version with `minimum_zig_version` set · `build.zig.zon` committed, deps added via `zig fetch --save` · library funcs take an `Allocator`, errors propagated\u002Fhandled (none dropped) · ships ReleaseSafe unless a profiled hot path says otherwise. See `standards\u002Flanguages\u002Fzig.md`.\n",{"name":5,"license":14,"metadata":23,"description":7},{"author":24,"version":25},"touchstone","0.2.0","main","d733e177953000560b4cee8f6c01c63aa7a498f0","skills\u002Fzig-standards","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone","https:\u002F\u002Fgithub.com\u002Fhwanngo","\"There is always one more bug to fix.\"","2026-08-26 01:16:05",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add hwanngo\u002Ftouchstone --skill zig-standards",{"tool":39,"command":40},"bunx","bunx skills add hwanngo\u002Ftouchstone --skill zig-standards",{"tool":42,"command":43},"pnpm","pnpm dlx skills add hwanngo\u002Ftouchstone --skill zig-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fzig-standards\u002FSKILL.md",true,[],[48,55,62,67,72,77],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M77YA15EH4A1SDYPZSPZSE8V","ok-standards","Use when writing shell, per standards\u002Flanguages\u002Fshell.md.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fstandards-known-good\u002Fskills\u002Fok-standards\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M77Y9YK8K580BZ6GNZP6N0PW","demo-standards","Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-url-ignored\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":63,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M77Y9VKRQH1CD8B7Y1BZX0PX","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-stray-xml\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":68,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77Y9SZBHZJES7014P5W1A33","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-sentence-period\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":73,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M77Y9Q6PRTYDTPR8EK0TMJC6","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-relative-dead\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":78,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M77Y9NH1Z2528QQ6VQ45G6RV","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-outside-repo\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[]]