跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

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 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.

目的

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

功能

  • 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

使用场景

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

非目标

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

安装

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

质量评分

已验证
98 /100
about 23 hours ago 分析

信任信号

最近提交2 days ago
星标14
许可证MIT
状态
查看源代码