[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73BW0RHGY1HJER3TAKFSW9G":3,"skill-same:01M73BW0RHGY1HJER3TAKFSW9G":63},{"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":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M73BW0RHGY1HJER3TAKFSW9G","scaffold-cli-command",null,"Scaffold a new CLI command using Commander.js with options, action handler, three output modes (human-readable, quiet, JSON), and optional ceremony variant. Covers naming, option design, shared context patterns, error handling, and integration testing. Use to add a command to an existing Commander.js CLI, design a new CLI tool from scratch, or standardize command structure across a multi-command CLI.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fscaffold-cli-command\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: scaffold-cli-command\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-05-03\"\ndescription: >\n  Scaffold a new CLI command using Commander.js with options, action handler,\n  three output modes (human-readable, quiet, JSON), and optional ceremony\n  variant. Covers naming, option design, shared context patterns, error\n  handling, and integration testing. Use to add a command to an existing\n  Commander.js CLI, design a new CLI tool from scratch, or standardize command\n  structure across a multi-command CLI.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: cli\n  complexity: intermediate\n  language: TypeScript\n  tags:\n    - cli\n    - commander\n    - nodejs\n    - terminal\n    - command-pattern\n---\n\n# Scaffold a CLI Command\n\nAdd a new command to a Commander.js CLI with consistent option handling, three output modes, and integration tests.\n\n## When to Use\n\n- Adding a new command to an existing Commander.js CLI\n- Designing a multi-command CLI tool from scratch\n- Standardizing command structure so all commands follow the same patterns\n- Adding a \"ceremony\" variant that replaces machine output with warm narrative\n\n## Inputs\n\n- **Required**: Command name and verb (e.g., `gather`, `audit`, `sync`)\n- **Required**: What the command does (one sentence)\n- **Required**: Path to CLI entry point (e.g., `cli\u002Findex.js`)\n- **Optional**: Whether the command needs a ceremony variant\n- **Optional**: Custom options beyond the standard set\n- **Optional**: Subcommand arguments (positional args like `\u003Cname>` or `[names...]`)\n\n## Procedure\n\n### Step 1: Choose the Command Name and Category\n\nSelect a verb that communicates the command's action. Group commands into categories:\n\n| Category | Verbs | Pattern |\n|----------|-------|---------|\n| CRUD | `install`, `uninstall`, `list`, `search` | Operates on content |\n| Lifecycle | `init`, `sync`, `audit` | Manages project state |\n| Ceremony | `gather`, `scatter`, `tend`, `campfire` | Warm narrative output |\n\nNaming conventions:\n- Single verb (not `install-skill` — let options specify what)\n- Lowercase, no hyphens in the command name itself\n- Positional args: `\u003Crequired>` or `[optional]` or `[variadic...]`\n\n```javascript\nprogram\n  .command('gather \u003Cname>')\n  .description('Gather a team around the campfire')\n```\n\n**Got:** A command name, description, and positional args defined.\n\n**If fail:** If the verb overlaps an existing command, either compose them (add an option to the existing command) or differentiate clearly in the description.\n\n### Step 2: Define Options\n\nEvery command should support a standard set of shared options plus command-specific ones.\n\n**Standard options** (include as needed):\n\n```javascript\n  .option('-n, --dry-run', 'Preview without making changes')\n  .option('-q, --quiet', 'Suppress human-readable output')\n  .option('--json', 'Output as JSON')\n  .option('-f, --framework \u003Cid>', 'Target specific framework')\n  .option('-g, --global', 'Use global scope')\n  .option('--scope \u003Cscope>', 'Scope: project, workspace, global', 'project')\n  .option('--source \u003Cpath>', 'Path to tool root directory')\n```\n\n**Command-specific options** — add only what the command needs:\n\n```javascript\n  .option('--ceremonial', 'Show each item arriving individually')\n  .option('--only \u003Citems>', 'Comma-separated subset to include')\n  .option('-y, --yes', 'Skip confirmation prompts')\n```\n\nDesign rules:\n- Short flags (`-n`) for frequently used options\n- Long flags (`--dry-run`) for clarity\n- Default values as third argument where appropriate\n- Boolean flags (no argument) for toggles\n\n**Got:** A complete option chain with both standard and custom options.\n\n**If fail:** If too many options accumulate (>8), consider splitting into subcommands or grouping related options.\n\n### Step 3: Implement the Action Handler\n\nThe action handler follows a consistent pattern:\n\n```javascript\n.action(async (name, options) => {\n  \u002F\u002F 1. Get shared context (registries, adapters, paths)\n  const ctx = getContext(options);\n\n  \u002F\u002F 2. Resolve what to operate on\n  const items = resolveItems(ctx, name, options);\n  if (!items || items.length === 0) {\n    reporter.error('Nothing found.');\n    process.exit(1);\n  }\n\n  \u002F\u002F 3. Preview if dry-run\n  if (options.dryRun) reporter.printDryRun();\n\n  \u002F\u002F 4. Execute the operation\n  const results = await executeOperation(items, ctx, options);\n\n  \u002F\u002F 5. Output results (3 modes)\n  if (options.json) {\n    console.log(JSON.stringify(results, null, 2));\n  } else if (options.quiet) {\n    reporter.printResults(results);\n  } else {\n    printHumanOutput(results, options);\n  }\n})\n```\n\nThe `getContext()` shared helper centralizes:\n- Root directory detection\n- Registry loading\n- Framework detection or explicit selection\n- Scope resolution\n\n**Got:** An action handler that follows the 5-step pattern: context → resolve → preview → execute → output.\n\n**If fail:** If the command doesn't fit the resolve-then-execute pattern (e.g., purely informational like `detect`), simplify to: context → compute → output.\n\n### Step 4: Add the Three Output Modes\n\nEvery command should support three output modes:\n\n**Default (human-readable):**\n```\nInstalling 3 item(s) to Claude Code...\n\n  + create-skill [claude-code] .claude\u002Fskills\u002Fcreate-skill\n  + write-tests  [claude-code] .claude\u002Fskills\u002Fwrite-tests\n  = commit-changes [claude-code] (skipped)\n\n  2 installed, 1 skipped\n```\n\n**Quiet (`--quiet`):**\nStandard reporter output — concise lines with status icons (`+`, `-`, `=`, `!`), no ceremony, no decoration.\n\n**JSON (`--json`):**\n```json\n{\n  \"command\": \"install\",\n  \"items\": 3,\n  \"installed\": 2,\n  \"skipped\": 1,\n  \"failed\": 0\n}\n```\n\nImplementation pattern:\n\n```javascript\nif (options.json) {\n  console.log(JSON.stringify(data, null, 2));\n  return;\n}\nif (options.quiet) {\n  reporter.printResults(results);\n  return;\n}\n\u002F\u002F Default: human-readable output\nprintHumanReadable(results, options);\n```\n\n**Got:** All three modes produce useful output. JSON is parseable. Quiet is concise. Default is informative.\n\n**If fail:** If the command has no meaningful JSON representation (e.g., `detect`), skip the JSON mode and document why.\n\n### Step 5: Add Ceremony Variant (Optional)\n\nFor commands that benefit from warm, narrative output instead of transactional reporting:\n\n```javascript\nif (options.json) {\n  ceremonyReporter.printJson(data);\n} else if (options.quiet) {\n  reporter.printResults(results);\n} else {\n  ceremonyReporter.printArrival({\n    teamId: name,\n    agents,\n    results: { installed, skipped, failed },\n    ceremonial: options.ceremonial || false,\n  });\n}\n```\n\nCeremony output follows voice rules:\n1. Present tense, active voice (\"mystic arrives\", not \"mystic was installed\")\n2. No exclamation marks\n3. Metaphor replaces jargon (\"practices\" not \"dependencies\")\n4. Failures are honest, not catastrophic (\"a spark was lost\")\n5. Closing line reflects state (\"The fire burns.\")\n6. No emoji — use Unicode glyphs (✦ ◉ ◎ ○ ✗)\n7. Every word must carry information\n\nSee `design-cli-output` for detailed terminal output patterns.\n\n**Got:** Ceremony output that follows all voice rules and produces warm, informative narratives.\n\n**If fail:** If ceremony output feels forced or adds no information beyond the standard output, skip it. Not every command needs a ceremony variant.\n\n### Step 6: Handle Errors and Edge Cases\n\n```javascript\n\u002F\u002F Unknown item\nif (!item) {\n  reporter.error(`Unknown: ${name}. Use 'tool list' to browse.`);\n  process.exit(1);\n}\n\n\u002F\u002F Confirmation for destructive actions\nif (!options.yes && !options.quiet && !options.dryRun) {\n  const answer = await askYesNo('Proceed?');\n  if (!answer) {\n    console.log('  Cancelled.');\n    return;\n  }\n}\n\n\u002F\u002F State validation\nif (!state.fires[name]) {\n  reporter.error(`Not active. Nothing to remove.`);\n  process.exit(1);\n}\n```\n\nError design principles:\n- Error messages suggest the corrective action\n- `process.exit(1)` for unrecoverable errors\n- Confirmation prompts for destructive operations (bypass with `--yes`)\n- Dry-run always succeeds (never blocks on confirmation)\n\n**Got:** All error paths produce helpful messages. Destructive operations require confirmation.\n\n**If fail:** If confirmation prompts interfere with scripting, ensure `--yes` and `--quiet` both bypass them.\n\n### Step 7: Write Integration Tests\n\n```javascript\nimport { describe, it, after } from 'node:test';\nimport assert from 'node:assert\u002Fstrict';\nimport { execSync } from 'child_process';\n\nconst CLI = 'node cli\u002Findex.js';\nfunction run(args) {\n  return execSync(`${CLI} ${args}`, { encoding: 'utf8', timeout: 10000 });\n}\n\ndescribe('new-command', () => {\n  after(() => { \u002F* cleanup created files\u002Fstate *\u002F });\n\n  it('dry-run shows preview', () => {\n    const out = run('new-command arg --dry-run');\n    assert.match(out, \u002FDRY RUN\u002F);\n  });\n\n  it('--json outputs valid JSON', () => {\n    const out = run('new-command arg --json');\n    const start = out.indexOf('{');\n    const data = JSON.parse(out.slice(start));\n    assert.equal(data.command, 'new-command');\n  });\n\n  it('rejects unknown input', () => {\n    assert.throws(() => run('new-command nonexistent'), \u002FUnknown\u002F);\n  });\n});\n```\n\nSee `test-cli-application` for comprehensive CLI testing patterns.\n\n**Got:** At least 3 tests: dry-run, JSON output, error case. More for complex commands.\n\n**If fail:** If `execSync` times out, increase the timeout or check for interactive prompts blocking the command.\n\n## Validation\n\n- [ ] Command registered in CLI entry point and appears in `--help`\n- [ ] Standard options (`--dry-run`, `--quiet`, `--json`) work correctly\n- [ ] Default output is human-readable and informative\n- [ ] JSON output is valid and parseable\n- [ ] Error messages suggest corrective actions\n- [ ] Destructive operations require confirmation (bypassed by `--yes`)\n- [ ] At least 3 integration tests pass\n- [ ] Command follows the getContext → resolve → execute → output pattern\n\n## Pitfalls\n\n- **Forgetting the JSON mode**: Machine consumers (scripts, CI) depend on structured output. Always implement `--json` even if the command seems interactive-only.\n- **Confirmation prompts blocking scripts**: Any command that prompts for input will hang in non-interactive contexts. Always provide `--yes` for destructive commands and ensure `--quiet` suppresses prompts.\n- **Inconsistent error exit codes**: Use `process.exit(1)` for all errors. Tools that parse CLI output check exit codes first.\n- **Options without defaults**: Options like `--scope` should have sensible defaults so users don't need to specify them every time.\n- **Leaking ceremony into quiet mode**: The `--quiet` flag means \"minimal output for machines.\" If ceremony text leaks into quiet mode, scripts will break on unexpected output.\n\n## Related Skills\n\n- `build-cli-plugin` — build the adapter\u002Fplugin that commands operate on\n- `test-cli-application` — comprehensive CLI testing patterns beyond the basics in Step 7\n- `design-cli-output` — terminal output design for all verbosity levels\n- `install-almanac-content` — example of a well-structured CLI command skill\n","# Scaffold a CLI Command\n\nAdd a new command to a Commander.js CLI with consistent option handling, three output modes, and integration tests.\n\n## When to Use\n\n- Adding a new command to an existing Commander.js CLI\n- Designing a multi-command CLI tool from scratch\n- Standardizing command structure so all commands follow the same patterns\n- Adding a \"ceremony\" variant that replaces machine output with warm narrative\n\n## Inputs\n\n- **Required**: Command name and verb (e.g., `gather`, `audit`, `sync`)\n- **Required**: What the command does (one sentence)\n- **Required**: Path to CLI entry point (e.g., `cli\u002Findex.js`)\n- **Optional**: Whether the command needs a ceremony variant\n- **Optional**: Custom options beyond the standard set\n- **Optional**: Subcommand arguments (positional args like `\u003Cname>` or `[names...]`)\n\n## Procedure\n\n### Step 1: Choose the Command Name and Category\n\nSelect a verb that communicates the command's action. Group commands into categories:\n\n| Category | Verbs | Pattern |\n|----------|-------|---------|\n| CRUD | `install`, `uninstall`, `list`, `search` | Operates on content |\n| Lifecycle | `init`, `sync`, `audit` | Manages project state |\n| Ceremony | `gather`, `scatter`, `tend`, `campfire` | Warm narrative output |\n\nNaming conventions:\n- Single verb (not `install-skill` — let options specify what)\n- Lowercase, no hyphens in the command name itself\n- Positional args: `\u003Crequired>` or `[optional]` or `[variadic...]`\n\n```javascript\nprogram\n  .command('gather \u003Cname>')\n  .description('Gather a team around the campfire')\n```\n\n**Got:** A command name, description, and positional args defined.\n\n**If fail:** If the verb overlaps an existing command, either compose them (add an option to the existing command) or differentiate clearly in the description.\n\n### Step 2: Define Options\n\nEvery command should support a standard set of shared options plus command-specific ones.\n\n**Standard options** (include as needed):\n\n```javascript\n  .option('-n, --dry-run', 'Preview without making changes')\n  .option('-q, --quiet', 'Suppress human-readable output')\n  .option('--json', 'Output as JSON')\n  .option('-f, --framework \u003Cid>', 'Target specific framework')\n  .option('-g, --global', 'Use global scope')\n  .option('--scope \u003Cscope>', 'Scope: project, workspace, global', 'project')\n  .option('--source \u003Cpath>', 'Path to tool root directory')\n```\n\n**Command-specific options** — add only what the command needs:\n\n```javascript\n  .option('--ceremonial', 'Show each item arriving individually')\n  .option('--only \u003Citems>', 'Comma-separated subset to include')\n  .option('-y, --yes', 'Skip confirmation prompts')\n```\n\nDesign rules:\n- Short flags (`-n`) for frequently used options\n- Long flags (`--dry-run`) for clarity\n- Default values as third argument where appropriate\n- Boolean flags (no argument) for toggles\n\n**Got:** A complete option chain with both standard and custom options.\n\n**If fail:** If too many options accumulate (>8), consider splitting into subcommands or grouping related options.\n\n### Step 3: Implement the Action Handler\n\nThe action handler follows a consistent pattern:\n\n```javascript\n.action(async (name, options) => {\n  \u002F\u002F 1. Get shared context (registries, adapters, paths)\n  const ctx = getContext(options);\n\n  \u002F\u002F 2. Resolve what to operate on\n  const items = resolveItems(ctx, name, options);\n  if (!items || items.length === 0) {\n    reporter.error('Nothing found.');\n    process.exit(1);\n  }\n\n  \u002F\u002F 3. Preview if dry-run\n  if (options.dryRun) reporter.printDryRun();\n\n  \u002F\u002F 4. Execute the operation\n  const results = await executeOperation(items, ctx, options);\n\n  \u002F\u002F 5. Output results (3 modes)\n  if (options.json) {\n    console.log(JSON.stringify(results, null, 2));\n  } else if (options.quiet) {\n    reporter.printResults(results);\n  } else {\n    printHumanOutput(results, options);\n  }\n})\n```\n\nThe `getContext()` shared helper centralizes:\n- Root directory detection\n- Registry loading\n- Framework detection or explicit selection\n- Scope resolution\n\n**Got:** An action handler that follows the 5-step pattern: context → resolve → preview → execute → output.\n\n**If fail:** If the command doesn't fit the resolve-then-execute pattern (e.g., purely informational like `detect`), simplify to: context → compute → output.\n\n### Step 4: Add the Three Output Modes\n\nEvery command should support three output modes:\n\n**Default (human-readable):**\n```\nInstalling 3 item(s) to Claude Code...\n\n  + create-skill [claude-code] .claude\u002Fskills\u002Fcreate-skill\n  + write-tests  [claude-code] .claude\u002Fskills\u002Fwrite-tests\n  = commit-changes [claude-code] (skipped)\n\n  2 installed, 1 skipped\n```\n\n**Quiet (`--quiet`):**\nStandard reporter output — concise lines with status icons (`+`, `-`, `=`, `!`), no ceremony, no decoration.\n\n**JSON (`--json`):**\n```json\n{\n  \"command\": \"install\",\n  \"items\": 3,\n  \"installed\": 2,\n  \"skipped\": 1,\n  \"failed\": 0\n}\n```\n\nImplementation pattern:\n\n```javascript\nif (options.json) {\n  console.log(JSON.stringify(data, null, 2));\n  return;\n}\nif (options.quiet) {\n  reporter.printResults(results);\n  return;\n}\n\u002F\u002F Default: human-readable output\nprintHumanReadable(results, options);\n```\n\n**Got:** All three modes produce useful output. JSON is parseable. Quiet is concise. Default is informative.\n\n**If fail:** If the command has no meaningful JSON representation (e.g., `detect`), skip the JSON mode and document why.\n\n### Step 5: Add Ceremony Variant (Optional)\n\nFor commands that benefit from warm, narrative output instead of transactional reporting:\n\n```javascript\nif (options.json) {\n  ceremonyReporter.printJson(data);\n} else if (options.quiet) {\n  reporter.printResults(results);\n} else {\n  ceremonyReporter.printArrival({\n    teamId: name,\n    agents,\n    results: { installed, skipped, failed },\n    ceremonial: options.ceremonial || false,\n  });\n}\n```\n\nCeremony output follows voice rules:\n1. Present tense, active voice (\"mystic arrives\", not \"mystic was installed\")\n2. No exclamation marks\n3. Metaphor replaces jargon (\"practices\" not \"dependencies\")\n4. Failures are honest, not catastrophic (\"a spark was lost\")\n5. Closing line reflects state (\"The fire burns.\")\n6. No emoji — use Unicode glyphs (✦ ◉ ◎ ○ ✗)\n7. Every word must carry information\n\nSee `design-cli-output` for detailed terminal output patterns.\n\n**Got:** Ceremony output that follows all voice rules and produces warm, informative narratives.\n\n**If fail:** If ceremony output feels forced or adds no information beyond the standard output, skip it. Not every command needs a ceremony variant.\n\n### Step 6: Handle Errors and Edge Cases\n\n```javascript\n\u002F\u002F Unknown item\nif (!item) {\n  reporter.error(`Unknown: ${name}. Use 'tool list' to browse.`);\n  process.exit(1);\n}\n\n\u002F\u002F Confirmation for destructive actions\nif (!options.yes && !options.quiet && !options.dryRun) {\n  const answer = await askYesNo('Proceed?');\n  if (!answer) {\n    console.log('  Cancelled.');\n    return;\n  }\n}\n\n\u002F\u002F State validation\nif (!state.fires[name]) {\n  reporter.error(`Not active. Nothing to remove.`);\n  process.exit(1);\n}\n```\n\nError design principles:\n- Error messages suggest the corrective action\n- `process.exit(1)` for unrecoverable errors\n- Confirmation prompts for destructive operations (bypass with `--yes`)\n- Dry-run always succeeds (never blocks on confirmation)\n\n**Got:** All error paths produce helpful messages. Destructive operations require confirmation.\n\n**If fail:** If confirmation prompts interfere with scripting, ensure `--yes` and `--quiet` both bypass them.\n\n### Step 7: Write Integration Tests\n\n```javascript\nimport { describe, it, after } from 'node:test';\nimport assert from 'node:assert\u002Fstrict';\nimport { execSync } from 'child_process';\n\nconst CLI = 'node cli\u002Findex.js';\nfunction run(args) {\n  return execSync(`${CLI} ${args}`, { encoding: 'utf8', timeout: 10000 });\n}\n\ndescribe('new-command', () => {\n  after(() => { \u002F* cleanup created files\u002Fstate *\u002F });\n\n  it('dry-run shows preview', () => {\n    const out = run('new-command arg --dry-run');\n    assert.match(out, \u002FDRY RUN\u002F);\n  });\n\n  it('--json outputs valid JSON', () => {\n    const out = run('new-command arg --json');\n    const start = out.indexOf('{');\n    const data = JSON.parse(out.slice(start));\n    assert.equal(data.command, 'new-command');\n  });\n\n  it('rejects unknown input', () => {\n    assert.throws(() => run('new-command nonexistent'), \u002FUnknown\u002F);\n  });\n});\n```\n\nSee `test-cli-application` for comprehensive CLI testing patterns.\n\n**Got:** At least 3 tests: dry-run, JSON output, error case. More for complex commands.\n\n**If fail:** If `execSync` times out, increase the timeout or check for interactive prompts blocking the command.\n\n## Validation\n\n- [ ] Command registered in CLI entry point and appears in `--help`\n- [ ] Standard options (`--dry-run`, `--quiet`, `--json`) work correctly\n- [ ] Default output is human-readable and informative\n- [ ] JSON output is valid and parseable\n- [ ] Error messages suggest corrective actions\n- [ ] Destructive operations require confirmation (bypassed by `--yes`)\n- [ ] At least 3 integration tests pass\n- [ ] Command follows the getContext → resolve → execute → output pattern\n\n## Pitfalls\n\n- **Forgetting the JSON mode**: Machine consumers (scripts, CI) depend on structured output. Always implement `--json` even if the command seems interactive-only.\n- **Confirmation prompts blocking scripts**: Any command that prompts for input will hang in non-interactive contexts. Always provide `--yes` for destructive commands and ensure `--quiet` suppresses prompts.\n- **Inconsistent error exit codes**: Use `process.exit(1)` for all errors. Tools that parse CLI output check exit codes first.\n- **Options without defaults**: Options like `--scope` should have sensible defaults so users don't need to specify them every time.\n- **Leaking ceremony into quiet mode**: The `--quiet` flag means \"minimal output for machines.\" If ceremony text leaks into quiet mode, scripts will break on unexpected output.\n\n## Related Skills\n\n- `build-cli-plugin` — build the adapter\u002Fplugin that commands operate on\n- `test-cli-application` — comprehensive CLI testing patterns beyond the basics in Step 7\n- `design-cli-output` — terminal output design for all verbosity levels\n- `install-almanac-content` — example of a well-structured CLI command skill\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":35,"description":36,"allowed-tools":37,"source_commit":38,"source_locale":39,"translation_date":40},"caveman-lite",{"tags":25,"author":31,"domain":26,"version":32,"language":33,"complexity":34},[26,27,28,29,30],"cli","commander","nodejs","terminal","command-pattern","Philipp Thoss","1.0","TypeScript","intermediate","Julius Brussee homage — caveman","Scaffold a new CLI command using Commander.js with options, action handler, three output modes (human-readable, quiet, JSON), and optional ceremony variant. Covers naming, option design, shared context patterns, error handling, and integration testing. Use to add a command to an existing Commander.js CLI, design a new CLI tool from scratch, or standardize command structure across a multi-command CLI.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-05-03","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Fscaffold-cli-command",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add roohe\u002Fagentic-super-skills --skill scaffold-cli-command",{"tool":55,"command":56},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill scaffold-cli-command",{"tool":58,"command":59},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill scaffold-cli-command","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fscaffold-cli-command\u002FSKILL.md",true,[],[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]