Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design and implement command-line interfaces with subcommand-scoped help, actionable success output, and debuggable failure output. Use when creating or modifying CLI commands, argument parsing, help and usage text, exit codes, or command UX for humans and agents.
.claude/skills/saffron-health-cli-development/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -3% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 28% | 0% |
Build CLIs that stay actionable in both success and failure paths.
--json), print a complete structured success or error object to stdout.0 for success.--json.--dry-run for mutating commands.Use this pattern for each subcommand:
When returning an error, format output in this order:
Success with next step:
textCreated release r123. Next: mycli release publish r123
Success without next step:
textPublished release r123. No further action required.
Failure with recovery:
textError: failed to publish release r123 (artifact missing). Known state: release exists, build step did not produce dist/app.tar.gz. Try: mycli release build r123 Then: mycli release publish r123 Help: mycli help release publish
Other measured skills in the registry, with their headline benchmark lift.