[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77XWAWFFNCMRH2CM36N5FBF":3,"skill-same:01M77XWAWFFNCMRH2CM36N5FBF":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":30,"ownerDescription":32,"updatedAt":33,"install":34,"resources":46},"01M77XWAWFFNCMRH2CM36N5FBF","node-cli",null,"Patterns and conventions for building Node.js CLI tools — src structure, entry point setup, Commander wiring, and update notifications. Use when creating or modifying a Node.js CLI, adding Commander commands, wiring update-notifier, or asking how to structure a CLI entry point or src directory.","synmux\u002Fclaude-commit","synmux","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F66192?v=4","01M77XNT1GDNA1H74K0RYJ4FBM","syn","01M77XNT2BD5GEXVJ5HP24GTG8",1,"MIT","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fnode-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: node-cli\ndescription: Patterns and conventions for building Node.js CLI tools — src structure, entry point setup, Commander wiring, and update notifications. Use when creating or modifying a Node.js CLI, adding Commander commands, wiring update-notifier, or asking how to structure a CLI entry point or src directory.\ndisable-model-invocation: true\n---\n\n# Node CLI\n\n## src structure\n\n```\nsrc\u002F\n├── index.ts              # Entry point — wires Commander, calls updateNotifier\n├── update-notifier.d.ts  # Type shim for update-notifier package\n├── commands\u002F             # One file per CLI command\n│   ├── add.ts\n│   └── remove.ts\n├── lib\u002F                  # Pure domain logic, no Commander concerns\n│   ├── github.ts         # single-file feature → stays flat\n│   ├── linker.ts\n│   └── push\u002F             # 2+ files → grouped into a feature folder, prefix dropped\n│       ├── index.ts      # barrel: re-exports the feature's public surface\n│       ├── workflow.ts\n│       └── validation.ts\n└── utils\u002F                # Generic helpers — mix flat files and nested groups freely\n    ├── format.ts         # flat single-purpose helper\n    └── fs\u002F               # related helpers grouped under one folder\n        ├── read.ts\n        └── write.ts\ntests\u002F                    # Mirrors src\u002F structure, one test file per module\n├── add.test.ts\n└── linker.test.ts\n```\n\n**conventions:**\n\n- `commands\u002F` — each file exports a single `Command` instance; all CLI concerns (prompts, flags, output) live here\n- `lib\u002F` — framework-agnostic helpers imported by commands; keep them testable in isolation\n- Directories don't have to be flat. Keep a feature flat by default, and group it into a folder **only once it owns 2+ files** — a folder holding one file is just noise. When you group, the folder already names the feature, so drop the redundant prefix from filenames (`lib\u002Fpush\u002Fworkflow.ts`, not `lib\u002Fpush\u002Fpush-workflow.ts`), and use `dir\u002Findex.ts` as the feature's public surface (a barrel re-exporting what commands import, or, for a provider-style seam, the interface\u002Fcontract itself). Commands import the folder, not its internals: `import { planPush } from '..\u002Flib\u002Fpush\u002Findex.js'`, so each feature's internal file split can change without touching call sites.\n\n## Entry point structure\n\n```ts\n#!\u002Fusr\u002Fbin\u002Fenv node\nimport { Command } from \"commander\";\nimport updateNotifier from \"update-notifier\";\nimport packageJson from \"..\u002Fpackage.json\" with { type: \"json\" };\n\n\u002F\u002F Call before parseAsync — notify() defers display to process exit so it\n\u002F\u002F never interleaves with command output.\nupdateNotifier({ pkg: packageJson }).notify();\n\nconst program = new Command(\"your-cli\")\n  .description(\"...\")\n  .version(packageJson.version);\n\nprogram.addCommand(fooCommand);\n\nawait program.parseAsync();\n```\n\n## Testing CLI wiring\n\nKeep executable entrypoints and test seams distinct. If `src\u002Findex.ts` calls\n`parseAsync()` at top level, treat it as executable-only: tests should import\ncommand factories from `src\u002Fcommands\u002F*`, assemble a local `Command`, and pass a\ncontrolled argv. Do not import a top-level executable entrypoint in tests,\nbecause it will parse the test runner's `process.argv`.\n\n```ts\n\u002F\u002F src\u002Fcommands\u002Frun.ts\nimport { Command } from \"commander\";\n\nexport interface RunDispatch {\n  runBatch(): Promise\u003Cvoid> | void;\n}\n\nexport function createRunCommand(dispatch: RunDispatch): Command {\n  return new Command(\"run\").action(async () => {\n    await dispatch.runBatch();\n  });\n}\n```\n\n```ts\n\u002F\u002F tests\u002Fcli.test.ts\nimport { Command } from \"commander\";\nimport { describe, expect, test, vi } from \"vitest\";\nimport { createRunCommand } from \"..\u002Fsrc\u002Fcommands\u002Frun\";\n\ntest(\"dispatches run\", async () => {\n  const dispatch = { runBatch: vi.fn() };\n  const program = new Command(\"your-cli\");\n  program.addCommand(createRunCommand(dispatch));\n\n  await program.parseAsync([\"node\", \"your-cli\", \"run\"]);\n\n  expect(dispatch.runBatch).toHaveBeenCalledOnce();\n});\n```\n\nFor larger CLIs, a second common pattern is a thin bin file that imports a\ntestable `run(argv)` or `execute(argv)` module. Use this when the CLI has\nsubstantial startup behavior, needs integration-style tests around exit codes,\nor also exposes a public library API.\n\n## Update notifier\n\nUse the [`update-notifier`](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fupdate-notifier) package. It handles background checks (24 h interval), state persistence, CI\u002FTTY\u002F`NO_UPDATE_NOTIFIER` opt-outs automatically.\n\n```bash\npnpm add update-notifier\n```\n\n**Where to call it:** top of `index.ts`, before `program.parseAsync()` — not in a `postAction` hook.\n\n**Why before parse:** `notify()` defaults to `defer: true`, registering a `process.on('exit')` listener. Placing it before `parseAsync()` ensures the listener is always registered regardless of which command runs.\n\n**Type shim** (package ships no `.d.ts`):\n\n```ts\n\u002F\u002F src\u002Fupdate-notifier.d.ts\ndeclare module \"update-notifier\" {\n  interface Package {\n    name: string;\n    version: string;\n  }\n  interface Options {\n    pkg: Package;\n    updateCheckInterval?: number;\n    distTag?: string;\n  }\n  interface NotifyOptions {\n    defer?: boolean;\n    message?: string;\n    isGlobal?: boolean;\n  }\n  interface Notifier {\n    notify(options?: NotifyOptions): void;\n  }\n  export default function updateNotifier(options: Options): Notifier;\n}\n```\n\n## Recommended stack\n\n| Concern                                  | Package                                                                                                                    |\n| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |\n| CLI framework                            | [`commander`](https:\u002F\u002Fgithub.com\u002Ftj\u002Fcommander.js)                                                                          |\n| Interactive prompts                      | [`@inquirer\u002Fprompts`](https:\u002F\u002Fgithub.com\u002FSBoudrias\u002FInquirer.js)                                                            |\n| Update notifications                     | [`update-notifier`](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fupdate-notifier)                                                       |\n| Language                                 | TypeScript                                                                                                                 |\n| Test runner                              | [`vitest`](https:\u002F\u002Fvitest.dev)                                                                                             |\n| Version bumping                          | [`bumpp`](https:\u002F\u002Fgithub.com\u002Fantfu\u002Fbumpp) — bumps `package.json`, commits, tags, and pushes in one step                    |\n| Bundler                                  | [`tsdown`](https:\u002F\u002Fgithub.com\u002Frolldown\u002Ftsdown)                                                                             |\n| Diagnostics (structured errors\u002Fwarnings) | [`nostics`](https:\u002F\u002Fnostics.dev\u002F) — define a catalog of diagnostic codes with stable names, messages, fixes, and docs URLs |\n\n## package.json essentials\n\n```json\n{\n  \"type\": \"module\",\n  \"bin\": { \"your-cli\": \".\u002Fdist\u002Findex.js\" },\n  \"engines\": { \"node\": \"^24.0.0\" }\n}\n```\n\n## GitHub Workflow\n\nFor a complete end-to-end workflow combining npm publish + changelog generation, see `automate-npm-release\u002FEXAMPLE_WORKFLOW.yml` if that skill is installed locally.\n","# Node CLI\n\n## src structure\n\n```\nsrc\u002F\n├── index.ts              # Entry point — wires Commander, calls updateNotifier\n├── update-notifier.d.ts  # Type shim for update-notifier package\n├── commands\u002F             # One file per CLI command\n│   ├── add.ts\n│   └── remove.ts\n├── lib\u002F                  # Pure domain logic, no Commander concerns\n│   ├── github.ts         # single-file feature → stays flat\n│   ├── linker.ts\n│   └── push\u002F             # 2+ files → grouped into a feature folder, prefix dropped\n│       ├── index.ts      # barrel: re-exports the feature's public surface\n│       ├── workflow.ts\n│       └── validation.ts\n└── utils\u002F                # Generic helpers — mix flat files and nested groups freely\n    ├── format.ts         # flat single-purpose helper\n    └── fs\u002F               # related helpers grouped under one folder\n        ├── read.ts\n        └── write.ts\ntests\u002F                    # Mirrors src\u002F structure, one test file per module\n├── add.test.ts\n└── linker.test.ts\n```\n\n**conventions:**\n\n- `commands\u002F` — each file exports a single `Command` instance; all CLI concerns (prompts, flags, output) live here\n- `lib\u002F` — framework-agnostic helpers imported by commands; keep them testable in isolation\n- Directories don't have to be flat. Keep a feature flat by default, and group it into a folder **only once it owns 2+ files** — a folder holding one file is just noise. When you group, the folder already names the feature, so drop the redundant prefix from filenames (`lib\u002Fpush\u002Fworkflow.ts`, not `lib\u002Fpush\u002Fpush-workflow.ts`), and use `dir\u002Findex.ts` as the feature's public surface (a barrel re-exporting what commands import, or, for a provider-style seam, the interface\u002Fcontract itself). Commands import the folder, not its internals: `import { planPush } from '..\u002Flib\u002Fpush\u002Findex.js'`, so each feature's internal file split can change without touching call sites.\n\n## Entry point structure\n\n```ts\n#!\u002Fusr\u002Fbin\u002Fenv node\nimport { Command } from \"commander\";\nimport updateNotifier from \"update-notifier\";\nimport packageJson from \"..\u002Fpackage.json\" with { type: \"json\" };\n\n\u002F\u002F Call before parseAsync — notify() defers display to process exit so it\n\u002F\u002F never interleaves with command output.\nupdateNotifier({ pkg: packageJson }).notify();\n\nconst program = new Command(\"your-cli\")\n  .description(\"...\")\n  .version(packageJson.version);\n\nprogram.addCommand(fooCommand);\n\nawait program.parseAsync();\n```\n\n## Testing CLI wiring\n\nKeep executable entrypoints and test seams distinct. If `src\u002Findex.ts` calls\n`parseAsync()` at top level, treat it as executable-only: tests should import\ncommand factories from `src\u002Fcommands\u002F*`, assemble a local `Command`, and pass a\ncontrolled argv. Do not import a top-level executable entrypoint in tests,\nbecause it will parse the test runner's `process.argv`.\n\n```ts\n\u002F\u002F src\u002Fcommands\u002Frun.ts\nimport { Command } from \"commander\";\n\nexport interface RunDispatch {\n  runBatch(): Promise\u003Cvoid> | void;\n}\n\nexport function createRunCommand(dispatch: RunDispatch): Command {\n  return new Command(\"run\").action(async () => {\n    await dispatch.runBatch();\n  });\n}\n```\n\n```ts\n\u002F\u002F tests\u002Fcli.test.ts\nimport { Command } from \"commander\";\nimport { describe, expect, test, vi } from \"vitest\";\nimport { createRunCommand } from \"..\u002Fsrc\u002Fcommands\u002Frun\";\n\ntest(\"dispatches run\", async () => {\n  const dispatch = { runBatch: vi.fn() };\n  const program = new Command(\"your-cli\");\n  program.addCommand(createRunCommand(dispatch));\n\n  await program.parseAsync([\"node\", \"your-cli\", \"run\"]);\n\n  expect(dispatch.runBatch).toHaveBeenCalledOnce();\n});\n```\n\nFor larger CLIs, a second common pattern is a thin bin file that imports a\ntestable `run(argv)` or `execute(argv)` module. Use this when the CLI has\nsubstantial startup behavior, needs integration-style tests around exit codes,\nor also exposes a public library API.\n\n## Update notifier\n\nUse the [`update-notifier`](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fupdate-notifier) package. It handles background checks (24 h interval), state persistence, CI\u002FTTY\u002F`NO_UPDATE_NOTIFIER` opt-outs automatically.\n\n```bash\npnpm add update-notifier\n```\n\n**Where to call it:** top of `index.ts`, before `program.parseAsync()` — not in a `postAction` hook.\n\n**Why before parse:** `notify()` defaults to `defer: true`, registering a `process.on('exit')` listener. Placing it before `parseAsync()` ensures the listener is always registered regardless of which command runs.\n\n**Type shim** (package ships no `.d.ts`):\n\n```ts\n\u002F\u002F src\u002Fupdate-notifier.d.ts\ndeclare module \"update-notifier\" {\n  interface Package {\n    name: string;\n    version: string;\n  }\n  interface Options {\n    pkg: Package;\n    updateCheckInterval?: number;\n    distTag?: string;\n  }\n  interface NotifyOptions {\n    defer?: boolean;\n    message?: string;\n    isGlobal?: boolean;\n  }\n  interface Notifier {\n    notify(options?: NotifyOptions): void;\n  }\n  export default function updateNotifier(options: Options): Notifier;\n}\n```\n\n## Recommended stack\n\n| Concern                                  | Package                                                                                                                    |\n| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |\n| CLI framework                            | [`commander`](https:\u002F\u002Fgithub.com\u002Ftj\u002Fcommander.js)                                                                          |\n| Interactive prompts                      | [`@inquirer\u002Fprompts`](https:\u002F\u002Fgithub.com\u002FSBoudrias\u002FInquirer.js)                                                            |\n| Update notifications                     | [`update-notifier`](https:\u002F\u002Fgithub.com\u002Fsindresorhus\u002Fupdate-notifier)                                                       |\n| Language                                 | TypeScript                                                                                                                 |\n| Test runner                              | [`vitest`](https:\u002F\u002Fvitest.dev)                                                                                             |\n| Version bumping                          | [`bumpp`](https:\u002F\u002Fgithub.com\u002Fantfu\u002Fbumpp) — bumps `package.json`, commits, tags, and pushes in one step                    |\n| Bundler                                  | [`tsdown`](https:\u002F\u002Fgithub.com\u002Frolldown\u002Ftsdown)                                                                             |\n| Diagnostics (structured errors\u002Fwarnings) | [`nostics`](https:\u002F\u002Fnostics.dev\u002F) — define a catalog of diagnostic codes with stable names, messages, fixes, and docs URLs |\n\n## package.json essentials\n\n```json\n{\n  \"type\": \"module\",\n  \"bin\": { \"your-cli\": \".\u002Fdist\u002Findex.js\" },\n  \"engines\": { \"node\": \"^24.0.0\" }\n}\n```\n\n## GitHub Workflow\n\nFor a complete end-to-end workflow combining npm publish + changelog generation, see `automate-npm-release\u002FEXAMPLE_WORKFLOW.yml` if that skill is installed locally.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","23304ae178bfb875579dfdaa2dc851ac66d9a5e9",".skills\u002Fnode-cli",0,"https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit","https:\u002F\u002Fsyn.horse","https:\u002F\u002Fgithub.com\u002Fsynmux","Want code from one of my retired repositories? See the README in daveio\u002Fboneyard for instructions.","2026-11-12 20:07:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":24},[36,39,42],{"tool":37,"command":38},"npx","npx skills add synmux\u002Fclaude-commit --skill node-cli",{"tool":40,"command":41},"bunx","bunx skills add synmux\u002Fclaude-commit --skill node-cli",{"tool":43,"command":44},"pnpm","pnpm dlx skills add synmux\u002Fclaude-commit --skill node-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fnode-cli\u002FSKILL.md",[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M77XWGBE1WRTHTF82HND0Z8F","writing-for-humans","How to write a short document a person has to read and act on - a ticket, a pull request body, a commit message, a handover note. Covers the title, a shape people skim, evidence that survives a refactor, and stripping the AI phrasing out. Call it before drafting any of those.","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fwriting-for-humans\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M77XWEMJVMH16P0Y7Y4YJ293","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M77XW4VB02TTKC7WF4KN1P0B","humanizer","Removes traces of AI-generated text. Suitable for editing or reviewing text to make it sound more natural and human-written. Based on the comprehensive Wikipedia guide on \"AI writing characteristics.\" Detects and fixes patterns such as: exaggerated symbolism, promotional language, superficial analysis ending in \"-ing,\" vague attribution, overuse of dashes, the rule of three, AI-typical vocabulary, negative parallelism, and excessive transitional phrases.","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fhumanizer\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M77XW2AZEFV3VQ08H10Q0B8J","create-ticket","Draft one small, plain ticket as a markdown file, then file it on the project's tracker once the user approves.","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fcreate-ticket\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M77XVZBJZGKMC1YZKVB5WGCQ","create-pr","Open one pull request as a draft, with a body the reviewer can act on.","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fcreate-pr\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M77XVXHMFQBDS2ASVNWR8PMV","coding","Composition skill which invokes sub-skills for coding tasks. It is a meta-skill that orchestrates the use of other coding-related skills.","https:\u002F\u002Fgithub.com\u002Fsynmux\u002Fclaude-commit\u002Fblob\u002Fmain\u002F.skills\u002Fcoding\u002FSKILL.md",[],[]]