This walks you through designing a CLI from scratch, covering the whole surface area: arguments, flags, subcommands, output formats, error handling, configuration precedence, and dry-run semantics. It front-loads the clig.dev guidelines as a default rubric, asks only the minimum clarifying questions, then outputs a complete spec with usage synopsis, exit codes, stdin/stdout contracts, and example invocations. Use it when you need to nail down the interface before writing any code. The structured deliverables list is thorough without being prescriptive about implementation. It defaults to sensible conventions like respecting NO_COLOR and requiring confirmations for destructive operations, but stays language-agnostic unless you need parsing library recommendations.

skills.sh installs
437
GitHub stars
7.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add steipete/agent-scripts --skill create-cli --agent claude-code

Installs into .claude/skills of the current project.

Files

Create CLI

Design CLI surface area (syntax + behavior), human-first, script-friendly.

Do This First

Clarify (fast)

Ask, then proceed with best-guess defaults if user is unsure:

  • Command name + one-sentence purpose.
  • Primary user: humans, scripts, or both.
  • Input sources: args vs stdin; files vs URLs; secrets (never via flags).
  • Output contract: human text, --json, --plain, exit codes.
  • Interactivity: prompts allowed? need --no-input? confirmations for destructive ops?
  • Config model: flags/env/config-file; precedence; XDG vs repo-local.
  • Platform/runtime constraints: macOS/Linux/Windows; single binary vs runtime.

Deliverables (what to output)

When designing a CLI, produce a compact spec the user can implement:

Sponsors

Details

Repository
github.com/steipete/agent-scripts
Categories
AI & Agent Building, CLI & Terminal
First seen
Jun 3, 2026

More from steipete/agent-scripts

All 9
1aj-geddes avatarrelease-planningaj-geddes/useful-ai-promptsPlan, coordinate, and execute software releases across environments. Manage versioning, rollout strategies, rollback procedures, and stakeholder communication f436skills.sh installs
2jwynia avatarcontext-networkjwynia/agent-skillsBootstrap, maintain, and evolve context networks across their full lifecycle. Use when starting a new project, when existing documentation feels scattered, or w436skills.sh installs
3jwynia avatarspeech-adaptationjwynia/agent-skillsTransform comprehensive written content into purposeful spoken guidance. Use when adapting for speech, converting to spoken format, optimizing for listening, or436skills.sh installs
4auth0 avatarauth0-spa-jsauth0/agent-skillsUse when adding Auth0 login or token management to a Vanilla JS, Svelte, or framework-agnostic SPA. Integrates @auth0/auth0-spa-js — use when there is no framew434skills.sh installs
5jwynia avatarcompetency-builderjwynia/agent-skillsGuide competency framework development and operation. Use when building training that produces capability, when existing training doesn't produce competence, wh434skills.sh installs
6maxnorm avatarmagento-performance-analystmaxnorm/magento2-agent-skillsConducts comprehensive Magento 2 performance analysis and optimization. Use when analyzing performance bottlenecks, profiling applications, optimizing database 434skills.sh installs