write-cli
Skill0 starsChanged 52 days agoApache-2.0View on GitHub
Builds a command-line tool that is pleasant for people and scripts. Use when creating a CLI.
- Installs packages
In this repository33 other files it gives its agents.
- algorithmsSkill
- break-down-workSkill
- ci-cdSkill
- clarify-requirementsSkill
- concurrencySkill
- containers-and-deploySkill
- data-analysisSkill
- data-durabilitySkill
- debugSkill
- dependenciesSkill
- design-apiSkill
- design-architectureSkill
- estimate-and-risksSkill
- explain-codeSkill
- git-workflowSkill
- handle-errors-and-loggingSkill
- implement-featureSkill
- incident-responseSkill
- ml-experimentSkill
- model-dataSkill
- observabilitySkill
- performanceSkill
- refactorSkill
- research-and-compareSkill
- review-codeSkill
- security-reviewSkill
- write-adrSkill
- write-docsSkill
- write-goSkill
- write-pythonSkill
- write-sqlSkill
- write-testsSkill
- write-typescriptSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Create main.py (or main.go/main.rs).
- Very specific: line 13
Write tests in tests/test_main.py.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Steps
- Create
main.py(ormain.go/main.rs). Importargparse,click, orcobra. - Define arguments and flags. Ensure
--helpprints a clear explanation for every option. - Prompt only when
sys.stdin.isatty()is true; otherwise require the value as a flag and fail with a usage error. - Execute core logic. Catch exceptions. Write errors to
stderrwith a concrete fix hint. - Format output. Default to human-readable text. Enable
--jsonfor machine-readable output. - Set exit codes:
0for success,1for failure,2for usage errors. - Write tests in
tests/test_main.py. Callmain()directly with explicit argument lists. - Register the command as an entry point (
[project.scripts]inpyproject.toml, orgo install).
Checklist
--helplists every flag with a one-line explanation.- Exit codes match: 0 ok, 1 failure, 2 usage.
--jsonflag outputs valid JSON. Default output is plain text.- All errors go to
stderr. Each error includes a concrete fix hint. - No interactive prompt when stdin is not a terminal.
- Tests call
main()with explicit arguments. No subprocess calls in tests. - Entry point uses
if __name__ == "__main__":guard.
Output
- The complete source file with argument parsing and exit code handling.
- A test file that invokes
main()directly with sample arguments. - A one-line usage example showing the
--jsonflag and expected output.
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.

