Skip to main content

Scaffold Cli Command

Skill Verified Active

Scaffold a new CLI command using Commander.js with options, action handler, three output modes (human-readable, quiet, JSON), and optional ceremony variant. Covers command naming, option design, shared context patterns, error handling, and integration testing. Use when adding a command to an existing Commander.js CLI, designing a new CLI tool from scratch, or standardizing command structure across a multi-command CLI.

Purpose

To reliably generate new CLI commands following best practices for Commander.js, ensuring consistency in structure, output, and error handling.

Features

  • Scaffolds new CLI commands with Commander.js
  • Supports multiple output modes (human-readable, quiet, JSON)
  • Includes optional ceremony variant for narrative output
  • Covers command naming, option design, and shared context patterns
  • Provides error handling and integration testing guidance

Use Cases

  • Adding a command to an existing Commander.js CLI
  • Designing a new CLI tool from scratch
  • Standardizing command structure across a multi-command CLI

Non-Goals

  • Building the entire CLI application
  • Handling complex state management beyond command execution
  • Interacting with external services not related to command scaffolding

Installation

/plugin install agent-almanac@pjt222-agent-almanac

Quality Score

Verified
98 /100
Analyzed about 20 hours ago

Trust Signals

Last commit1 day ago
Stars14
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.