dx-audit
Audit your repository's DX/UX across CLI, API, service, and Action surfaces for a scored improvement plan.
Install
mkdir -p .claude/skills/dx-audit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11832" && unzip -o skill.zip -d .claude/skills/dx-audit && rm skill.zipInstalls to .claude/skills/dx-audit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Audit developer experience (DX/UX) of a library or tool across four surfaces — CLI, programmatic library/API, server/service, and GitHub Action — using measurable checks, clean consumer fixtures, and remediation-oriented scoring. Use when asked to audit DX, usability, onboarding, docs, examples, error handling, API ergonomics, or automation surfaces of a package you maintain.Key capabilities
- →Audit developer experience across CLI, programmatic library/API, server/service, and GitHub Action surfaces
- →Identify existing surfaces (CLI, library/API, server/service, GitHub Action)
- →Prepare test fixtures using published artifacts for accurate testing
- →Score each check using a 0/1/3/5 rubric
- →Generate a scored, evidence-backed remediation plan
- →Prioritize remediation steps based on impact and effort
How it works
This skill audits developer experience by detecting existing surfaces, preparing test fixtures, and scoring checks against a rubric. It then generates a remediation plan with evidence and impact assessments.
Inputs & outputs
When to use dx-audit
- →Auditing package onboarding
- →Reviewing API ergonomics
- →Improving CLI usability
- →Checking GitHub Action documentation
About this skill
DX Audit
Audit a repository for developer-facing DX/UX problems across up to four surfaces and produce a scored, evidence-backed remediation plan.
- CLI
- Programmatic library/API
- Server/service
- GitHub Action
Primary goals: minimize time to first success, minimize time to first output, cut cognitive load and task distance, improve machine discoverability, harden structured errors and observability — and report fixes with evidence, impact, and effort.
When to invoke
/dx-audit(no args) — auto-detect surfaces in the current repo and audit all detected ones./dx-audit cli|api|service|action [...]— audit only the named surfaces./dx-audit <repo-path>— audit a checkout elsewhere.- Any request to "audit DX", "review usability/onboarding", "check API ergonomics", "is this package easy to consume", etc.
If the user names a focus (e.g. "prioritize onboarding friction and machine-readable output"), weight findings toward it but still score every detected surface.
Audit tiers
Pick a tier up front and state it in the report — it determines which metrics are real vs n/a.
- Static tier (default for a quick pass): docs + source + contract inspection, plus any cheap live probe that needs no credentials or network mutation (
--help,--version, parse-error exit codes, stream separation,tscon examples). Do not populate metrics that require a run — TTFS, task success rate, error rate, startup time stayn/a. Don't print ann/a-riddled metrics table pretending to be a fixture run. - Fixture tier (when credentials + time allow, or the user asks): everything in static, plus clean-room runs that produce real TTFS / TTFO / success-rate / example-reliability numbers — install the published tarball into a throwaway consumer, start the server and hit it, run the action via
actor a real workflow.
Default to static unless the user says "full audit" or supplies credentials. Always name the tier in the report summary.
Credentials for the fixture tier
Many real audits need a funded test identity. Before declaring a check un-runnable, look for one:
- Check the repo for a
.env/.env.example/ test-fixture key, and prefer a testnet (e.g. Filecoin calibration, Sepolia, a sandbox tenant) so runs cost nothing and mutate nothing real. - Pass the secret explicitly rather than relying on ambient state, e.g.
source .env && filecoin-pin add file.txt --private-key "$PRIVATE_KEY_MAIN" --network calibration. - Never commit, echo, or write a private key into an artifact. Reference it by env-var name only in evidence.
- If no safe credential exists, stay in the static tier for that check and mark its run-dependent metrics
n/awith a one-line reason.
Workflow
Run these phases in order. Detail for each lives in references/ — load the relevant file when you reach that phase.
1. Inventory — classify surfaces
Detect which surfaces exist. Signals:
| Surface | Detect via |
|---|---|
| CLI | bin field in package.json, shebang entrypoints, commander/yargs/oclif/clap/cobra deps, cmd/ dirs |
| library/API | published package (package.json/pyproject.toml/Cargo.toml/go.mod), exported entry points, exports map, .d.ts |
| server/service | openapi.*, .proto, GraphQL schema, server entry (listen(, framework deps), Dockerfile, docker-compose |
| GitHub Action | action.yml/action.yaml, .github/workflows |
Mark each surface present / absent / uncertain. Derive the top 3–5 representative user tasks per present surface from README, docs, examples, and metadata. List assumptions explicitly.
2. Prepare fixtures
Test the published artifact, not the monorepo source — DX bugs hide in the gap between them.
- Library/API:
npm pack(or equivalent) → install the tarball into a fresh throwaway consumer project → run the documented quickstart there. - CLI: invoke the built/installed binary, not
src/. - Service: start via the documented command or
docker compose; or connect to a provided base URL. - Action: build a minimal fixture workflow.
- Always create negative-path fixtures too (invalid input, auth failure, transient failure/retry).
- Record exact commands, env vars, and timestamps as you go — they become the evidence trail.
See references/harness.md for ready-to-adapt command sequences.
3. Audit each detected surface
Walk the checklist for each present surface in references/checklists.md. For every check, capture: pass/fail, the evidence (command + output excerpt), and a 0/1/3/5 score. Measure the metrics defined in references/metrics-and-scoring.md (TTFS, TTFO, success rate, error rate, example reliability, discoverability, intervention rate).
Golden-path checks confirm the documented happy path works from a clean state. Negative-path checks confirm failures are understandable, structured, and safe.
4. Score
- Score each check 0/1/3/5 — those are the only legal values (see rubric in
references/metrics-and-scoring.md). There is no 2 or 4; round to the nearest of 1 (partial) or 3 (acceptable). - Use
nafor a check that is genuinely absent or explicitly out of the maintainer's declared scope — annacheck is excluded and its weight renormalized away, so scoped-out work is never penalized. A whole absent surface isnatoo. Guard againstna-washing: only marknawhen the repo states the limit (e.g. "this Action targets Calibration only", "Node-only library"). A gap the maintainer wants but hasn't built is a low score, notna. - Don't eyeball the rollup. Write the per-check scores into a
checks.jsonand run the scorer:
It computes category → surface → overall deterministically with the documented weights and thenode <skill>/scripts/score.mjs checks.json --out "$OUT_DIR/scorecard.json"narenormalization. Input shape and category keys are documented at the top ofscore.mjsand inreferences/metrics-and-scoring.md. - Attach evidence to every check scoring below 5.
5. Report
Write artifacts outside the audited repo so the audit never pollutes the target's working tree. Default OUT_DIR to a temp dir keyed by repo name, e.g. OUT_DIR="${TMPDIR:-/tmp}/dx-audit/<repo-name>"; mkdir -p it and report the path. Only write inside the repo if the user explicitly asks (and then under a path their .gitignore already covers).
Produce the artifacts below using the templates in references/report-template.md:
$OUT_DIR/report.md— human-readable: summary (incl. audit tier), top findings, scorecard, per-surface detail, quick wins, high-impact fixes.$OUT_DIR/scorecard.json— machine-readable scores + metrics + findings (produced byscripts/score.mjs; schema inreferences/metrics-and-scoring.md).$OUT_DIR/remediation-plan.md— prioritized fixes.$OUT_DIR/checks.json— the per-check scores fed to the scorer (keep as the audit's reproducible input).
Each finding below score 3 must: explain the broken user journey, cite exact evidence, propose the smallest viable fix first then a hardening follow-up, and estimate impact (high/medium/low) and effort (small/medium/large). Prefer fixes that improve multiple surfaces at once.
Remediation priority order:
- Unblock first success.
- Make failures understandable.
- Make automation safe and machine-readable.
- Reduce task distance and doc gaps.
- Improve observability and advanced scenarios.
Reference files
references/checklists.md— the prioritized P0/P1/P2 check tables for all four surfaces, with pass / excellent / failure criteria.references/metrics-and-scoring.md— metric definitions and targets, the discoverability formula, the 0/1/3/5 rubric, surface/category weights, score interpretation bands, and thescorecard.jsonschema.references/report-template.md— report skeleton plus a filled example, and per-surface test-case templates.references/harness.md— copy-adapt command harness for fixtures and a CI rollout pattern (fail on regression, not legacy debt).scripts/score.mjs— deterministic scorer: reads achecks.jsonof per-check 0/1/3/5/nascores, emitsscorecard.json(category → surface → overall) withnarenormalization. Run withnode, no dependencies.
Notes on thresholds
Numeric targets (TTFS budgets, ≥80% structured-output coverage, etc.) are recommended operational defaults synthesized from DevEx/API-usability literature and official CLI/HTTP/Action guidance — not universal law. If the repo documents a different support matrix, latency budget, or ergonomics tradeoff, honor that instead and note the deviation. For async protocols (WebSocket, MQTT, message queues), extend the server/service checklist with protocol-specific checks rather than forcing the HTTP rubric.
When not to use it
- →When a quick, informal review is sufficient
- →When only a single aspect of DX needs improvement without a full audit
- →When there are no credentials available for fixture-tier testing
Limitations
- →Default to static tier unless user asks for full audit or supplies credentials
- →Metrics requiring a run (TTFS, task success rate, error rate, startup time) stay `n/a` in static tier
- →Never commit, echo, or write a private key into an artifact
How it compares
This skill provides a structured, measurable, and evidence-backed DX audit across multiple surfaces, unlike subjective or informal usability reviews.
Compared to similar skills
dx-audit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| dx-audit (this skill) | 0 | 2mo | Review | Advanced |
| code-review-checklist | 3 | 27d | No flags | Beginner |
| openspec-verify-change | 3 | 6mo | Review | Advanced |
| superpowers-finish | 1 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
code-review-checklist
vudovn
Code review guidelines covering code quality, security, and best practices.
openspec-verify-change
studyzy
验证实现是否与变更产出物匹配。当用户想要在归档前验证实现是否完整、正确且一致时使用。
superpowers-finish
anthonylee991
Finalizes work: runs verification, summarizes changes, notes follow-ups, and ensures repo hygiene. Use at the end of an implementation or debugging session.
positron-qa-verify
posit-dev
Generates clear, actionable verification guides for QA testing of Positron bug fixes and features
categorize-revdep-issues
r-lib
Write revdep/issue.md to group packages by common error categories
pr-review
microsoft
Multi-dimensional review of a PR or feature branch in the microsoft/winappcli repo. Activate when a contributor asks to "review my PR", "review my changes", "vet my branch before pushing", "do a full review", "PR review", "review this feature", or similar. Fans out parallel sub-agents covering secur