engineer-cli-tools
Skill1 starsChanged 4 months agoMITView on GitHub
Design, implement, package, or review cross-platform CLI tools. Use for command contracts, configuration precedence, structured output, exit codes, logging, resumability, packaging, and CLI tests—not incidental shell commands.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- apply-project-updatesSkill
- audit-project-updatesSkill
- design-agent-capabilitySkill
- maintain-agent-instructionsSkill
- maintain-project-docsSkill
- maintain-project-memorySkill
- maintain-web-design-systemSkill
- prepare-web-assetsSkill
- red-team-technical-planSkill
- release-web-applicationSkill
- research-software-versionsSkill
- verify-software-changeSkill
- web-discovery-artifactsSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
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 27
Use one documented hierarchy appropriate to the project, normally:
- Distinctive: line 37
Do not print secrets or include them in command history.
- Distinctive: line 42
Keep argument parsing thin.
- Distinctive: line 43
Put business behavior behind testable functions or interfaces.
- Distinctive: line 45
Use typed configuration where supported.
- Distinctive: line 47
Write partial state atomically.
- Distinctive: line 53
Read the applicable language guide:
- Distinctive: line 62
Use platform path libraries rather than concatenating separators.
- Distinctive: line 63
Do not assume a POSIX shell, administrator privileges, or executable bits.
- Distinctive: line 68
Keep install and uninstall operations reversible and narrowly scoped.
- Distinctive: line 84
Use the repository's approved validation path.
- Distinctive: line 89
Document the command contract, compatibility or breaking changes, configuration precedence, packaging impact, tests, and remaining platform …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Engineer CLI Tools
Design the command contract before choosing internal architecture.
Establish the contract
Define:
- users and execution environments
- commands, arguments, flags, stdin, stdout, and stderr
- exit-code semantics
- interactive versus non-interactive behavior
- configuration sources and precedence
- machine-readable output and stability promises
- destructive actions, confirmation, and dry-run behavior
- cancellation, retries, idempotency, and resumability
Preserve existing behavior unless a breaking change is approved.
Configuration precedence
Use one documented hierarchy appropriate to the project, normally:
explicit CLI flag
environment variable
project configuration
user configuration
built-in defaultDo not print secrets or include them in command history. Validate configuration early and identify the source of invalid values without exposing the values.
Architecture
- Keep argument parsing thin.
- Put business behavior behind testable functions or interfaces.
- Separate filesystem, network, process, and UI adapters.
- Use typed configuration where supported.
- Make repeated operations idempotent when possible.
- Write partial state atomically.
- Bound concurrency and retries.
- Preserve useful diagnostics while keeping normal stdout stable.
- Provide
--jsonor equivalent only when consumers benefit from a stable schema.
Read the applicable language guide:
references/python.mdreferences/node-typescript.mdreferences/rust.mdreferences/powershell.md
Cross-platform behavior
- Use platform path libraries rather than concatenating separators.
- Do not assume a POSIX shell, administrator privileges, or executable bits.
- Quote child-process arguments through structured APIs.
- Handle Unicode, spaces, long paths, signals, and terminal absence.
- Discover tools through configuration or PATH and report exact missing prerequisites.
- Keep install and uninstall operations reversible and narrowly scoped.
Test the contract
Test:
- help and version output
- valid and invalid arguments
- exit codes and stderr separation
- precedence conflicts
- paths with spaces and Unicode
- missing tools, files, credentials, and network
- interruption and retry behavior
- JSON schema when provided
- destructive-operation gates
Use the repository's approved validation path. Report untested platforms explicitly; do not infer cross-platform success from one host.
Output
Document the command contract, compatibility or breaking changes, configuration precedence, packaging impact, tests, and remaining platform uncertainty.
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.

