agentsclimarketplace

Cli command surface audit

Skill ychampion/cskill-agents/agents/codex/skills/cli-command-surface-audit

Agent skills for coding CLIs, multi-agent runtimes, context engines, MCP extensions, and terminal tooling. Instead of using claude code's source code, give your agent skills to create your own!

Install
npx -y skills add ychampion/cskill-agents --skill cli-command-surface-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Audit a command surface end to end so registration, discoverability, permissions, and execution all line up before shipping.

SKILL.md

2.2 KB, 389 tokens by cl100k_base, as published. Nobody here has run it

SKILL: CLI Command Surface Audit

Domain: command-surfaces
Trigger: Use when adding, migrating, or debugging commands or slash-command skills in a coding CLI that builds its surface from multiple registries.
Source Pattern: Distilled from reviewed command-surface, help-menu, and execution-path consistency implementations.

Core Method

Audit the entire command surface, not just the handler. Confirm where the command is registered, how it is filtered, how it is described to users, and which runtime modes can actually execute it. Check help output, skill pickers, slash-command lookup, remote-safe filtering, and user-invocable flags against the real execution path. A command is only complete when the same name, description, permissions, and invocation contract stay aligned across all of those layers.

Key Rules

  • Verify both visibility and executability; a command that only exists in code is still broken.
  • Audit registration order and source precedence before debugging the handler itself.
  • Check feature gates, permission filters, and remote-safe filters separately because each can hide the command for a different reason.
  • Keep the displayed description and argument hint consistent with the actual invocation contract.
  • Exercise at least one real end-user invocation path after wiring the command in.

Example Application

If you add a new slash command to a coding CLI, trace it from registry construction to help output to command execution. Confirm it survives the feature gate, appears in the skill list with the right summary, remains visible in the modes that should expose it, and actually dispatches through the same runtime path the user will hit.

Anti-Patterns (What NOT to do)

  • Don’t stop after the handler compiles; the command may still be absent from the visible surface.
  • Don’t assume a help entry means the command is executable under the current permission or runtime mode.
  • Don’t let multiple registries describe the same command differently.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Gives 0 of the 12 instructions most audit compliance skills give in 389 tokens

Counted across 937 of the 1,487 authors here whose files we hold, read 2026-08-07

  • Fetch latest guidelines before each reviewin 43 of 937, across 3 files
  • Group findings by severityin 43 of 937
  • Check files against all fetched rulesin 42 of 937, across 2 files
  • Output findings in terse file:line formatin 41 of 937, across 3 files
  • Ask user which files to review if none specifiedin 41 of 937, across 3 files
  • Read specified files or prompt user for filesin 39 of 937, across 1 file
  • Generate the audit reportin 33 of 937, across 30 files
  • Assign a severity to every findingin 25 of 937
  • Run automated accessibility scansin 23 of 937, across 13 files
  • Output a markdown audit reportin 22 of 937
  • Map findings to WCAG criteriain 20 of 937, across 10 files
  • Confirm audit scopein 19 of 937, across 9 files

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 327,069. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.