skilly. Buy ad slot
All skills
Community / AGENT SKILL

new-command

flowexec/flow
0 installs 136 GitHub stars
0

Scaffold a new Cobra CLI command following the project's patterns.

BEFORE YOU INSTALL

Understand the trade-offs.

SECURITY REVIEW

Not yet assessed

Review the original instructions and requested permissions before installing.

No security review is available for this catalog entry yet.

SKILL QUALITY

Not yet assessed

How clearly the skill guides your agent, how complete its workflow is, and how you can check the outcome.

No quality assessment is available for this catalog entry yet.

The full skill.

Original instructions from the publisher’s SKILL.md

Scaffold a new Cobra CLI command for: $ARGUMENTS

Before writing any code, read a similar existing command to match the exact style:
- Simple verb commands: `cmd/internal/exec.go`
- Noun/verb subcommands: `cmd/internal/workspace.go` or `cmd/internal/vault.go` — each groups its
  subcommands in a single file rather than a directory

Then follow these patterns:

1. **File location**: `cmd/internal/<noun>.go`. Only `root.go` lives directly in `cmd/`; every
   command handler is under `cmd/internal/`. Shared helpers go in `cmd/internal/helpers.go`,
   flags in `cmd/internal/flags/`, output shaping in `cmd/internal/response/`.
2. **Command registration**: register on the parent command, or add to `rootCmd` in `cmd/root.go`
3. **Error handling**:
   - Runtime errors → `errhandler.HandleFatal(ctx, cmd, err)`
   - Flag/arg misuse → `errhandler.HandleUsage(ctx, cmd, "message", args...)`
   - Never use `log.Fatal`, `os.Exit`, or `logger.Log().FatalErr()` in `cmd/`
4. **Context**: resolve workspace context via `pkg/context` before delegating to `internal/services`
5. **Output**: respect `--output` flag (text/json/yaml) for structured responses

After scaffolding, verify it builds — prefer `mcp__flow__execute` with ref `build binary` and
argument `./bin/flow` over a raw shell call.

Skill folder

Files included alongside SKILL.md in the publisher’s repository.