[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AG7BYDAF81B85T8KF08MKP":3,"skill-same:01M7AG7BYDAF81B85T8KF08MKP":70},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7AG7BYDAF81B85T8KF08MKP","comment-checker-setup",null,"systemfsoftware\u002Fcomment-checker","systemfsoftware","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F172220390?v=4","01M77N4P2T87WAH2KS0GYARYP3","System F Software","01M7AG7778NVY9QS0MERDK3DZV",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: comment-checker-setup\ndescription: Set up or repair a comment-checker PostToolUse hook. Use when comment-checker does not resolve or 'comment-checker did not run' appears on edits, or a flake\u002Fdirenv\u002Fnpm install path must be verified. Triggers on: 'comment-checker setup', 'hook not running', 'doctor the comment checker'. Do not use for comment-writing advice or unrelated hook debugging.\n---\n\n# comment-checker-setup\n\nInstall and verify the comment-checker `PostToolUse` hook so every edit is checked. A hook that cannot resolve its binary checks nothing: it must either find `comment-checker` on PATH or reach it through the direnv bridge, and the whole chain must be proven with the bundled doctor, never by eyeballing a shell.\n\n## When to Activate\n\n```yaml\n- id: A1\n  title: Activate on setup or repair intent\n  do: activate when the task is installing, wiring, or diagnosing the comment-checker hook, or when 'comment-checker did not run' appears on edits\n  dont: activate for comment-style feedback on code you are writing, or for generic hook debugging unrelated to comment-checker\n  check: the request names the hook, the binary, or the 'did not run' symptom\n- id: A2\n  title: Boundary - do not activate for comment writing advice\n  do: for advice about which comments to write or remove, note that comment-checker itself (called as the hook) is the authority and stop\n  dont: apply this skill's setup workflow to comment-content questions\n  check: the ask is about wiring, not about a specific comment's merits\n```\n\n## Workflow: provision and verify\n\n```yaml\n- id: W1\n  title: Run the doctor first\n  do: run `.\u002Fscripts\u002Fdoctor.ts [project-dir]` from a clean environment (no ambient dev-shell PATH), and let its output drive the fix\n  dont: skip the doctor and hand-edit PATH or directories on suspicion; a resolution failure is traced, not guessed\n  check: the doctor exits 0, or each broken check carries a fix hint you applied\n- id: W2\n  title: Resolve binary on PATH first\n  do: ensure `comment-checker` resolves on PATH (npm global install, or a dev shell that provides it); `command -v comment-checker` from a clean shell must print a path\n  dont: rely on a dev shell you are not provably inside; hook subprocesses do not inherit your interactive shell's direnv state\n  check: `env -i PATH=\u002Fusr\u002Fbin:\u002Fbin sh -c 'command -v comment-checker'` finds it, or the direnv bridge covers the gap\n- id: W3\n  title: Wire the direnv bridge when the repo is flake-based\n  do: when the project has a flake.nix that provides the binary, add `.envrc` containing `use flake` and run `direnv allow`; the hook falls back to `direnv exec` when PATH misses\n  dont: stop at `direnv allow` -- a blocked .envrc loads nothing, so verify with `direnv exec . command -v comment-checker`\n  check: the doctor's direnv bridge check reports [ok]\n- id: W4\n  title: Prove the exit-code contract\n  do: feed a restating-comment payload and a clean payload to the binary and assert exit 2 and exit 0 respectively (the doctor does this)\n  dont: accept 'the binary runs' as 'the hook works' -- presence is not the contract\n  check: the doctor's exit-code contract check reports [ok]\n- id: W5\n  title: Name the real provider in the final report\n  do: state which provider the project uses (npm global, direnv+flake, or nix develop) and that the doctor verified it end-to-end\n  dont: leave the resolution mechanism implicit or report 'verified' without the doctor run\n  check: the report names the provider and cites the doctor exit code\n```\n\n```bash\n# exact commands for W2-W4 (run from the project root)\nenv -i PATH=\u002Fusr\u002Fbin:\u002Fbin sh -c 'command -v comment-checker'   # W2 path probe\nprintf 'use flake\\n' > .envrc && direnv allow                   # W3 wiring\ndirenv exec . command -v comment-checker                         # W3 verify\n```\n\n## Common failures\n\n```yaml\n- id: F1\n  title: Ambiguous PATH shadowing\n  do: when the doctor's identity check fails, treat 'a different program named comment-checker' on PATH as the cause and remove\u002Freorder it\n  dont: assume the shadowing binary is the real checker just because it answers\n  check: the doctor's binary identity check reports the expected `claude-code-comment-checker \u003Csemver>` line\n- id: F2\n  title: Blocked .envrc\n  do: when the direnv bridge fails with 'is blocked', run `direnv allow` and re-run the doctor\n  dont: edit .envrc contents to make the error go away\n  check: `direnv exec . command -v comment-checker` resolves\n- id: F3\n  title: Hook file missing\n  do: when the doctor reports no hook wiring, install the plugin or add the PostToolUse entry to `.claude\u002Fsettings.json`\n  dont: ship a binary with no hook attached and call the setup done\n  check: the doctor's hook wiring check reports [ok]\n```\n\n## Verification\n\n```yaml\n- id: V1\n  title: Doctor is the gate\n  do: run `.\u002Fscripts\u002Fdoctor.ts .` and require exit 0 before claiming the hook works\n  dont: claim 'the comment checker is set up' from a PATH or directory listing alone\n  check: the doctor prints 'all checks passed' and exits 0\n- id: V2\n  title: Doctor scripts stay green\n  do: after any edit to `scripts\u002Fdoctor.ts`, run `deno check doctor.ts && deno lint doctor.ts` (in `scripts\u002F`)\n  dont: ship a doctor that does not typecheck or lint clean\n  check: both `deno check` and `deno lint` exit 0 in the scripts directory\n```\n\n## Scripts\n\n| Script | Purpose | When to run |\n|--------|---------|-------------|\n| `scripts\u002Fdoctor.ts` | Probes resolution, identity, contract, hook wiring, direnv bridge, flake dev shell; exits 0 all-pass, 1 broken | First, and after every fix |\n\n## References (load on demand)\n\n| Reference | When to load (intent) | Hash |\n|-----------|--------------|------|\n| `references\u002Fsetup-resolution.md` | Resolve which provider path applies, or when PATH\u002Fdirenv\u002Fnix ordering matters | `5bed20` |\n\n## Integration\n\n```yaml\n- id: I1\n  title: Coordinate with the agent-harness design\n  do: when the harness that runs the hook needs a path or env change, design it together with this skill's wiring (one change, not two)\n  dont: treat the hook wiring as isolated from how the harness spawns subprocesses\n  check: the resolution falls out of the harness's own env, not a workaround\n```\n\n## Critical Rules at Document End\n\n```yaml\n- id: END1\n  title: A hook that does not resolve checks nothing\n  do: prove resolution and the exit-code contract with the doctor from a clean environment before trusting the hook\n  dont: trust a shell you happened to be in, or a direnv state you did not verify\n  harm: an unverified hook silently checks zero edits, and the failure is invisible until bad comments ship\n  check: `.\u002Fscripts\u002Fdoctor.ts .` exits 0 from a clean env\n- id: END2\n  title: Never edit the body to chase a failing eval\n  do: when a check fails, attribute the cause (resolution, identity, wiring) from the doctor's output and fix that, not the skill text\n  dont: weaken the skill's rules because a fixture fails\n  harm: editing the skill on an unattributed failure ships the drift\n  check: every body edit traces to a diagnosed cause, not to a failing run\n```\n\n## Do not use for\n\n- Writing or judging code comments in your own work — invoke the checker as the hook does.\n- Debugging hook subprocess env unrelated to comment-checker (PATH drop, plugin host) — that is the agent-harness-design skill's surface; cross-reference by capability, never by name.","# comment-checker-setup\n\nInstall and verify the comment-checker `PostToolUse` hook so every edit is checked. A hook that cannot resolve its binary checks nothing: it must either find `comment-checker` on PATH or reach it through the direnv bridge, and the whole chain must be proven with the bundled doctor, never by eyeballing a shell.\n\n## When to Activate\n\n```yaml\n- id: A1\n  title: Activate on setup or repair intent\n  do: activate when the task is installing, wiring, or diagnosing the comment-checker hook, or when 'comment-checker did not run' appears on edits\n  dont: activate for comment-style feedback on code you are writing, or for generic hook debugging unrelated to comment-checker\n  check: the request names the hook, the binary, or the 'did not run' symptom\n- id: A2\n  title: Boundary - do not activate for comment writing advice\n  do: for advice about which comments to write or remove, note that comment-checker itself (called as the hook) is the authority and stop\n  dont: apply this skill's setup workflow to comment-content questions\n  check: the ask is about wiring, not about a specific comment's merits\n```\n\n## Workflow: provision and verify\n\n```yaml\n- id: W1\n  title: Run the doctor first\n  do: run `.\u002Fscripts\u002Fdoctor.ts [project-dir]` from a clean environment (no ambient dev-shell PATH), and let its output drive the fix\n  dont: skip the doctor and hand-edit PATH or directories on suspicion; a resolution failure is traced, not guessed\n  check: the doctor exits 0, or each broken check carries a fix hint you applied\n- id: W2\n  title: Resolve binary on PATH first\n  do: ensure `comment-checker` resolves on PATH (npm global install, or a dev shell that provides it); `command -v comment-checker` from a clean shell must print a path\n  dont: rely on a dev shell you are not provably inside; hook subprocesses do not inherit your interactive shell's direnv state\n  check: `env -i PATH=\u002Fusr\u002Fbin:\u002Fbin sh -c 'command -v comment-checker'` finds it, or the direnv bridge covers the gap\n- id: W3\n  title: Wire the direnv bridge when the repo is flake-based\n  do: when the project has a flake.nix that provides the binary, add `.envrc` containing `use flake` and run `direnv allow`; the hook falls back to `direnv exec` when PATH misses\n  dont: stop at `direnv allow` -- a blocked .envrc loads nothing, so verify with `direnv exec . command -v comment-checker`\n  check: the doctor's direnv bridge check reports [ok]\n- id: W4\n  title: Prove the exit-code contract\n  do: feed a restating-comment payload and a clean payload to the binary and assert exit 2 and exit 0 respectively (the doctor does this)\n  dont: accept 'the binary runs' as 'the hook works' -- presence is not the contract\n  check: the doctor's exit-code contract check reports [ok]\n- id: W5\n  title: Name the real provider in the final report\n  do: state which provider the project uses (npm global, direnv+flake, or nix develop) and that the doctor verified it end-to-end\n  dont: leave the resolution mechanism implicit or report 'verified' without the doctor run\n  check: the report names the provider and cites the doctor exit code\n```\n\n```bash\n# exact commands for W2-W4 (run from the project root)\nenv -i PATH=\u002Fusr\u002Fbin:\u002Fbin sh -c 'command -v comment-checker'   # W2 path probe\nprintf 'use flake\\n' > .envrc && direnv allow                   # W3 wiring\ndirenv exec . command -v comment-checker                         # W3 verify\n```\n\n## Common failures\n\n```yaml\n- id: F1\n  title: Ambiguous PATH shadowing\n  do: when the doctor's identity check fails, treat 'a different program named comment-checker' on PATH as the cause and remove\u002Freorder it\n  dont: assume the shadowing binary is the real checker just because it answers\n  check: the doctor's binary identity check reports the expected `claude-code-comment-checker \u003Csemver>` line\n- id: F2\n  title: Blocked .envrc\n  do: when the direnv bridge fails with 'is blocked', run `direnv allow` and re-run the doctor\n  dont: edit .envrc contents to make the error go away\n  check: `direnv exec . command -v comment-checker` resolves\n- id: F3\n  title: Hook file missing\n  do: when the doctor reports no hook wiring, install the plugin or add the PostToolUse entry to `.claude\u002Fsettings.json`\n  dont: ship a binary with no hook attached and call the setup done\n  check: the doctor's hook wiring check reports [ok]\n```\n\n## Verification\n\n```yaml\n- id: V1\n  title: Doctor is the gate\n  do: run `.\u002Fscripts\u002Fdoctor.ts .` and require exit 0 before claiming the hook works\n  dont: claim 'the comment checker is set up' from a PATH or directory listing alone\n  check: the doctor prints 'all checks passed' and exits 0\n- id: V2\n  title: Doctor scripts stay green\n  do: after any edit to `scripts\u002Fdoctor.ts`, run `deno check doctor.ts && deno lint doctor.ts` (in `scripts\u002F`)\n  dont: ship a doctor that does not typecheck or lint clean\n  check: both `deno check` and `deno lint` exit 0 in the scripts directory\n```\n\n## Scripts\n\n| Script | Purpose | When to run |\n|--------|---------|-------------|\n| `scripts\u002Fdoctor.ts` | Probes resolution, identity, contract, hook wiring, direnv bridge, flake dev shell; exits 0 all-pass, 1 broken | First, and after every fix |\n\n## References (load on demand)\n\n| Reference | When to load (intent) | Hash |\n|-----------|--------------|------|\n| `references\u002Fsetup-resolution.md` | Resolve which provider path applies, or when PATH\u002Fdirenv\u002Fnix ordering matters | `5bed20` |\n\n## Integration\n\n```yaml\n- id: I1\n  title: Coordinate with the agent-harness design\n  do: when the harness that runs the hook needs a path or env change, design it together with this skill's wiring (one change, not two)\n  dont: treat the hook wiring as isolated from how the harness spawns subprocesses\n  check: the resolution falls out of the harness's own env, not a workaround\n```\n\n## Critical Rules at Document End\n\n```yaml\n- id: END1\n  title: A hook that does not resolve checks nothing\n  do: prove resolution and the exit-code contract with the doctor from a clean environment before trusting the hook\n  dont: trust a shell you happened to be in, or a direnv state you did not verify\n  harm: an unverified hook silently checks zero edits, and the failure is invisible until bad comments ship\n  check: `.\u002Fscripts\u002Fdoctor.ts .` exits 0 from a clean env\n- id: END2\n  title: Never edit the body to chase a failing eval\n  do: when a check fails, attribute the cause (resolution, identity, wiring) from the doctor's output and fix that, not the skill text\n  dont: weaken the skill's rules because a fixture fails\n  harm: editing the skill on an unattributed failure ships the drift\n  check: every body edit traces to a diagnosed cause, not to a failing run\n```\n\n## Do not use for\n\n- Writing or judging code comments in your own work — invoke the checker as the hook does.\n- Debugging hook subprocess env unrelated to comment-checker (PATH drop, plugin host) — that is the agent-harness-design skill's surface; cross-reference by capability, never by name.",{},"master","42f048b014981b37e36e8c2f8a1cbee4c0bb4eb9",".claude\u002Fskills\u002Fcomment-checker-setup",1,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker","https:\u002F\u002Fsystemfsoftware.com","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware","https:\u002F\u002Fsystemfsoftware.com\u002F","2026-11-14 08:49:39",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add systemfsoftware\u002Fcomment-checker --skill comment-checker-setup",{"tool":38,"command":39},"bunx","bunx skills add systemfsoftware\u002Fcomment-checker --skill comment-checker-setup",{"tool":41,"command":42},"pnpm","pnpm dlx skills add systemfsoftware\u002Fcomment-checker --skill comment-checker-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002FSKILL.md",true,[46,52,56,62,66],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"evals\u002Fevals.json","REFERENCE","参考文档",1828,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002Fevals\u002Fevals.json",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fsetup-resolution.md",1725,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002Freferences\u002Fsetup-resolution.md",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fdeno.jsonc","SCRIPT","脚本",252,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002Fscripts\u002Fdeno.jsonc",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fdeno.lock",1320,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002Fscripts\u002Fdeno.lock",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fdoctor.ts",7873,"https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fcomment-checker-setup\u002Fscripts\u002Fdoctor.ts",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7AGAPZ6TQCQXXQ2KQB5PQNA","vendored-assets","Vendored assets. Use when importing or updating checked-in third-party or externally generated JavaScript, CSS, registries, schemas, snapshots, or Scalar, Swagger, and MIME artifacts.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002Frepos\u002Feffect\u002F.agents\u002Fskills\u002Fvendored-assets\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7AGAM6BSVZH4B1J6V0NNN9Y","test-development","Test development. Use when adding or changing Vitest or Tstyche coverage. Choose Tstyche only for intended compiler behavior such as inference, assignability, rejection, or displayed public types.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002Frepos\u002Feffect\u002F.agents\u002Fskills\u002Ftest-development\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7AGAHRM5TCB2XYT3AE3KF33","pull-requests","Pull request finalization. Use when a change works and is about to be opened as a pull request, or when updating or continuing an existing one.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002Frepos\u002Feffect\u002F.agents\u002Fskills\u002Fpull-requests\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7AGAF4RTF9NN1R1Y2064Y26","performance-analysis","Performance analysis. Use for runtime throughput or latency benchmarks, TypeScript compiler cost, performance regressions, comparison harnesses, or thresholds.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002Frepos\u002Feffect\u002F.agents\u002Fskills\u002Fperformance-analysis\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7AGACKY1RJ16XDJ9H69XD9K","package-development","Package registration. Use when adding a workspace package, making a private package publishable, renaming a package, or moving its workspace path.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002Frepos\u002Feffect\u002F.agents\u002Fskills\u002Fpackage-development\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7AGAACXGSSF4NWKCDXG5SMB","migration-guidance","Use when changing how a v3 public API maps to v4, editing migration annotations, or regenerating migration\u002Fv3-to-v4.md.","https:\u002F\u002Fgithub.com\u002Fsystemfsoftware\u002Fcomment-checker\u002Fblob\u002Fmaster\u002Frepos\u002Feffect\u002F.agents\u002Fskills\u002Fmigration-guidance\u002FSKILL.md",[],[]]