cli-design
Skill1 starsChanged 3 months agoMITView on GitHub
Design or review a command-line interface that humans and agents can run reliably. Use for headless automation, flags, help, output contracts, exit codes, pipelines, retries, dry-run, and safe state changes.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- danielsitek/skillstheir own version, first seen Nov 8, 2026
- TidalPaladin/skillstheir own version, first seen Nov 8, 2026
- notque/vexjoy-agenttheir own version, first seen Nov 7, 2026
- drinkspiller/skillstheir own version, first seen Nov 6, 2026
- yahyabedirhan/skillstheir own version, first seen Nov 1, 2026
- damacus/agent-skillstheir own version, first seen Oct 29, 2026
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- vm0-ai/vm0★ 1.2ksame name
- notque/claude-code-toolkit★ 448same name
- notque/vexjoy-agent★ 448same name
- joelhooks/joelclaw★ 65same name
- tenstorrent/tt-studio★ 52same name
- z-Zihan/Evir★ 11same name
- markphelps/agent-plugins★ 5same name
- magarcia/skills★ 4same name
- yahyabedirhan/skills★ 3same name
- damacus/agent-skills★ 2same name
7 more not listed
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.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architectureSkill
- browser-automationSkill
- debugSkill
- experimentSkill
- gauntlet-loopSkill
- get-it-doneSkill
- grillingSkill
- handoffSkill
- implementSkill
- merge-conflictsSkill
- office-filesSkill
- planSkill
- project-contextSkill
- quick-modeSkill
- releaseSkill
- researchSkill
- reviewSkill
- skill-designSkill
- teachSkill
- testSkill
- triageSkill
- wait-whatSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Treat the CLI as a stable interface, not as terminal decoration.
- Distinctive: line 10
Headless inputs: Every required input MUST have a non-interactive flag, argument, environment variable, configuration field or …
- Distinctive: line 12
Streams and exit codes: Write primary results to standard output.
- Distinctive: line 13
Machine-readable output: When tools consume the result, provide a structured output mode or a deliberately stable line format.
- Distinctive: line 22
Run the CLI from a clean non-interactive environment.
- Distinctive: line 36
Use ASD-STE100-inspired short, active technical sentences and familiar words.
- Distinctive: line 40
Use BCP 14 only for normative force.
- Distinctive: line 41
Before risky or failure-prone work, warn, add any needed hold point and verify the safe state.
- Distinctive: line 43
Avoid surprise scope; leave results usable or resumable.
“Common” is measured: kept by at least 6 in 10 of the 14 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 Design
Treat the CLI as a stable interface, not as terminal decoration. Apply IEC/IEEE 82079-1, ISO/IEC/IEEE 26514, ISO/IEC 23859, and ISO 704 proportionally to help, examples, prompts, warnings, errors, and recovery instructions.
Contract
- Users and automation. Identify the human and automation jobs. Keep command and flag names predictable across the tool.
- Shared semantics. Reuse typed inputs, authorisation, validation, idempotency and errors for domain actions shared with UI, HTTP, MCP or jobs. Keep CLI parsing and presentation thin.
- Headless inputs. Every required input MUST have a non-interactive flag, argument, environment variable, configuration field or standard-input path. Interactive prompts MAY provide convenience, but cannot be the only path.
- Help and examples. Provide useful top-level and command help, defaults, prerequisites and copyable examples. Before consequential commands, show a warning, safe-state or dry-run check, expected result, failure sign and recovery. Users SHOULD be able to discover the next valid command without external documentation.
- Streams and exit codes. Write primary results to standard output. Write diagnostics to standard error. Use stable, documented exit codes.
- Machine-readable output. When tools consume the result, provide a structured output mode or a deliberately stable line format. Do not require color, cursor control, or a TTY.
- Pipelines. Support standard input and pipelines where they fit the job. Bound or paginate large output.
- Strict input boundary. Apply RFC 9413-inspired strict boundary behavior. Accept only documented input variants. Normalize once. Reject ambiguity.
- Fail fast with an actionable canonical error. Name the invalid input and show the next valid action. When relevant, state the state of partial work or data.
- The CLI MUST NOT hide partial failure behind exit code zero.
- Safe retries. Make retryable operations idempotent where practical. For consequential external mutations, support an idempotency mechanism or a read-back check.
- Destructive-action preview. Provide
--dry-runfor risky or broad changes when practical. Require an explicit confirmation flag such as--yesor--forcefor destructive actions. Default to safety. - Failure and cleanup. Handle timeout, cancellation, interruption, cleanup, and partial state. Never print secrets. Never accept secrets through a command-line argument when a safer channel exists.
Verify
Run the CLI from a clean non-interactive environment. Check:
- help and examples;
- missing and malformed input;
- standard input and pipelines;
- human and machine-readable output;
- exit codes and standard-error behavior;
- repeated invocation and retry safety;
- dry-run with no side effect;
- cancellation and cleanup;
- cross-surface contract parity when applicable;
- backwards compatibility for established commands. Report the interface contract, examples, executed checks, unsupported cases, and remaining risk.
Communication kernel
Number ordered actions; group long lists without hiding required items. After interruption or task change, restore relevant completed/current/pending state, not repetitive status each turn. Preserve language, exact tokens, formats, permissions and evidence. Never invent estimates or diagnose readers. Show verified outcomes and factual errors; give a concrete next action only if work remains. - If trusted root AGENTS.md loads, its policy governs. Otherwise apply this standalone kernel. Do not claim root activation without evidence.
- Use ASD-STE100-inspired short, active technical sentences and familiar words. Use ISO 704-inspired stable concepts and terminology. Use Diátaxis to separate how-to, reference, and explanation when useful. These are the default communication drivers, not a claim of formal standards conformance.
- Lead with the supported result, action or blocker. Report fresh verification, material uncertainty and remaining user action. Omit routine tool narration and praise.
- State verified failure and evidenced responsibility directly. Correct actual agent errors or give the next safe action.
- Preserve facts, negation, uncertainty, evidence limits, permissions, quotations, requested voice and exact artefact formats.
- Use BCP 14 only for normative force. Important requirements name one actor, action and observable check; do not turn advice into mandates.
- Before risky or failure-prone work, warn, add any needed hold point and verify the safe state. State the expected result, failure sign and recovery. Explain difficult mechanisms simply; use compliant/noncompliant contrasts only when useful.
- For measurable multi-step work with a defensible total, show named 20-cell ASCII progress, rounded down from processed items, separately from the verdict. Processed does not mean passed. Otherwise report phase and evidence.
- Avoid surprise scope; leave results usable or resumable. Keep simple replies short without truncating needed detail. Omit routine Summary headings and closing recaps. Use TL;DR only when helpful for a complex response, and place it first.
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.

