# CLI audit

> CLI audit is an open-source agent skill for developer tools. Audits an existing CLI for agent operability and human readability, reporting. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/crafter-station/skills/tree/main/skills/cli-audit
- **Repository:** https://github.com/crafter-station/skills
- **GitHub stars:** 115
- **License:** MIT
- **Skill name:** cli-audit
- **Collection:** https://github.com/crafter-station/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/crafter-station/skills/tree/HEAD/skills/cli-audit)
- [No network calls found in its scripts](https://github.com/crafter-station/skills/tree/HEAD/skills/cli-audit)
- [License: MIT](https://github.com/crafter-station/skills/tree/HEAD/skills/cli-audit)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/cli-audit` to use it in all your projects:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
gemini skills install https://github.com/crafter-station/skills.git --path skills/cli-audit
```

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

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

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

## 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.

## Alternatives

- [CLI build](https://ai-powered.com/skills/cli-build): CLI build is an open-source agent skill for developer tools.
- [Validate skills](https://ai-powered.com/skills/validate-skills): Validate skills is an open-source agent skill for developer tools.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Automation audit ops](https://ai-powered.com/skills/automation-audit-ops): Automation audit ops is an open-source agent skill for developer tools.
- [Audit](https://ai-powered.com/skills/audit-nagisanzenin): Audit is an open-source agent skill for developer tools.
- [Entroly evidence operations](https://ai-powered.com/skills/entroly-evidence-operations): Entroly evidence operations is an open-source agent skill for developer tools.
- [Principle prove it works](https://ai-powered.com/skills/principle-prove-it-works): Principle prove it works is an open-source agent skill for developer tools.
- [Skill distribution audit](https://ai-powered.com/skills/skill-distribution-audit): Skill distribution audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/cli-audit
