一键导入
new-command
Scaffold a new Cobra CLI command following the project's patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new Cobra CLI command following the project's patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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.
基于 SOC 职业分类
| 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