DX Heuristics
Practical developer-experience review, design, debugging, and risk-scan for any
surface a developer has to install, call, debug, extend, test, or maintain.
Provenance and grounding sources live in skill.json; this file is runtime
routing only.
Core principle
Make the paved path obvious and failure states actionable. If a competent
developer has to guess, hunt through source, copy from a stale example, or
debug an avoidable setup issue, that is a DX problem.
Activation
- Bare invocation (
"use dx-heuristics", "DX review", "start"): load
references/intent-router.csv, show the intent menu, wait. No file
inspection, no network calls, no writes.
- Concrete invocation with both intent and surface inferable: skip to
step 3 of the workflow.
- Concrete invocation with ambiguous scope: ask one blocker question
identifying intent or surface; do not inspect private systems first.
Workflow
- Pick intent. Load
references/intent-router.csv. Match the prompt to
one of: audit, design, debug, edge-pass. Ambiguous → ask once.
- Pick surface. Load the intent's CSV from
references/intents/<intent>.csv. Match the prompt to one or more
surfaces, or all (audit only) for multi-surface fan-out — see
references/subagent-dispatch.md. Ambiguous → ask once with the CSV
menu, adding all as an option for audit intent.
- Load grounded context. Load only the files listed in the chosen CSV
row: one playbook from
references/playbooks/<surface>.md plus the
core_refs listed. Do not load other playbooks. Skip this step when
surface = all — each spawned surface agent loads its own playbook
in step 5.
- Identify the target developer persona from
references/core/personas.md.
- Spawn sub-agents in parallel (default for
audit and
edge-pass). Single-surface: delegate one lens per agent —
first-time integrator, maintainer, adversarial debugger. Audit + all:
delegate one surface per agent; each runs the three lenses sequentially
inside itself. See "Subagent dispatch" below; fall back to sequential
execution only if the host has no delegation primitive.
- Apply the playbook. Use the playbook's heuristics tagged for this
intent. For
audit, score the surface 0–10 using
references/core/score-rubric.md; for design, name the good-shaped
pattern; for debug, rank hypotheses before naming fixes; for
edge-pass, scan all categories in the playbook. If sub-agents ran,
synthesize their findings here.
- Apply severity from
references/core/severity-rubric.md (0–4) to
every finding or risk.
- Emit output. Audit →
templates/audit-report.md (or
audit-report-multi.md for surface = all). Design →
templates/design-doc.md. Debug → templates/debug-runbook.md.
Edge-pass → templates/edge-checklist.md.
Modes
- Guided Draft (default): one optionized question at a time, 3–4
likely choices plus a freeform path.
- Autopilot: proceed from available context; state assumptions when
the task is clear and low-risk.
- Grill Me: open-ended questions, one at a time, when audience,
constraints, or trade-offs materially change the result.
Output requirements
Every output includes:
- Target developer persona.
- Playbook(s) applied.
- Intent-specific load-bearing section: findings (audit), acceptance criteria
(design), prevention (debug), re-run trigger (edge-pass).
- Verification — how to prove the change worked.
Subagent dispatch
Independent perspectives anchor on different concerns and catch issues a
single pass misses. Default for audit and edge-pass. Strongly
preferred for design when comparing tradeoffs. Optional for debug when
ranking hypotheses. Skip for tiny copy edits, deterministic command
checks, or tasks requiring secrets or live production access.
Spawn three sub-agents — one per lens: first-time integrator,
maintainer, adversarial debugger — and run them in parallel, not
sequentially in one head. Some hosts do not auto-dispatch; instruct the
main agent explicitly ("spawn three agents to do X" / "delegate this in
parallel") rather than expecting it to infer the dispatch. Load
references/subagent-dispatch.md for the per-lens persona prompts, the
dispatch template, and the synthesis step. The three lenses each produce
a finding list; the synthesizing pass deduplicates, preserves
disagreements as open questions, and emits the template-shaped output.
Fall back to running the three lenses sequentially only when the host has
no delegation primitive — the discipline of switching lens between passes
matters more than the parallelism.
Reference map
references/intent-router.csv — level-1 router (intent).
references/intents/<intent>.csv — level-2 router (surface) per intent.
references/playbooks/<surface>.md — surface-specific playbooks (one per
surface listed in the intent CSVs).
references/subagent-dispatch.md — three-lens prompts and synthesis.
references/core/{severity,score}-rubric.md — shared 0–4 and 0–10 scales.
references/core/personas.md — target developer persona list.
templates/*.md — four intent-specific output templates.
evals/activation-cases.md — activation and behavioral cases (positive
and negative).
evals/run-static-checks.sh — structural and schema gates run in CI.
evals/trigger-evals.json — queries for the description-optimization loop.
skill.json — provenance, grounding sources, version, status.
1---
2name: dx-heuristics
3description: Use when evaluating, designing, or debugging developer experience for APIs, SDKs, CLIs, docs, examples, setup, errors, local dev, build/test workflows, migrations, package contracts, contributor workflows, auth, IDE integration, plugins, performance, or telemetry. Also trigger for DX reviews, developer onboarding friction, confusing integration steps, dev-facing interface design, or PR feedback about developer usability.
4license: MIT
5metadata:
6 source: https://skillmd.com/skills/aibot88/dx-heuristics
7---
8
9# DX Heuristics
10
11Practical developer-experience review, design, debugging, and risk-scan for any
12surface a developer has to install, call, debug, extend, test, or maintain.
13Provenance and grounding sources live in `skill.json`; this file is runtime
14routing only.
15
16## Core principle
17
18**Make the paved path obvious and failure states actionable.** If a competent
19developer has to guess, hunt through source, copy from a stale example, or
20debug an avoidable setup issue, that is a DX problem.
21
22## Activation
23
24- **Bare invocation** (`"use dx-heuristics"`, `"DX review"`, `"start"`): load
25 `references/intent-router.csv`, show the intent menu, wait. No file
26 inspection, no network calls, no writes.
27- **Concrete invocation** with both intent and surface inferable: skip to
28 step 3 of the workflow.
29- **Concrete invocation with ambiguous scope**: ask one blocker question
30 identifying intent or surface; do not inspect private systems first.
31
32## Workflow
33
341. **Pick intent.** Load `references/intent-router.csv`. Match the prompt to
35 one of: `audit`, `design`, `debug`, `edge-pass`. Ambiguous → ask once.
362. **Pick surface.** Load the intent's CSV from
37 `references/intents/<intent>.csv`. Match the prompt to one or more
38 surfaces, or `all` (audit only) for multi-surface fan-out — see
39 `references/subagent-dispatch.md`. Ambiguous → ask once with the CSV
40 menu, adding `all` as an option for audit intent.
413. **Load grounded context.** Load only the files listed in the chosen CSV
42 row: one playbook from `references/playbooks/<surface>.md` plus the
43 `core_refs` listed. Do not load other playbooks. Skip this step when
44 surface = `all` — each spawned surface agent loads its own playbook
45 in step 5.
464. **Identify the target developer persona** from
47 `references/core/personas.md`.
485. **Spawn sub-agents in parallel (default for `audit` and
49 `edge-pass`).** Single-surface: delegate one lens per agent —
50 first-time integrator, maintainer, adversarial debugger. Audit + `all`:
51 delegate one surface per agent; each runs the three lenses sequentially
52 inside itself. See "Subagent dispatch" below; fall back to sequential
53 execution only if the host has no delegation primitive.
546. **Apply the playbook.** Use the playbook's heuristics tagged for this
55 intent. For `audit`, score the surface 0–10 using
56 `references/core/score-rubric.md`; for `design`, name the good-shaped
57 pattern; for `debug`, rank hypotheses before naming fixes; for
58 `edge-pass`, scan all categories in the playbook. If sub-agents ran,
59 synthesize their findings here.
607. **Apply severity** from `references/core/severity-rubric.md` (0–4) to
61 every finding or risk.
628. **Emit output.** Audit → `templates/audit-report.md` (or
63 `audit-report-multi.md` for surface = `all`). Design →
64 `templates/design-doc.md`. Debug → `templates/debug-runbook.md`.
65 Edge-pass → `templates/edge-checklist.md`.
66
67## Modes
68
69- **Guided Draft (default):** one optionized question at a time, 3–4
70 likely choices plus a freeform path.
71- **Autopilot:** proceed from available context; state assumptions when
72 the task is clear and low-risk.
73- **Grill Me:** open-ended questions, one at a time, when audience,
74 constraints, or trade-offs materially change the result.
75
76## Output requirements
77
78Every output includes:
79
80- Target developer persona.
81- Playbook(s) applied.
82- Intent-specific load-bearing section: findings (audit), acceptance criteria
83 (design), prevention (debug), re-run trigger (edge-pass).
84- Verification — how to prove the change worked.
85
86## Subagent dispatch
87
88Independent perspectives anchor on different concerns and catch issues a
89single pass misses. **Default for `audit` and `edge-pass`.** Strongly
90preferred for `design` when comparing tradeoffs. Optional for `debug` when
91ranking hypotheses. Skip for tiny copy edits, deterministic command
92checks, or tasks requiring secrets or live production access.
93
94Spawn three sub-agents — one per lens: **first-time integrator**,
95**maintainer**, **adversarial debugger** — and run them in parallel, not
96sequentially in one head. Some hosts do not auto-dispatch; instruct the
97main agent explicitly ("spawn three agents to do X" / "delegate this in
98parallel") rather than expecting it to infer the dispatch. Load
99`references/subagent-dispatch.md` for the per-lens persona prompts, the
100dispatch template, and the synthesis step. The three lenses each produce
101a finding list; the synthesizing pass deduplicates, preserves
102disagreements as open questions, and emits the template-shaped output.
103
104Fall back to running the three lenses sequentially only when the host has
105no delegation primitive — the discipline of switching lens between passes
106matters more than the parallelism.
107
108## Reference map
109
110- `references/intent-router.csv` — level-1 router (intent).
111- `references/intents/<intent>.csv` — level-2 router (surface) per intent.
112- `references/playbooks/<surface>.md` — surface-specific playbooks (one per
113 surface listed in the intent CSVs).
114- `references/subagent-dispatch.md` — three-lens prompts and synthesis.
115- `references/core/{severity,score}-rubric.md` — shared 0–4 and 0–10 scales.
116- `references/core/personas.md` — target developer persona list.
117- `templates/*.md` — four intent-specific output templates.
118- `evals/activation-cases.md` — activation and behavioral cases (positive
119 and negative).
120- `evals/run-static-checks.sh` — structural and schema gates run in CI.
121- `evals/trigger-evals.json` — queries for the description-optimization loop.
122- `skill.json` — provenance, grounding sources, version, status.