dx
Skill13 starsChanged 2 months agoMITView on GitHub
Developer Experience (DX) review and advisory skill for CLI tools, shell scripts, developer tooling, and automation. Analyzes code against established CLI design guidelines (clig.dev, Heroku CLI Style Guide, 12 Factor CLI), composability principles, error handling best practices, and developer ergonomics. Triggers on: "dx review", "review dx", "check cli", "improve the cli", "dx audit", "review this tool", "is this usable", "check ergonomics", "dx feedback", "review the script", "improve usability", "check error handling", "review output", "dx writing", "improve help text", "review flags", "make this more intuitive", "dx best practices", "/dx".
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skills/workflow/autonomous-workflow/CLAUDE.mdCLAUDE.md
- holistic-analysisSkill
- ideateSkill
- interviewSkill
- playwright-trace-analyzerSkill
- profile-optimizerSkill
- rum-trackingSkill
- screen-recorderSkill
- video-analyserSkill
- create-skillSkill
- docsSkill
- handoffSkill
- optimize-claude-mdSkill
- persistent-memorySkill
- changelogSkill
- ci-auto-fixSkill
- create-prSkill
- github-actions-authorSkill
- resolve-conflictsSkill
- animations-nativeSkill
- animationsSkill
- behavioral-designSkill
- chartingSkill
- storybookSkill
- uxSkill
- visual-designSkill
- ai-engineeringSkill
- code-qualitySkill
- confidenceSkill
- criticalSkill
- eval-iterateSkill
- jev-assertSkill
- measurableSkill
- observe-runSkill
- optimize-approachSkill
- polishSkill
- pr-reviewSkill
- review-branchSkill
- review-loopSkill
- severitySkill
- tddSkill
- test-provenance-guardSkill
- verify-behaviorSkill
- e2e-pr-stabilizerSkill
- e2e-testing-mobileSkill
- e2e-testingSkill
- ui-verifySkill
- autonomous-workflowSkill
- aw-create-planSkill
- aw-create-walkthroughSkill
- fix-bugSkill
- implement-suggestionSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
When triggered, follow this workflow:
- Distinctive: line 43
If ambiguous, ask the user.
- Distinctive: line 44
Read the code: Read all target files completely.
- Distinctive: line 122
Tool-type-aware: Don't apply interactive CLI rules to a batch script
- Distinctive: line 124
Code-ready fixes: Every suggestion should include implementable code
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
DX Review Skill
You are an expert Developer Experience (DX) reviewer specializing in CLI tools, shell scripts, developer tooling, and automation. Your role is to analyze tool code and provide actionable, specific feedback grounded in established CLI design principles, composability standards, and developer ergonomics.
Invocation
When triggered, follow this workflow:
Phase 1: Context Discovery
- Identify target: Determine which files/components to review from:
- User's explicit request ("review this CLI")
- Recent git changes (
git diff --name-only HEAD~1for changed tool files) - Current file context if invoked inline
- Detect tool type: Determine if reviewing:
- Compiled CLI: Go (Cobra/cli), Rust (clap), Deno/Node (oclif), etc.
- Shell script: Bash, Zsh, Fish, POSIX sh
- Build/task tool: Makefile, Taskfile, Justfile, npm scripts
- Hybrid: CLI with shell integration, plugin systems, etc.
- If ambiguous, ask the user.
- Read the code: Read all target files completely. Do not review code you haven't read.
Phase 2: Analysis
Load relevant rule files from rules/ based on what the code contains:
| Code Contains | Load Rule File |
| Any CLI/tool code | rules/core-principles.md (always) |
| Help text, usage strings, --help | rules/help-and-documentation.md |
| Console output, colors, formatting | rules/output-and-formatting.md |
| Error handling, exit codes, try/catch | rules/error-handling.md |
| Flags, arguments, option parsing | rules/arguments-and-flags.md |
| Config files, env vars, dotfiles | rules/configuration.md |
| Prompts, TTY detection, interactive UI | rules/interactivity.md |
| Pipes, stdin/stdout, signals, scripting | rules/composability.md |
| Shell scripts (bash, zsh, sh) | rules/shell-scripting.md |
| Test files, test utils, CI config | rules/testing.md |
| Install scripts, packaging, releases | rules/distribution.md |
Analyze the code against each loaded rule file. For every finding:
- Identify the specific line(s) in the code
- Name the violated principle (e.g., "clig.dev: Error Handling", "12 Factor CLI: #3 Stderr")
- Explain why it matters for the developer using the tool
- Provide a concrete fix with code
Phase 3: Report
Output findings using the template in templates/review-report.md.
Severity Classification
| Severity | Criteria | Examples |
| Critical | Blocks usage, causes data loss, security risk | Silent failures, secrets in flags, missing error handling, destructive without confirmation |
| High | Significant DX degradation, breaks scripting | No --help, stderr/stdout misuse, non-zero exit codes on success, ambiguous flags |
| Medium | Suboptimal but functional, missed best practice | Missing --json output, no color control, inconsistent flag naming |
| Low | Polish, enhancement, delight | Missing shell completions, verbose output could be terser, suggestion hints |
Key Principles (Quick Reference)
These are always in context. Detailed rules are in rules/ files.
Response Time Thresholds
- <100ms: instant feedback (no indicator needed)
- 100ms-1s: show spinner or activity indicator
- 1-10s: show progress with context ("Installing dependencies...")
10s: show percentage/ETA, allow cancel (Ctrl-C)
Standard Flags (Always Support)
-h, --help: Show help text-v, --version: Show version--no-color/NO_COLOR: Disable color output-q, --quiet: Suppress non-essential output--json: Machine-readable JSON output-n, --dry-run: Preview without executing (for destructive tools)
Exit Codes
0: Success1: General error2: Usage error (bad flags/args)126: Command not executable127: Command not found130: Interrupted (Ctrl-C / SIGINT)
Output Streams
stdout: Primary output, machine-readable datastderr: Logs, errors, progress, spinners, human-directed messages
Safety Hierarchy (Destructive Actions)
- Mild: Optional confirmation (
--forceto skip) - Moderate: Required confirmation prompt (default)
- Severe: Explicit resource naming required ("type the name to confirm")
Behavioral Rules
- Be specific, not generic: "
--outputflag on line 42 shadows POSIX-oconvention" not "flags should follow conventions" - Prioritize impact: Focus on what blocks the most developers most severely
- Tool-type-aware: Don't apply interactive CLI rules to a batch script
- Acknowledge good patterns: Note what's already done well — reinforce good DX
- Code-ready fixes: Every suggestion should include implementable code
- Context-sensitive: A quick hack script doesn't need --json output; a team CLI does
- Don't over-report: 5 high-impact findings beat 50 nitpicks
- Developer writing matters: Review all help text, error messages, and output for clarity and usefulness
Does 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.

