agentleFS
ImYourBoyRoyImYourBoyRoy/agent-continuity-stack/skills/engineer-cli-tools/SKILL.md

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.

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
  1. Distinctive:

    Use one documented hierarchy appropriate to the project, normally:

    line 27
  2. Distinctive:

    Do not print secrets or include them in command history.

    line 37
  3. Distinctive:

    Keep argument parsing thin.

    line 42
  4. Distinctive:

    Put business behavior behind testable functions or interfaces.

    line 43
  5. Distinctive:

    Use typed configuration where supported.

    line 45
  6. Distinctive:

    Write partial state atomically.

    line 47
  7. Distinctive:

    Read the applicable language guide:

    line 53
  8. Distinctive:

    Use platform path libraries rather than concatenating separators.

    line 62
  9. Distinctive:

    Do not assume a POSIX shell, administrator privileges, or executable bits.

    line 63
  10. Distinctive:

    Keep install and uninstall operations reversible and narrowly scoped.

    line 68
  11. Distinctive:

    Use the repository's approved validation path.

    line 84
  12. Distinctive:

    Document the command contract, compatibility or breaking changes, configuration precedence, packaging impact, tests, and remaining platform …

    line 89

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 default

Do 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 --json or equivalent only when consumers benefit from a stable schema.

Read the applicable language guide:

  • references/python.md
  • references/node-typescript.md
  • references/rust.md
  • references/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.