new-command - Scaffold a Cobra CLI command following patterns
Scaffold a Cobra CLI command following project patterns and verify the build.
Tags
Updated: 2026-09-10Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Read existing command patterns
- Scaffold command source file
- Register command on parent command
- Handle runtime and flag misuse errors
- Resolve workspace context using pkg/context
- Format text json or yaml output
- Verify build status after scaffolding
Inputs
- Command verb and noun arguments
- Existing command file patterns
Outputs
- New command file under cmd/internal/
- Updated command registration code
- Build verification status
Requirements
- Disabled model invocation setting
- Access to mcp__flow Bash and Read tools
