cli-creator
Skill2 starsChanged 5 months agoMITView on GitHub
Use when designing, scaffolding, refactoring, or auditing Python CLI tools or CLI-related skills/templates, including command-first CLIs, configuration-driven tools, performance-oriented utilities, interactive assistants, data pipelines, LLM-enabled command line products, Typer, Click, argparse, uv, packaging, testing, and release workflows.
- Installs packages
7 other projects use a version of this.
Adopted by
Most recently taken up by
- AymanShams/codex-coding-ostheir own version, first seen Sep 12, 2026
- belentani7/manus-ai-skill-packtheir own version, first seen Sep 12, 2026
- wedsamuel1230/arduino-skillstheir own version, first seen Aug 11, 2026
- psomialbert/tool-smiththeir own version, first seen Jul 23, 2026
- tutti-os/skillstheir own version, first seen Jul 9, 2026
- Christopher-Schulze/CR-Agent-Skillstheir own version, first seen Jun 20, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- openai/skills★ 28ksame name
- wedsamuel1230/arduino-skills★ 22same name
- AymanShams/codex-coding-os★ 1same name
- belentani7/manus-ai-skill-pack★ 0same name
- Christopher-Schulze/CR-Agent-Skills★ 0same name
- psomialbert/tool-smith★ 0same name
- tutti-os/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 20 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Do not force an assistant architecture onto a command-first tool.
- Distinctive: line 34
Prefer the smallest CLI that solves the user job.
- Distinctive: line 35
Use the minimal CLI/YAGNI path: if the tool has one or two commands, no persistent state, no network, no plugins, and no credentials, keep …
- Distinctive: line 36
Keep names, flags, exit codes, config keys, and output modes stable.
- Distinctive: line 39
Keep machine output scriptable with JSON or plain mode.
- Distinctive: line 40
Verify that the README command is the installed console script.
- Very specific: line 42
Treat interactive and headless modes as separate product paths with shared command contracts.
- Very specific: line 43
Put dangerous capabilities behind a reviewable permission model: filesystem writes, shell execution, plugin loading, credential access, …
- Very specific: line 44
Keep --help and machine modes import-light.
- Distinctive: line 48
Read only the references needed for the task:
- Distinctive: line 55
Do not duplicate those references here.
- Distinctive: line 83
Use arguments for required domain objects.
- Distinctive: line 84
Use options for modifiers, output modes, and optional behavior.
- Distinctive: line 87
Avoid surprising network or mutation in commands that sound read-only.
- Distinctive: line 91
Always verify the command surface, installation path, and wheel path when they matter:
- Distinctive: line 102
Use this compact pack when applicable:
- Distinctive: line 117
When auditing an existing CLI or CLI-related skill/template:
- Very specific: line 124
Read references/technical-best-practices.md when the audit touches implementation details, packaging, security, cross-platform behavior, …
- Very specific: line 129
Run help: root --help and command-level help.
- Distinctive: line 132
Check configuration precedence: flags, env, project config, user config, defaults.
- Distinctive: line 133
Check security: secrets, shell execution, path handling, unsafe config/plugins, telemetry, subprocess timeouts, dependency supply chain.
- Distinctive: line 134
Check performance: startup imports, network timeouts, cache behavior, file discovery.
- Very specific: line 135
Check automation: exit codes, JSON output, stdin/stdout/stderr separation, non-TTY behavior.
- Distinctive: line 136
Check packaging: Python version, dependencies, scripts, wheels, README commands.
- Distinctive: line 161
Keep this skill as a router.
- Distinctive: line 162
Keep the command examples, audit headings, and verification pack in sync with the package release.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLI Creator
Router for building and auditing production-grade Python CLI tools and CLI-related skills/templates. Use it to decide CLI shape, keep the command surface small, preserve installability, and enforce review outputs. This skill stays lightweight: read only the references you need.
When To Use
- New Python CLI or command tree.
- CLI refactor, simplification, or packaging cleanup.
- CLI review/audit, including UX, config, errors, cache, and release flow.
- Agent skill, scaffold, or template that behaves like a CLI package.
- Verification of install, wheel, or console-script behavior.
CLI Type Selection
| Type | Bias |
| Command-first utility | Thin router, strict exit codes, JSON/plain output. |
| Configuration-driven tool | Config discovery, precedence, reproducibility. |
| Interactive assistant | Flow/state machine, prompts, recovery. |
| Hybrid CLI | Small command tree plus reusable orchestration. |
| Performance-heavy CLI | Lazy imports, bounded IO, cache/progress. |
| Plugin/extensible CLI | Stable extension contract and registry. |
| Agent/assistant CLI | One command registry feeding parser, slash commands, help, prompts, headless mode, and permissions. |
Do not force an assistant architecture onto a command-first tool. Do not force a single-script shape onto a growing product.
Core Rules
- Prefer the smallest CLI that solves the user job.
- Use the minimal CLI/YAGNI path: if the tool has one or two commands, no persistent state, no network, no plugins, and no credentials, keep it tiny; do not add Rich, Pydantic, platformdirs, cache layers,
doctor, or plugin registries unless they solve an immediate problem. - Keep names, flags, exit codes, config keys, and output modes stable.
- Make defaults useful and safe.
- Separate routing, domain logic, IO, config, persistence, rendering, and integrations.
- Keep machine output scriptable with JSON or plain mode.
- Verify that the README command is the installed console script.
- For assistant, slash-command, or plugin CLIs, keep one command descriptor contract. Include name, aliases, description, visibility, enabled state, source, execution kind, non-interactive support, permission requirements, and lazy loader.
- Treat interactive and headless modes as separate product paths with shared command contracts. A command that renders a TUI picker should not silently appear in
--print, CI, or remote/bridge mode unless it has a non-interactive implementation. - Put dangerous capabilities behind a reviewable permission model: filesystem writes, shell execution, plugin loading, credential access, remote mutation, and generated artifact sends should have clear allow/deny/ask rules and safe failure behavior.
- Keep
--helpand machine modes import-light. Lazy-load heavy UI, analytics, provider SDKs, plugin registries, and report renderers inside the command body.
Reference-Loading Rules
Read only the references needed for the task:
- Creation or refactor:
references/creation-playbook.md. - Review or audit:
references/review-rubric.mdandreferences/pitfalls-and-solutions.md. - Implementation details, packaging, security, cross-platform behavior, Rich output, cache, or LLM providers:
references/technical-best-practices.md. - For skill/package maintenance, consult workspace-root governance folders
skill-ir/,evals/,scripts/,reports/, andregistry/when they exist. These are maintainer-side routing aids, not bundled inside an installed skill copy.
Do not duplicate those references here. Load them only when the current task needs them.
New CLI Or Skill Creation Flow
- Determine the product shape: who runs it, what pressure it is under, and what must be cached, remembered, or forgotten.
- Design the command surface with a few stable commands and real examples.
- Choose the smallest stack that fits.
- Typer or Click for most CLIs.
- argparse only for tiny stdlib-friendly tools.
- Pick the smallest architecture that will survive the next two releases.
- Implement the product loop: input, validation, execution, rendering, persistence, exit code, recovery hint.
- Verify before shipping.
Command Surface Examples
my-cli run
my-cli init
my-cli config show
my-cli doctor
my-cli cache clear
my-cli check PATH
my-cli fetch QUERY --json
my-cli export ID --output result.mdRules:
- Use arguments for required domain objects.
- Use options for modifiers, output modes, and optional behavior.
- Provide
--jsonor--format jsonfor automation. - Provide
--quiet,--verbose, and--debugconsistently. - Avoid surprising network or mutation in commands that sound read-only.
Verification Expectations
Always verify the command surface, installation path, and wheel path when they matter:
--helpfor the root command and each top-level command.- Clean install into a new environment.
- Missing config or first-run path when the tool has config.
- Invalid config or error path when the tool validates input.
- Success path plus JSON/scriptable mode when supported.
- Cache refresh and cache clear when the tool has cache.
- Packaging metadata and console script.
- Wheel install from outside the repository when you want install confidence.
Use this compact pack when applicable:
uv venv /tmp/cli-audit
. /tmp/cli-audit/bin/activate
uv pip install -e .
cli-creator-skill --help
cli-creator-skill install
uv build
uv pip install dist/*.whl
python -m pytestReview Workflow
When auditing an existing CLI or CLI-related skill/template:
Before reviewing, read:
references/review-rubric.mdreferences/pitfalls-and-solutions.md
Read references/technical-best-practices.md when the audit touches implementation details, packaging, security, cross-platform behavior, Rich output, caching, or LLM providers.
Then:
- Inspect repository shape: package layout, command entry points, config files, tests, docs, CI.
- Run help: root
--helpand command-level help. - Trace one successful command from callback to domain service to renderer.
- Trace one failure path and inspect error quality.
- Check configuration precedence: flags, env, project config, user config, defaults.
- Check security: secrets, shell execution, path handling, unsafe config/plugins, telemetry, subprocess timeouts, dependency supply chain.
- Check performance: startup imports, network timeouts, cache behavior, file discovery.
- Check automation: exit codes, JSON output, stdin/stdout/stderr separation, non-TTY behavior.
- Check packaging: Python version, dependencies, scripts, wheels, README commands.
- Score every rubric area with
references/review-rubric.md. - Return findings first, then prioritized fixes.
Required Audit Output
Audit output must include these sections, in this order:
**Findings**
**Scores**
| Area | Score | Notes |
|---|---:|---|
**Repair Order**
**Test Gaps**
**Verification Commands**Maintenance Notes
- Keep this skill as a router; put implementation detail in the four references.
- Keep the command examples, audit headings, and verification pack in sync with the package release.
- For maintainer-side governance, use the workspace-root
skill-ir/,evals/,scripts/,reports/, andregistry/folders when present; do not pretend they are part of the installed skill.
What This Skill Helps With
- Designing a new Python CLI from scratch.
- Reviewing an existing CLI for UX, packaging, errors, model setup, caching, and maintainability.
- Structuring Typer, Click, argparse, or hybrid applications.
- Building natural multi-turn CLI flows without making users feel like they are filling out a form.
- Adding diagnostics, cache, profile memory, and first-run setup flows when they are actually needed.
- Reviewing CLI-related skills and templates for trigger clarity, reference completeness, command templates, output contracts, and maintenance strategy.
Design Basis
This skill distills maintainer experience and official documentation patterns for Python packaging, Typer, Click, Rich, uv, Ruff, Pydantic, and LLM provider integration. It does not vendor code or instructions from unofficial third-party repositories.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

