Dx

From tinh2/skills-hub-registry · View interactive version

Dx is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Audit developer experience and generate a DX health score. Evaluates devcontainer, git hooks, linting, build caching, environment setup, and release pipeline. Use when you want to check how easy it is to onboard, improve developer workflow, score project tooling maturity, or find gaps in your dev se

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Do NOT pause for confirmation.

Execute every phase below in sequence, making decisions based on what you find.

============================================================

PHASE 0 — INPUT

============================================================

$ARGUMENTS may contain:

If no arguments are provided, run a full audit in report-only mode.

============================================================

PHASE 1 — STACK DETECTION

============================================================

Detect the project stack by scanning for manifest files:

Record the detected stack — it drives all subsequent scoring.

============================================================

PHASE 2 — AUDIT SIX DX AREAS

============================================================

Scan the project root and score each area on a 0-10 scale:

2.1 — Dev Container (0-10)

Check for:

Score 0 if .devcontainer/ directory does not exist.

2.2 — Git Hooks (0-10)

Check for:

Score 0 if no hook tooling is detected.

2.3 — Linting & Formatting (0-10)

Check for:

2.4 — Build Tooling & Caching (0-10)

Check for:

Score N/A if project is not a monorepo and has no build step.

2.5 — Environment Setup (0-10)

Check for:

2.6 — Release Pipeline (0-10)

Check for:

============================================================

PHASE 3 — CALCULATE DX HEALTH SCORE

============================================================

Compute the overall DX health score:

Classify each area:

============================================================

PHASE 4 — GENERATE RECOMMENDATIONS

============================================================

For each area scored below 8, generate specific recommendations:

Sort recommendations by priority (critical first), then by effort (quick first).

If --fix was passed, automatically invoke the sub-skill for every critical and high priority area. Run them in sequence since some depend on others (e.g., /linter before /git-hooks).

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After completing, validate the output was produced correctly:

  1. Verify generated files exist and are syntactically valid.
  2. Run any available validation (lint, type-check, dry-run).
  3. If the skill produces configuration, verify it parses without errors.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

Print the DX Health Report:

## DX Health Report

### Project: {name}
### Stack: {language} / {framework} / {package-manager}
### Overall: {score}/10 ({grade})

| Area             | Score | Status  |
|------------------|-------|---------|
| Dev Container    | X/10  | {status}|
| Git Hooks        | X/10  | {status}|
| Lint & Format    | X/10  | {status}|
| Build & Cache    | X/10  | {status}|
| Environment      | X/10  | {status}|
| Release Pipeline | X/10  | {status}|

### Recommendations (by priority)
1. {area} — {what's missing} — run `/sub-skill` ({effort})
2. ...

### Quick Wins (under 5 minutes)
- {actionable items that can be done immediately}

============================================================

NEXT STEPS

============================================================

  1. Run individual sub-skills for areas that need improvement:
  1. Re-run /dx after fixes to verify score improvement
  2. Run /dx --fix to auto-apply all critical and high priority fixes

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /dx — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

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.