dev-cli-consistency-audit
Skill15 starsChanged 9 days agoMITView on GitHub
Reviews a CLI tool's command interface for consistency in argument naming, flag conventions, help text, and README alignment. Use when building CLI tools or before releasing CLI updates. Triggers: "review CLI arguments", "align CLI conventions", "CLI consistency check", "make sure commands are aligned", "review command interface".
In this repository31 other files it gives its agents.
- claude-permissions-auditSkill
- claude-skill-orchestration-auditSkill
- claude-skill-prereq-auditSkill
- claude-skill-spec-auditSkill
- dev-code-qualitySkill
- dev-new-toolSkill
- dev-software-designSkill
- gh-dep-pr-triageSkill
- gh-issue-reportSkill
- gh-org-chartSkill
- gh-oss-go-bumpSkill
- gh-oss-release-prepSkill
- gh-oss-releaseSkill
- gh-review-triageSkill
- git-conventional-commitSkill
- gws-meeting-schedulerSkill
- p-activity-digestSkill
- p-blog-post-miningSkill
- p-blog-writerSkill
- p-clipboard-copySkill
- p-daily-reflectionSkill
- p-daily-reportSkill
- p-daily-standupSkill
- p-ego-searchSkill
- p-md-to-slidesSkill
- p-meeting-prepSkill
- p-news-briefingSkill
- project-namerSkill
- p-slack-triageSkill
- p-violentmonkey-userscript-syncSkill
- restaurant-searchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 7 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Run the CLI with --help or -h to get the top-level command list
- Distinctive: line 39
Check for consistency across all commands:
- Very specific: line 47
Do boolean flags follow the same pattern?
- Distinctive: line 59
Do error messages follow a consistent format?
- Distinctive: line 66
Do the documented flags match the actual implementation?
- Distinctive: line 69
Check help text quality:
- Very specific: line 72
Do examples in --help text work?
- Distinctive: line 98
Update the command implementation (flag names, defaults, etc.)
- Distinctive: line 99
Update help text and descriptions
- Distinctive: line 100
Update README to match
- Very specific: line 101
Run --help again to verify alignment
- Very specific: line 105
Positional arguments: Use for the primary subject (e.g., owner/repo).
- Very specific: line 106
Flags: Use for modifiers and options.
- Very specific: line 107
Boolean flags: Use --flag to enable (default off).
- Very specific: line 108
Output format: If supporting multiple formats, use --format=table|json|yaml consistently.
- Very specific: line 109
Destructive operations: Default to dry-run or require explicit --confirm.
- Very specific: line 110
Verbosity: Use --verbose / -v consistently.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLI Consistency Review
Systematic review of a CLI tool's command interface to ensure consistent naming, conventions, and documentation alignment.
Workflow
Step 1: Inventory Commands
- Run the CLI with
--helpor-hto get the top-level command list - For each subcommand, run
<cmd> <subcmd> --helpto get its full interface - Build an inventory table:
| Command | Positional Args | Flags | Output Formats |
|---------------|------------------|--------------------|----------------|
| pull | owner/repo | --issues, --prs | table, json |
| search | [query] | --type, --limit | fzf |
| prune | owner/repo | --confirm, --dry-run| table |Step 2: Convention Analysis
Check for consistency across all commands:
- Positional vs Flag arguments:
- Is the same concept (e.g.,
owner/repo) passed as positional in some commands and as--repoflag in others? - Recommendation: Pick one approach and apply everywhere
- Is the same concept (e.g.,
- Flag naming:
- Are similar concepts named consistently? (e.g.,
--outputvs--formatvs-o) - Do boolean flags follow the same pattern? (
--dry-runvs--confirmvs--yes) - Are shorthand flags (
-f,-o) assigned consistently?
- Are similar concepts named consistently? (e.g.,
- Pluralization:
- Subcommand names: singular vs plural (e.g.,
list filesvslist file) - Flag names:
--issuevs--issues
- Subcommand names: singular vs plural (e.g.,
- Default behaviors:
- Are defaults consistent? (e.g., if one command defaults to
--format=table, do others?) - Are destructive commands safe by default? (require
--confirmor--force)
- Are defaults consistent? (e.g., if one command defaults to
- Error messages:
- Do error messages follow a consistent format?
- Are they actionable (tell the user what to do)?
Step 3: Documentation Alignment
- Compare the README documentation with actual
--helpoutput:- Are all commands documented?
- Do the documented flags match the actual implementation?
- Are examples up to date and runnable?
- Check help text quality:
- Does each command have a one-line description?
- Are flag descriptions clear and consistent in style?
- Do examples in
--helptext work?
Step 4: Report
Present findings:
CLI Consistency Review:
Inconsistencies Found:
1. [Issue] — [Commands affected] — [Suggested fix]
2. ...
Documentation Gaps:
1. [What's missing] — [Where]
2. ...
Recommendations:
1. [Convention to adopt] — [Rationale]
2. ...Step 5: Apply Fixes
For each accepted fix:
- Update the command implementation (flag names, defaults, etc.)
- Update help text and descriptions
- Update README to match
- Run
--helpagain to verify alignment
Best Practices Reference
- Positional arguments: Use for the primary subject (e.g.,
owner/repo). Limit to 1-2 positional args. - Flags: Use for modifiers and options. Always provide
--long-form; add-sshorthand only for frequently used flags. - Boolean flags: Use
--flagto enable (default off). For "default on" behaviors, use--no-flagto disable. - Output format: If supporting multiple formats, use
--format=table|json|yamlconsistently. - Destructive operations: Default to dry-run or require explicit
--confirm. - Verbosity: Use
--verbose/-vconsistently. Consider--quiet/-qas well.
Examples
Example 1: Full CLI review
User: "review our cli arguments and make sure they are aligned"
Action:
1. Run --help for all commands
2. Build inventory table
3. Identify naming inconsistencies
4. Check README alignment
5. Present report with specific fixesExample 2: Pre-release check
User: "make sure our command implementation and comments are aligned"
Action:
1. Compare help text with actual behavior
2. Verify README examples work
3. Check for undocumented flags
4. Update docs to match implementationDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

