with one click
new-command
Scaffold a new Cobra CLI command following the project's patterns.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Scaffold a new Cobra CLI command following the project's patterns.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | new-command |
| description | Scaffold a new Cobra CLI command following the project's patterns. |
| disable-model-invocation | true |
| argument-hint | <verb> [noun] โ what the command does |
| allowed-tools | Bash(flow build:*) Bash(go build:*) Read |
Scaffold a new Cobra CLI command for: $ARGUMENTS
Before writing any code, read a similar existing command to match the exact style:
cmd/exec.gocmd/workspace/ or cmd/vault/Then follow these patterns:
cmd/<verb>.go for top-level, or cmd/<noun>/<verb>.go for subcommandsinit() or cmd/root.goerrhandler.HandleFatal(ctx, cmd, err)errhandler.HandleUsage(ctx, cmd, "message", args...)log.Fatal, os.Exit, or logger.Log().FatalErr() in cmd/pkg/context before delegating to internal/services--output flag (text/json/yaml) for structured responsesAfter scaffolding, verify it builds: flow build binary ./bin/flow
This project uses flow for automation. When asked to build, test, run, deploy, lint, generate, or perform any dev task, check for a flow executable before falling back to raw shell commands.
Add a new executable type to the flow runner (a new kind of automation block users can define in .flow files).
Run a pre-PR readiness check and report READY or NOT READY.
Run flow validate and fix any failures. Invoke after completing a feature or bug fix to confirm the codebase is clean before committing.