What problem does it solve? CLI tools often grow inconsistent command hierarchies, mismatched verb sets, unclear exit codes, and missing safety models, making them hard to predict and risky to automate. This Skill inspects a CLI tool's actual command structure and refactors the source code to match established CLI design standards. ## Core Features & Use Cases - Language-aware refactoring: Detects the implementation language and framework (Rust clap, Python Click/Typer/argparse, Go Cobra, Node Commander) from manifests or help-text fingerprints before editing any code. - Checklist-driven audit: Compares the tool against eight reference categories covering command hierarchy, I/O contracts, exit codes, safety models, session/state management, resource CRUD, config, and shell completion. - Documentation sync: Updates README, shell completion scripts, and CHANGELOG so docs match the refactored structure, and renders --help output in a standard English format. - Use Case: Point it at a Go CLI project where one resource group uses ls/show/create/delete and another uses list/get/add/remove; it unifies the verb set, fixes exit codes, adds a dry-run flag, and regenerates help text. ## Quick Start Run /refactor-cli with the path to your CLI tool project to audit and refactor its command structure.