Cli command surface audit

From ychampion/cskill-agents · View interactive version

Cli command surface audit is an AI agent skill from the GitHub repository ychampion/cskill-agents. Audit a command surface end to end so registration, discoverability, permissions, and execution all line up before shipping.

How to use this skill

Skill file

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

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)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.