
CLI audit
Audits an existing CLI for agent operability and human readability, reporting
CLI audit 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
- shell
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 115
- Last commit
- License
- MIT
- Listing updated
Similar skills
About CLI audit
This skill reviews a command-line tool that already exists and checks it against the rules of a companion build skill, cli-build. It looks at how easily an AI agent can operate the tool and how readable its output is for a person. The audit runs in layers: a deterministic script that reports pass, fail, not-applicable or skip for each check, a semi-automated pass where evidence is produced for a reader to judge, and a judgment pass where the real terminal output is read and quoted.
Before running any checks, the skill resolves a set of conditional gates, such as whether commands have consequences, whether there is a human-facing surface, and how the tool is distributed. Checks that do not apply are switched off and the reason is recorded, so absences are not reported as defects. The skill also measures how many leaf commands exist in the CLI's help tree and how many were actually exercised, and it reports that ratio.
The skill expects a repository for the CLI and runs bash scripts against it. For runtime checks the tool should be linked to its installed command name, otherwise those checks are skipped. It produces a written report of findings and deliberately does not patch code or assign a score.
When your agent uses it
Audit an existing CLI against cli-build: how well an agent can operate it and how well a human can read it. Use when the user wants to audit a CLI, check whether a tool is agent-first, find out what a published CLI got wrong, grade a CLI's human output, verify that named safety features are actually wired, or prepare a patch list before improving an existing command-line tool. Reports findings with evidence; it does not patch.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 4 files (59 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
Copy the skill folder to ~/.claude/skills/cli-audit to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cli-audit &&
cp -R "$tmp/skills/cli-audit" ~/.claude/skills/cli-audit &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/cli-audit inside it instead.
Copy the skill folder to ~/.agents/skills/cli-audit 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-audit &&
cp -R "$tmp/skills/cli-audit" ~/.agents/skills/cli-audit &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/cli-audit inside it instead.
Copy the skill folder to ~/.cursor/skills/cli-audit 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-audit &&
cp -R "$tmp/skills/cli-audit" ~/.cursor/skills/cli-audit &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/cli-audit inside it instead.
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-auditOr copy the folder to ~/.gemini/skills/cli-audit yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/cli-audit:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crafter-station/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cli-audit &&
cp -R "$tmp/skills/cli-audit" ~/.copilot/skills/cli-audit &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/cli-audit inside it instead.
Get the folder:
git clone --depth 1 https://github.com/crafter-station/skills.gitThen copy skills/skills/cli-audit into your agent's skills folder as cli-audit. Agents that support SKILL.md read one folder per skill.
What it does
- Deterministic check script
- A bash script runs static and runtime checks and reports pass, fail, not-applicable or skip for each one.
- Conditional gate resolution
- Six up-front questions decide which check groups apply to the CLI being audited.
- Command coverage measurement
- Walks the CLI's help tree to count leaf commands and the share actually exercised.
- Semi-automated evidence review
- Covers noun-verb consistency, dry-run behaviour, escaping of third-party text and tests on bad input.
- Human output judgment
- Reads real terminal output against questions about metrics, columns, defaults and color use.
- Evidence-backed report
- Writes findings grouped by fix cost, each with its evidence and the rule it violates.
Good for
- Audit a published CLI to see whether an agent can operate it reliably
- Check whether a tool's human-readable output is clear and correctly framed
- Verify that named safety features such as dry-run or audit logging are actually wired in
- Prepare a patch list of findings before improving an existing command-line tool
- Compare a CLI against an earlier audit report to track changes
CLI audit FAQ
Does CLI audit change or patch the CLI?
No. It reports findings with evidence and explicitly does not patch. Fixes are meant to happen in a separate cycle against the report.
Why does CLI audit not produce a score?
The skill states that no distribution has been measured to calibrate weights, so a combined number would be misleading. A clean deterministic run is not treated as a clean CLI.
What does the audit need to run the runtime checks?
The CLI must be linked to its installed command name with bun link or npm link and passed via the bin option. Without it, runtime checks report SKIP.
Which checks are skipped for a CLI that has no consequential commands?
The trust-ladder group, including audit log, dry-run, killswitch, intent tokens and consent gates, is marked not applicable if no command carries consequence, and the decision should be recorded.
How do I install CLI audit in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/cli-audit to use it in all your projects, or to .claude/skills/cli-audit in one project.
Does CLI audit run scripts?
Yes. It runs shell scripts. No network calls were found in its 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 audit?
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 audit?
The closest alternatives to CLI audit are CLI build, Validate skills, Agent architecture audit, Automation audit ops and Audit.
Where this comes from
- Description: from the skill's own SKILL.md.
More from crafter-station/skills

Guides an agent through building CLIs it can run safely and a human can supervise
- Open source
- 115 GitHub stars
- Developer tools

Generates OG social preview images and favicon sets from your brand colors
- Open source
- 115 GitHub stars
- Design and media

Builds hierarchical AGENTS.md context files so agents can navigate a codebase
- Open source
- 115 GitHub stars
- Developer tools

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

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

Read-only scan of a developer machine for known npm and PyPI supply-chain malware
- Open source
- 115 GitHub stars
- Security



