ain3sh/.agents/cli-creator
Claude Code and agent skill by ain3sh/.agents
- community
Checking that the SKILL.md file is still in the repository.
Build a composable CLI from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.
Install
npx vskill@latest install ain3sh/.agents/cli-creatorSKILL.md
The same SKILL.md was published earlier as ain3sh/.agents/cli-creator.
CLI Creator
Create a real CLI that future sessions can run by command name from any working directory.
This skill is for durable tools, not one-off scripts. If a short script in the current repo solves the task, write the script there instead.
Start
Name the target tool, its source, and the first real jobs it should do:
- Source: API docs, OpenAPI JSON, SDK docs, curl examples, browser app, existing internal script, article, or working shell history.
- Jobs: literal reads/writes such as
list drafts,download failed job logs,search messages,upload media,read queue schedule. - Install name: a short binary name such as
ci-logs,slack-cli,sentry-cli, orbuildkite-logs.
Prefer ~/code/clis/<tool-name> when the user wants a personal tool and has not named a repo.
Before scaffolding, check whether the proposed command already exists:
Choose the runtime
Inspect the user's machine and source material:
Then choose the least surprising toolchain:
- Default to Rust for a durable CLI: one fast binary, strong argument parsing, good JSON handling, easy install into
~/.local/bin. - Use TypeScript/Node when the official SDK, auth helper, or existing repo tooling is the reason the CLI can be better.
- Use Python when the source is data science, local file transforms, notebooks, SQLite/CSV/JSON analysis, or Python-heavy admin tooling.
State the choice in one sentence before scaffolding.
Command contract
Sketch the command surface before coding. Read references/agent-cli-patterns.md for the expected composable CLI shape.
Build toward this surface:
tool-name --helpshows every major capability.tool-name --json doctorverifies config, auth, version, endpoint reachability.tool-name init ...stores local config when env-only auth is painful.- Discovery commands find accounts, projects, workspaces, teams, channels, repos, dashboards.
- Resolve commands turn names, URLs, slugs, permalinks into stable IDs.
- Read commands fetch exact objects and list/search collections. Paginated lists support a bounded
--limit. - Write commands do one named action each: create, update, delete, upload, schedule. They accept the narrowest stable ID, support
--dry-runwhen the service allows it. --jsonreturns stable machine-readable output.- A raw escape hatch exists:
request,api, or the nearest honest name.
Do not expose only a generic request command. Give high-level verbs for the repeated jobs.
Auth and config
Support the boring paths first:
- Environment variable using the service's standard name (
GITHUB_TOKEN). - User config under
~/.<tool-name>/config.toml. --api-keyflag only for explicit one-off tests.
Never print full tokens. doctor --json should say whether a token is available and what setup step is missing.
Build workflow
- Read the source just enough to inventory resources, auth, pagination, IDs, rate limits.
- Sketch the command list. Keep names short and shell-friendly.
- Scaffold the CLI with a README.
- Implement
doctor, discovery, resolve, read commands, one narrow write path if requested, and the raw escape hatch. - Install on PATH so
tool-name ...works outside the source folder. - Smoke test from another directory or
/tmp. Runcommand -v <tool-name>,<tool-name> --help, and<tool-name> --json doctor. - Run format, typecheck/build, unit tests.
Runtime defaults
Rust
clapfor commands,reqwestfor HTTP,serde/serde_jsonfor payloads,tomlfor config,anyhowfor errors.- Add
make install-localthat builds release and installs into~/.local/bin.
TypeScript/Node
commanderorcacfor commands, nativefetchor the official SDK for API calls.package.jsonbinentry. Install viapnpm link --globalor a Makefile wrapper.
Python
argparseortyperfor commands,requests/httpx/stdlib for HTTP.pyproject.tomlconsole script or executable wrapper.make install-localtarget.
Companion skill
After the CLI works, create or update a companion skill at ~/.agents/skills/<tool-name>/SKILL.md.
Write it in the order a future session should use the CLI:
- How to verify the installed command exists.
- Which command to run first.
- How auth is configured.
- The safe read path.
- The intended draft/write path.
- The raw escape hatch.
- What not to do without explicit user approval.
- Three copy-pasteable command examples.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cli-creator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ain3sh/.agents/cli-creator)