[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BY4EX1CAKF4FG9MNM3T91G":3,"skill-same:01M6BY4EX1CAKF4FG9MNM3T91G":55},{"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":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M6BY4EX1CAKF4FG9MNM3T91G","oclif-command-guide",null,"Reference for OCLIF command patterns, base classes, and conventions used in CLI packages","tylerbutler\u002Ftools-monorepo","tylerbutler","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19589?v=4","01M6BY414FRX1V1TCNCPMS81ZE","Tyler Butler","01M6BY4195PZPBKNQ8N9J1Z9WG",3,"MIT","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Foclif-command-guide\u002FSKILL.md",[],[19,20,21],"oclif command guide","cli","packages","2026-11-10 10:12:30",false,"---\nname: oclif-command-guide\ndescription: Reference for OCLIF command patterns, base classes, and conventions used in CLI packages\nuser-invocable: false\n---\n\n## OCLIF Command Patterns\n\nReference for working with OCLIF commands in this monorepo's CLI packages (cli, dill-cli, repopo, sort-tsconfig).\n\n### Base Classes (from @tylerbu\u002Fcli-api)\n\n- **`CommandWithConfig`** — For commands that load config files. Provides `--config` flag and config resolution.\n- **`GitCommand`** — For git operations. Provides `this.git` (simple-git instance) and git-aware error handling. Extends `CommandWithConfig`.\n\nAlways extend one of these base classes, not raw OCLIF `Command`.\n\n### Command File Structure\n\n```typescript\nimport { Args, Flags } from \"@oclif\u002Fcore\";\nimport { GitCommand } from \"@tylerbu\u002Fcli-api\";\n\nexport default class MyCommand extends GitCommand\u003Ctypeof MyCommand> {\n\tpublic static override readonly description = \"What this command does\";\n\n\tpublic static override readonly flags = {\n\t\t\"dry-run\": Flags.boolean({ description: \"Preview without making changes\" }),\n\t\t...GitCommand.flags, \u002F\u002F Inherit base flags\n\t};\n\n\tpublic static override readonly args = {\n\t\ttarget: Args.string({ required: true, description: \"Target branch\" }),\n\t};\n\n\tpublic override async run(): Promise\u003Cvoid> {\n\t\tconst { args, flags } = this;\n\t\t\u002F\u002F this.git is available from GitCommand\n\t\t\u002F\u002F this.log(), this.warn(), this.error() for output\n\t}\n}\n```\n\n### File Placement\n\nCommands go in `src\u002Fcommands\u002F`. Directory structure defines topics:\n- `src\u002Fcommands\u002Fdownload.ts` → `tbu download`\n- `src\u002Fcommands\u002Fgit\u002Fsquish.ts` → `tbu git squish`\n- `src\u002Fcommands\u002Fgit\u002Fmerge-train\u002Fpreview.ts` → `tbu git merge-train preview`\n\n### After Adding\u002FModifying Commands\n\nAlways run these steps after changing commands:\n\n1. `pnpm nx run \u003Cpkg>:build:compile` — Compile TypeScript\n2. `pnpm nx run \u003Cpkg>:build:manifest` — Regenerate `oclif.manifest.json`\n3. `pnpm nx run \u003Cpkg>:build:readme` — Regenerate README command docs\n4. `.\u002Fpackages\u002F\u003Cpkg>\u002Fbin\u002Fdev.js snapshot:generate` — Update test snapshots (if applicable)\n\nOr just run `pnpm nx run \u003Cpkg>:build` to execute all of these via orchestration.\n\n### Dev vs Prod Mode\n\n- **Dev:** `.\u002Fbin\u002Fdev.js \u003Ccommand>` — runs from TypeScript source, no compile needed\n- **Prod:** `.\u002Fbin\u002Frun.js \u003Ccommand>` — runs from compiled `esm\u002F`\n\n### Plugins\n\nCLI packages declare plugins in `package.json` → `oclif.plugins`. Common ones:\n- `@oclif\u002Fplugin-help`, `@oclif\u002Fplugin-autocomplete`, `@oclif\u002Fplugin-commands`\n- `@oclif\u002Fplugin-command-snapshot` — for snapshot testing\n\n### Testing\n\n- OCLIF CLIs use **command snapshot testing** via `@oclif\u002Fplugin-command-snapshot`\n- Snapshots in `test\u002Fcommands\u002F__snapshots__\u002Fcommands.json`\n- Generate: `.\u002Fbin\u002Fdev.js snapshot:generate`\n- Compare: `.\u002Fbin\u002Fdev.js snapshot:compare` (runs during `test:snapshots`)\n","## OCLIF Command Patterns\n\nReference for working with OCLIF commands in this monorepo's CLI packages (cli, dill-cli, repopo, sort-tsconfig).\n\n### Base Classes (from @tylerbu\u002Fcli-api)\n\n- **`CommandWithConfig`** — For commands that load config files. Provides `--config` flag and config resolution.\n- **`GitCommand`** — For git operations. Provides `this.git` (simple-git instance) and git-aware error handling. Extends `CommandWithConfig`.\n\nAlways extend one of these base classes, not raw OCLIF `Command`.\n\n### Command File Structure\n\n```typescript\nimport { Args, Flags } from \"@oclif\u002Fcore\";\nimport { GitCommand } from \"@tylerbu\u002Fcli-api\";\n\nexport default class MyCommand extends GitCommand\u003Ctypeof MyCommand> {\n\tpublic static override readonly description = \"What this command does\";\n\n\tpublic static override readonly flags = {\n\t\t\"dry-run\": Flags.boolean({ description: \"Preview without making changes\" }),\n\t\t...GitCommand.flags, \u002F\u002F Inherit base flags\n\t};\n\n\tpublic static override readonly args = {\n\t\ttarget: Args.string({ required: true, description: \"Target branch\" }),\n\t};\n\n\tpublic override async run(): Promise\u003Cvoid> {\n\t\tconst { args, flags } = this;\n\t\t\u002F\u002F this.git is available from GitCommand\n\t\t\u002F\u002F this.log(), this.warn(), this.error() for output\n\t}\n}\n```\n\n### File Placement\n\nCommands go in `src\u002Fcommands\u002F`. Directory structure defines topics:\n- `src\u002Fcommands\u002Fdownload.ts` → `tbu download`\n- `src\u002Fcommands\u002Fgit\u002Fsquish.ts` → `tbu git squish`\n- `src\u002Fcommands\u002Fgit\u002Fmerge-train\u002Fpreview.ts` → `tbu git merge-train preview`\n\n### After Adding\u002FModifying Commands\n\nAlways run these steps after changing commands:\n\n1. `pnpm nx run \u003Cpkg>:build:compile` — Compile TypeScript\n2. `pnpm nx run \u003Cpkg>:build:manifest` — Regenerate `oclif.manifest.json`\n3. `pnpm nx run \u003Cpkg>:build:readme` — Regenerate README command docs\n4. `.\u002Fpackages\u002F\u003Cpkg>\u002Fbin\u002Fdev.js snapshot:generate` — Update test snapshots (if applicable)\n\nOr just run `pnpm nx run \u003Cpkg>:build` to execute all of these via orchestration.\n\n### Dev vs Prod Mode\n\n- **Dev:** `.\u002Fbin\u002Fdev.js \u003Ccommand>` — runs from TypeScript source, no compile needed\n- **Prod:** `.\u002Fbin\u002Frun.js \u003Ccommand>` — runs from compiled `esm\u002F`\n\n### Plugins\n\nCLI packages declare plugins in `package.json` → `oclif.plugins`. Common ones:\n- `@oclif\u002Fplugin-help`, `@oclif\u002Fplugin-autocomplete`, `@oclif\u002Fplugin-commands`\n- `@oclif\u002Fplugin-command-snapshot` — for snapshot testing\n\n### Testing\n\n- OCLIF CLIs use **command snapshot testing** via `@oclif\u002Fplugin-command-snapshot`\n- Snapshots in `test\u002Fcommands\u002F__snapshots__\u002Fcommands.json`\n- Generate: `.\u002Fbin\u002Fdev.js snapshot:generate`\n- Compare: `.\u002Fbin\u002Fdev.js snapshot:compare` (runs during `test:snapshots`)\n",{"name":5,"description":7,"user-invocable":23},"main","77276eebb35d712fe74fbae30800230ea0dcefb9",".claude\u002Fskills\u002Foclif-command-guide",1,"https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo","https:\u002F\u002Fgithub.com\u002Ftylerbutler","https:\u002F\u002Ftylerbutler.com","2026-11-15 02:02:30",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add tylerbutler\u002Ftools-monorepo --skill oclif-command-guide",{"tool":41,"command":42},"bunx","bunx skills add tylerbutler\u002Ftools-monorepo --skill oclif-command-guide",{"tool":44,"command":45},"pnpm","pnpm dlx skills add tylerbutler\u002Ftools-monorepo --skill oclif-command-guide","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Foclif-command-guide\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"prompt.md","REFERENCE","参考文档",11191,"https:\u002F\u002Fgithub.com\u002Fshenxingy\u002FClade\u002Fblob\u002Fmain\u002Fconfigs\u002Fskills\u002Fads-meta\u002Fprompt.md",[56,64,71,79,86,93],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":63},"01M7DRMRW5VDQKXCW86HF3VTK3","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funslop\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":63},"01M7DRMPJZR1SJMT7GW5N982W4","storytelling","Make sure all prose sentences contribute to a coherent narrative, forming a small story rather than a series of disconnected statements.","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fstorytelling\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":75,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":63},"01M7DRMMD3C89RRWC1PEB78FF2","stop-slop","Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fstop-slop\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fstop-slop\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":63},"01M7DRMJ4T72AVVWVENP7PJAST","prose-banlist","A skill that bans certain phrases from being used in prose writing.","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fprose-banlist\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":63},"01M7DRMENPJAQV4H40M75PEJZ2","ponytail","Lazy senior dev mode: the smallest change that fully solves the task, and a reply a busy human understands in one read. Use on any coding task (writing, fixing, refactoring, reviewing, choosing dependencies) and when the user says \"ponytail\", \"be lazy\", \"simplest solution\", \"yagni\", or complains about over-engineering or bloat. Levels: lite, full (default), ultra.","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fponytail\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":63},"01M7DRMBFM1DXTFMSEXCMG6AGK","ponytail-review","Quality review of a change: is the logic right, is it safe, does it hold under real load, is risky code tested, is it fast enough, and is every line needed. Reads the connected code, not only the diff. Each finding is explained in plain English. Use for \"review this\", \"code review\", \"review the last commit\", \"review my PR\", \"is this over-engineered\", \u002Fponytail-review.","https:\u002F\u002Fgithub.com\u002Ftylerbutler\u002Ftools-monorepo\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fponytail-review\u002FSKILL.md",[],[]]