Scaffold CLI Command
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.
Install
npx skills add pjt222/agent-almanac --skill scaffold-cli-commandgit clone --depth 1 https://github.com/pjt222/agent-almanac.git /tmp/agent-almanac
mkdir -p ~/.claude/skills
cp -r /tmp/agent-almanac/i18n/caveman-lite/skills/scaffold-cli-command ~/.claude/skills/scaffold-cli-commandPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Scaffold a CLI Command Add a new command to a Commander.js CLI with consistent option handling, three output modes, and integration tests. ## When to Use - Adding a new command to an existing Commander.js CLI - Designing a multi-command CLI tool from scratch - Standardizing command structure so all commands follow the same patterns - Adding a "ceremony" variant that replaces machine output with warm narrative ## Inputs - **Required**: Command name and verb (e.g., `gather`, `audit`, `sync`) - **Required**: What the command does (one sentence) - **Required**: Path to CLI entry point (e.g., `cli/index.js`) - **Optional**: Whether the command needs a ceremony variant - **Optional**: Custom options beyond the standard set - **Optional**: Subcommand arguments (positional args like `<name>` or `[names...]`) ## Procedure ### Step 1: Choose the Command Name and Category Select a verb that communicates the command's action. Group commands into categories: | Category | Verbs | Pattern | |---|---|---| | CRUD | `install`, `uninstall`, `list`, `search` | Operates on content | | Lifecycle | `init`, `sync`, `audit` | Manages project state | | Ceremony | `gather`, `scatter`, `tend`, `campfire` | Warm narrative output | Naming conventions: - Single verb (not `install-skill` — let options specify what) - Lowercase, no hyphens in the command name itself - Positional args: `<required>` or `[optional]` or `[variadic...]`
Details
- Skill name
scaffold-cli-command- Repository
- pjt222/agent-almanac
- Path
i18n/caveman-lite/skills/scaffold-cli-command/SKILL.md- License
- MIT
- Repo updated
- 18 November 2026
- Listed in
- BehiSecc/awesome-claude-skills
FAQ
What does the Scaffold CLI Command skill do?
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.
How do I install the Scaffold CLI Command skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add pjt222/agent-almanac --skill scaffold-cli-command. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Scaffold CLI Command popular?
It lives in pjt222/agent-almanac, which has 45 GitHub stars and 4 forks, and is included in 1 curated skill list.
Related skills
Adapt Architecture
45pjt222/agent-almanac
Execute structural metamorphosis using strangler fig migration, chrysalis phases, and interface preservation. Covers transformation planning, parallel running, progressive cutover, rollback design, and post-metamorphosis stabilization for system architecture evolution. Use when assess-form has classified the system as READY for transformation, when migrating from monolith to microservices, when replacing a core subsystem while dependents continue operating, or when any architectural change must be gradual rather than big-bang.
Adaptic
45pjt222/agent-almanac
Master skill composing the 5-step synoptic cycle for panoramic synthesis across multiple domains. Orchestrates meditate, expand-awareness, observe, awareness, integrate-gestalt, and express-insight into a coherent process that produces unified understanding rather than sequential compromise. Use when a problem genuinely spans 3+ domains and the interactions between domains matter more than depth in any one, when sequential analysis feels like compromise rather than integration, or before major architectural decisions affecting multiple stakeholders.
Add Puzzle Type
45pjt222/agent-almanac
Scaffold a new puzzle type across all 10+ pipeline integration points in jigsawR. Creates the core puzzle module, wires it into the unified pipeline (generation, positioning, rendering, adjacency), adds ggpuzzle geom/stat layers, updates DESCRIPTION and config.yml, extends the Shiny app, and creates a comprehensive test suite. Use when adding a completely new puzzle type to the package or following the 10-point integration checklist to ensure nothing is missed end-to-end.
Serialize Data Formats
45pjt222/agent-almanac
Serialize and deserialize data across common formats: JSON, XML, YAML, Protocol Buffers, MessagePack, Apache Arrow/Parquet. Covers format selection criteria, encoding/decoding patterns, performance tradeoffs, and interoperability. Use when choosing a wire format for API communication, persisting structured data to disk, exchanging data between systems in different languages, optimizing transfer size or parsing speed, or migrating from one serialization format to another.
Review Software Architecture
45pjt222/agent-almanac
Review software architecture for coupling, cohesion, SOLID principles, API design, scalability, and technical debt. Covers system-level evaluation, architecture decision record review, and improvement recommendations. Use when evaluating a proposed architecture before implementation, assessing an existing system for scalability or security, reviewing ADRs, performing a technical debt assessment, or evaluating readiness for significant scale-up.
Setup Wsl Dev Environment
45pjt222/agent-almanac
Set up a WSL2 development environment on Windows including shell configuration, essential tools, Git, SSH keys, Node.js, Python, and cross-platform path management. Use when setting up a new Windows machine for development, configuring WSL2 for the first time, adding development tools to an existing WSL installation, or setting up cross-platform workflows that combine WSL and Windows tools.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.