Skip to content
Skill

CLI build

Guides an agent through building CLIs it can run safely and a human can supervise

CLI build is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
115
Last commit
License
MIT
Listing updated

Similar skills

About CLI build

This skill walks an agent through designing and building a command-line tool whose main user is another AI agent and whose supervisor is a person. It starts by deciding whether the CLI's contract is being discovered from a service the author does not control or defined by the author's own data model, and it sets the distribution target (source, npm, or native binary) before any code is written.

The workflow covers a noun-verb command surface, a written JSON output contract per command, machine-readable output by default when stdout is not a terminal, and a separate human-readable view. Where the domain carries real consequences such as money, irreversible writes or third-party side effects, it adds a risk-graded trust ladder, dry-run modes, and audit records written before network calls. It also includes checks that safety features named in help text are actually wired, and a verification pass that runs the installed binary and reads its output.

The skill is written as a set of phases with reference files for trust ladders, JSON contracts, testing and async job handling. It references an external TypeScript block library and does not include scripts of its own. Using it means working in a codebase where you can create and run a CLI, and it expects the user to say whether the project is an MVP or a fuller polished tool.

When your agent uses it

Design and build a CLI that an AI agent can operate safely and a human can supervise. Use when the user wants to build a CLI, wrap an API in a command-line tool, build a CRUD or local-first tool over a database or filesystem the user already owns, add --json or --dry-run to an existing CLI, design a trust ladder or approval gate for risky commands, wrap an async API so agents do not write their own poll loop, or decide how to distribute a CLI (npm, native binary, source). Runs on its own when the contract is yours to define; follows a surface-recon report when the target is someone else's service.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 14 files (108 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the candidates plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add crafter-station/skills
/plugin install candidates@crafter-station-skills

Or copy only this skill to ~/.claude/skills/cli-build:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cli-build &&
cp -R "$tmp/skills/cli-build" ~/.claude/skills/cli-build &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/cli-build inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/cli-build to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cli-build &&
cp -R "$tmp/skills/cli-build" ~/.agents/skills/cli-build &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/cli-build inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/cli-build to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cli-build &&
cp -R "$tmp/skills/cli-build" ~/.cursor/skills/cli-build &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/cli-build inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/crafter-station/skills.git --path skills/cli-build

Or copy the folder to ~/.gemini/skills/cli-build yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/cli-build:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cli-build &&
cp -R "$tmp/skills/cli-build" ~/.copilot/skills/cli-build &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/cli-build inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/crafter-station/skills.git

Then copy skills/skills/cli-build into your agent's skills folder as cli-build. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Contract origin check
Decides whether the CLI wraps an external system needing reconnaissance or a model the author defines.
Agent-first output defaults
Covers JSON output, non-blocking prompts, structured errors, schema introspection and clean stdout.
Risk-graded trust ladder
Classifies commands by damage, with dry-run, approval gates and pre-call audit logging where it matters.
Distribution target selection
Chooses between running from source, publishing to npm or compiling a native binary.
Async job handling
Adds a wait option backed by a job record so agents do not write their own polling loops.
Wiring and verification checks
Requires that each named safety feature has a call site and that the installed binary is tested by name.

Good for

  • Build a CLI that wraps a third-party API so an agent can call it
  • Add --json and --dry-run flags to an existing command-line tool
  • Create a local CRUD tool over a database the user already owns
  • Design an approval gate for risky commands an agent might run
  • Package a CLI for npm or as a standalone binary

CLI build FAQ

When should CLI build be used?

It triggers when a user wants to build a CLI, wrap an API in one, add --json or --dry-run to an existing CLI, design an approval gate, wrap an async API, or decide how to distribute a CLI.

Does the skill need reconnaissance first?

Only when the CLI wraps a system the author does not control. For a CLI whose contract the author defines, the skill says to write the contract instead.

Does the skill include scripts?

No. The folder contains a SKILL.md with reference files and no scripts.

Are there required tools or allowed tools?

The frontmatter does not set allowed tools. The skill recommends an external TypeScript block library called cligentic for CLI infrastructure but does not require it.

How do I install CLI build in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cli-build to use it in all your projects, or to .claude/skills/cli-build in one project. Or install the candidates plugin, which includes it: /plugin marketplace add crafter-station/skills, then /plugin install candidates@crafter-station-skills.

Does CLI build run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use CLI build?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to CLI build?

The closest alternatives to CLI build are CLI creator, CLI audit, Agent CLI, Domain CLI and Principle build the lever.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from crafter-station/skills

  1. Audits an existing CLI for agent operability and human readability, reporting

    • Open source
    • 115 GitHub stars
    • Developer tools
  2. Generates OG social preview images and favicon sets from your brand colors

    • Open source
    • 115 GitHub stars
    • Design and media
  3. Builds hierarchical AGENTS.md context files so agents can navigate a codebase

    • Open source
    • 115 GitHub stars
    • Developer tools
  4. Guides a full Obsidian community plugin release from version bump to published tag

    • Open source
    • 115 GitHub stars
    • Developer tools
  5. Generates a draft Claude skill from documentation URLs via Firecrawl (deprecated)

    • Open source
    • 115 GitHub stars
    • Developer tools
  6. Read-only scan of a developer machine for known npm and PyPI supply-chain malware

    • Open source
    • 115 GitHub stars
    • Security