/quality:cli-agent-friendly-auditfrom quality
Audits a CLI tool against Zbigniew Sobiecki's agent-friendliness checklist, covering help output, command shape, auth, structured output, and pagination. Produces a pass/fail report with top fixes ranked by token/latency impact.
Ships in quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Walk through a checklist of properties that make a CLI smooth for AI agents to use. Based on Zbigniew Sobiecki's "Building Agent-Friendly CLIs" (https://zbigniew.me/writing/building-agent-friendly-clis/).
<cli> --help, <cli> <subcommand> --help, try --json, try a deliberately wrong flag, try a typo, inspect exit codes with echo $?. Don't run anything destructive.Keep the audit terse. One line per item is usually enough. Don't lecture — the user knows what good looks like.
--help and -h both work at every level (root, subcommand, sub-subcommand).--project vs --projectId vs --project-name is a fail).search, get <id>, whoami, recent, or equivalent.whoami (or equivalent) shows which credential is actually in use.--json flag available on every read/list/mutation command.--help or skills).<CLI>_OUTPUT_MODE=json) so agents don't have to remember the flag.--json id,title,status) — bonus.meta.nextCursor or meta.truncated).--all flag drains every page.--json output on stdout is pure JSON — no "Loading..." line, no spinner, no warnings prefixed.NO_COLOR=1 and CI=true.--no-color flag exists for forced override.T-7K9-C) layered over UUIDs.--file <path> or @path prefix) — no shell-quoting hell for multi-line content.0 = success, non-zero = failure. Always.128 + n convention.--help.CI=true, no terminal width).--yes, --force, --non-interactive) — never block on a prompt.Render the audit as a markdown table with three columns: Item, Status, Note. Group by section. At the end add:
## Top fixes (ranked by agent-impact)
1. ...
2. ...
3. ...
Bias the ranking toward fixes that compound across thousands of invocations — stream hygiene, JSON purity, exit code taxonomy, and mutations returning enough info usually beat cosmetic polish.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zcaceres/skills --plugin quality7 skills in this plugin
/chaos-monkeyTrace code paths to find bugs, logic errors, race conditions. Static analysis first, then runtime browser testing for frontend. Triggers on "quality-chaos-monkey", "chaos monkey", "probe for edge cases"./dead-code-analyzerAnalyze a codebase for dead code, duplicates, and circular dependencies using knip, jscpd, and madge, then validate findings to filter false positives. Use when user says "quality-dead-code-analyzer", "analyze code", "find dead code", "code cleanup", "find duplicates", "unused exports", or "static analysis"./docs-updateAudit project documentation against the current state of the codebase and produce a revision plan. Reads README and all docs, launches parallel Explore agents to verify claims, diffs documentation vs reality, and applies approved fixes. Use when user says "quality-docs-update", "update docs", "docs update", "check documentation", "audit docs", "fix readme", "documentation is outdated", or "sync docs with code"./perf-reviewAnalyze a codebase for performance bottlenecks in full-stack web applications. Use when user says "quality-perf-review", "perf review", "performance review", "find bottlenecks", "optimize performance", "slow code", "performance audit", or "why is my app slow". Interactive workflow that discusses each finding before moving on./project-healthAssess the current project's repo and work-tracker status, then rate overall project health from 0-10. Invoke via /quality:project-health./worktree-setupBootstrap and maintain Claude Code worktree auto-setup for a repo. Interviews the codebase for what a fresh `claude --worktree` actually needs — gitignored files, install/build steps, per-worktree ports, shared caches — then generates, wires, and smoke-tests the right `.worktreeinclude` + hook. Re-run to update the config when the repo changes. User-triggered via `/quality:worktree-setup [setup|update|check]`.Other plugins' skills for the same job