cli-tool-creator
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
Guardrail for deciding when to build a durable CLI and shaping its command contract, auth, JSON, and companion skill.
In this repository57 other files it gives its agents.
- ai-app-integrationSkill
- anti-llm-frontend-designSkill
- aspnet-core-web-developmentSkill
- async-python-patternsSkill
- browser-game-foundationsSkill
- browser-local-qaSkill
- build-mcp-server-sdk-v2Skill
- canva-design-opsSkill
- check-completionSkill
- cloudflare-agents-mcpSkill
- cloudflare-durable-objectsSkill
- cloudflare-workers-platformSkill
- deployment-preview-workflowsSkill
- docx-document-artifactsSkill
- durable-workflow-orchestrationSkill
- dynamic-og-imagesSkill
- eval-auditSkill
- evaluate-ragSkill
- figma-design-to-code-rulesSkill
- fine-tuningSkill
- frontend-product-builderSkill
- game-asset-pipeline-expansionSkill
- game-ui-playtestSkill
- generate-synthetic-dataSkill
- github-pr-ci-opsSkill
- gmail-inbox-opsSkill
- golden-datasetSkill
- huggingface-llm-trainerSkill
- javascript-monorepo-buildsSkill
- linear-issue-managementSkill
- media-generation-transcriptionSkill
- millrace-rs-contract-paritySkill
- minecraft-mod-qa-automationSkill
- notion-workspace-flowsSkill
- openai-docsSkill
- optimize-agentic-cliSkill
- pdf-artifact-workflowSkill
- phaser-2d-game-developmentSkill
- postgres-query-performanceSkill
- product-ui-polish-reviewSkill
- pydantic-v2-patternsSkill
- python-repo-refactoring-hygieneSkill
- rag-corpus-hygieneSkill
- react-next-performance-reviewSkill
- rust-best-practicesSkill
- shadcn-ui-compositionSkill
- skill-evaluation-harnessSkill
- tauri-desktopSkill
- tauri-mcp-cliSkill
- tauri-ptySkill
- tile-pixel-art-transitionsSkill
- train-sentence-transformersSkill
- typer-cli-patternsSkill
- using-dbt-for-analytics-engineeringSkill
- validate-evaluatorSkill
- visual-asset-pipelineSkill
- watchdog-file-watcher-patternsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 17 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Ask the first question explicitly: durable CLI or one-off script?
- Distinctive: line 42
Check whether a command already exists before inventing a new install name.
- Distinctive: line 47
Use product nouns, then verbs.
- Distinctive: line 51
Prefer discovery commands for top-level containers such as accounts, workspaces, projects, queues, channels, repos, or dashboards.
- Distinctive: line 52
Prefer resolve commands that turn names, URLs, slugs, permalinks, or user input into stable IDs before reads and writes.
- Distinctive: line 53
Keep read commands exact and keep list or search output bounded.
- Distinctive: line 54
Keep write commands narrow, one action at a time, and grounded on the narrowest stable ID.
- Distinctive: line 55
Keep raw escape hatches read-first.
- Distinctive: line 57
Document success shape, error shape, redaction behavior, and one example for each command family in the CLI docs or equivalent.
- Distinctive: line 72
Keep the answer compact enough to steer a build, not to replace CLI documentation.
- Distinctive: line 75
Read the source just enough to know whether the job is durable or disposable.
- Distinctive: line 78
Put auth in this order: standard environment variable, then user config, then one-off flags only when unavoidable.
- Distinctive: line 81
Keep the docs specific enough that a future thread can pick the next command without guesswork.
- Distinctive: line 95
Check that the first question was durable CLI or one-off script.
- Distinctive: line 96
Check that the design names a first durable command family and a stable ID or resolve path.
- Very specific: line 97
Check that tool-name --help, tool-name --json doctor, bounded pagination, auth/config order, redaction, and the companion skill are all …
- Distinctive: line 98
Check that the docs or equivalent explain success shape, error shape, and one example per command family.
- Distinctive: line 99
If the answer still feels like a one-command wrapper, the design is too broad.
≈ “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
CLI Tool Creator
Purpose
Help agents decide whether a source should become a durable CLI or stay a repo-local script, then shape the command contract so future Codex threads can run it safely from any repo. This is a guardrail, not a CLI implementation manual.
Use When
- the source is API docs, OpenAPI, SDK docs, curl examples, a web admin tool, or a local script
- the user wants a reusable command surface, not a one-off shell snippet
- the workflow needs discovery, stable IDs, read/write separation, machine-readable output, or repeated reuse
- the CLI must work from any repo and may need a companion skill afterward
Do Not Use When
- a short repo-local script solves the task
- there is no stable command surface to design
- the ask is generic prompt engineering or shell automation with no reusable tool
- the implementation already exists and only execution remains
Quick Start
- Ask the first question explicitly: durable CLI or one-off script?
- Name the source type and the first real jobs it must do.
- Check whether a command already exists before inventing a new install name.
- Choose the smallest command surface that covers
doctor, discover, resolve, read, write, and raw. - Make auth, JSON, and companion-skill handoff part of the contract before writing code.
Operating Constraints
- Use product nouns, then verbs.
- Build around
doctor, discovery, resolve, read, write, and raw escape hatches. - Require
tool-name --helpto show the major capabilities. - Require
tool-name --json doctorto verify config, auth, version, endpoint reachability, fixture or offline mode when relevant, and missing setup. - Prefer discovery commands for top-level containers such as accounts, workspaces, projects, queues, channels, repos, or dashboards.
- Prefer resolve commands that turn names, URLs, slugs, permalinks, or user input into stable IDs before reads and writes.
- Keep read commands exact and keep list or search output bounded.
- Keep write commands narrow, one action at a time, and grounded on the narrowest stable ID.
- Keep raw escape hatches read-first; raw writes stay explicit and are not the main interface.
- Return stable machine-readable output under
--json, and keep errors machine-readable too. - Document success shape, error shape, redaction behavior, and one example for each command family in the CLI docs or equivalent.
Inputs This Skill Expects
- The source type: API docs, OpenAPI, SDK docs, curl history, web admin tool, or local script.
- The first real jobs the CLI must do.
- The auth and config story the service already expects, if any.
- The stable ID or lookup path the service exposes, if any.
- Any evidence that the job needs repeated reuse from any repo instead of a one-off script.
Output Contract
- Decide durable CLI versus one-off script first.
- Name the first durable command family and the stable ID or resolve path.
- Show
doctor, discover/resolve/read/write/raw, bounded pagination, auth/config precedence, and JSON policy. - State how tokens are redacted and how errors surface without leaking credentials.
- Include a companion-skill handoff that teaches order, safety, and the safe read path.
- Keep the answer compact enough to steer a build, not to replace CLI documentation.
Procedure
- Read the source just enough to know whether the job is durable or disposable.
- Name the job family and the nouns that should become commands.
- Design discovery, resolve, read, write, and raw around stable IDs and bounded output.
- Put auth in this order: standard environment variable, then user config, then one-off flags only when unavoidable.
- Make
doctor --jsonthe first setup check and make it honest about missing auth, missing config, and offline or fixture mode. - Require a companion skill after the CLI exists so future Codex threads know the order of operations.
- Keep the docs specific enough that a future thread can pick the next command without guesswork.
Pitfalls And Gotchas
- One generic
requestcommand that hides the real workflow. - Hidden writes inside broad verbs like
fix,debug, orauto. - Unbounded search or list output that cannot be consumed safely.
- Secrets leaking into JSON, logs, or examples.
- Treating raw requests as the main interface instead of a repair hatch.
- Splitting the same durable-CLI logic into separate source-specific skills when one command contract would do.
Progressive Disclosure
Start with the narrowest reading of the source that lets you decide whether the CLI is durable. Expand only enough to map containers, IDs, reads, writes, and the raw escape hatch cleanly. If the design starts sounding like a generic command wrapper, go back and tighten the surface.
Verification Pattern
- Check that the first question was durable CLI or one-off script.
- Check that the design names a first durable command family and a stable ID or resolve path.
- Check that
tool-name --help,tool-name --json doctor, bounded pagination, auth/config order, redaction, and the companion skill are all explicit. - Check that the docs or equivalent explain success shape, error shape, and one example per command family.
- If the answer still feels like a one-command wrapper, the design is too broad.
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.

