/fabrika:skill-doctorfrom fabrika
Grades local agent setup by scoring recent conversations against efficiency and code-quality rubrics, then drafts skill edits and renders an HTML report. Human-typed only; model cannot invoke.
Ships in fabrika. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Grade an agent setup from its real conversation history: collect recent local agent sessions, score each against two rubrics, measure how much the installed skills were actually used, aggregate to one grade, and render one self-contained HTML report with proposed skill edits.
Vendored from Warp Skill Doctor
(MIT). Which files are upstream's and which are fabrika's — and the re-copy, never edit rule —
lives in PROVENANCE.md.
Inert on arrival, by design. Two capabilities this skill needs are not built yet, and until they land a run under the opencode harness produces a report over zero sessions:
--harness claude sees only what a
Claude-Code-shaped home contains..agents/skills, .claude/skills, .codex/skills; fabrika's
corpus lives at claude-plugins/fabrika/skills, so every invocation below passes
--skills-dir explicitly until that root is discovered by default.Everything this skill produces stays under one literal directory, which is gitignored. Create
it, then run the upstream collector with its flags — the flag table is contract section
Collector flags
(fabrika wire doc-section --heading "Collector flags" < claude-plugins/fabrika/skills/skill-doctor/contract.md):
mkdir -p claude-plugins/fabrika/skills/skill-doctor/results/claude-home
python claude-plugins/fabrika/skills/skill-doctor/scripts/collect_sessions.py --harness claude --claude-home claude-plugins/fabrika/skills/skill-doctor/results/claude-home --repo . --skills-dir claude-plugins/fabrika/skills --out claude-plugins/fabrika/skills/skill-doctor/results/run --days 45 --max-sessions 20
Done when the collector prints sessions sampled and
claude-plugins/fabrika/skills/skill-doctor/results/run/inventory.json exists. A run that
samples zero sessions under an unsupported harness is the expected inert state above, not a
failure — say so and stop.
The judgment is the whole step, and the rubrics are judgment-shaped reads: read
scorers/efficiency.md and
scorers/code-quality.md whole, then read each condensed transcript
under claude-plugins/fabrika/skills/skill-doctor/results/run/transcripts/ and give it one
efficiency label and one code-quality verdict, each with the reason the rubric asks for. The
labels, their scores, the aggregation formulas, and the failed-conversation rule are contract
section Scoring contract
(fabrika wire doc-section --heading "Scoring contract" < claude-plugins/fabrika/skills/skill-doctor/contract.md).
Done when every sampled session carries two labels with reasons, and the aggregate efficiency, code quality, skill coverage, and overall numbers are computed.
Write claude-plugins/fabrika/skills/skill-doctor/results/run/report.json in the schema of
contract section Report artifacts
(fabrika wire doc-section --heading "Report artifacts" < claude-plugins/fabrika/skills/skill-doctor/contract.md),
then render:
python claude-plugins/fabrika/skills/skill-doctor/scripts/render_report.py claude-plugins/fabrika/skills/skill-doctor/results/run/report.json
Done when the renderer prints the report.html path and the grade it contains.
Everything under claude-plugins/fabrika/skills/skill-doctor/results/ is gitignored and stays
local: transcripts, inventories, report.json, and report.html all embed transcript-derived
content and machine-local paths. Never commit, attach, or paste them; the report's finding
text is the only thing that may be quoted, redacted, in a decision or issue that needs it. The
rendered report currently carries upstream's branding and share affordances — it is
internal-only until it is re-branded and its share posture is ruled.
REPORTED — the renderer exited 0 and the grade is on screen. The report stays internal
per the boundary above.NO-SESSIONS — the collector sampled zero sessions. Expected while the harness this setup
runs under has no collector; a correct stopping point, not a failure. Name the harness you
ran and the window you gave it.COLLECTOR-REFUSED — the collector exited non-zero naming its inputs. Fix the named input
and run it again; a non-zero exit is unknown, never "nothing collected".LICENSE (opens in a new tab)PROVENANCE.md (opens in a new tab)assets/warp-pixel-icon.svg (opens in a new tab)contract.md (opens in a new tab)references/skill-improvements.md (opens in a new tab)references/supported-harnesses.md (opens in a new tab)scorers/code-quality.md (opens in a new tab)scorers/efficiency.md (opens in a new tab)scripts/collect_sessions.py (opens in a new tab)scripts/render_report.py (opens in a new tab)scripts/test_collect_sessions.py (opens in a new tab)scripts/test_fabrika_conformance.py (opens in a new tab)scripts/test_render_report.py (opens in a new tab)scripts/warp_decoder.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kamp-us/phoenix --plugin fabrika29 skills in this plugin
/adrRecord one architecture decision as an `NNNN-slug.md` file in the repo's decision corpus. Trigger on "/adr", "save this as an ADR", "record this decision", "ADR for X" — and reach for it whenever a technical preference, convention, or invariant gets settled in conversation that future agents must respect, even when nobody asks for an ADR./architecture-auditAudit a folder for architectural friction and hand the findings to grilling for human selection. Use when choosing where to deepen a codebase; use review for PR judgment. Audited code stays read-only./buildExecute one triaged, agent-ready issue end to end and land it as a PR — or, given a PR number, enter repair mode on that PR's branch. Trigger on "work the next issue", "pick up an issue", "implement issue #N", "build #N", "repair PR #N", "fix the FAIL on #N", and whenever triaged backlog work needs turning into a pull request. Rendered-visual construction is `build-ui`'s lane, not this skill's — unless a shell preloads both, and then the diff's class picks the law per file./build-uiExecute one triaged issue whose deliverable is a rendered visual surface, and land it as a PR — or, given a PR number, enter repair mode. Trigger on "build the UI for #N", "implement the page/component/screen", "make the visual change in #N", "repair the design FAIL on PR #N", and whenever backlog work's deliverable is something a user will see rendered. Text construction — code-as-text, prose, plans — is `build`'s lane, unless a shell preloads both, and then the diff's class picks the law per file; judging a rendered surface is `review-ui`'s./campaignDeclare a campaign, flip one campaign's lifecycle state, or read the ROADMAP `## Campaigns` table. Trigger on "/campaign", "declare a campaign", "start that campaign" (and any other flip between active, paused and done), "which campaigns are active". Homing issues onto a milestone is `triage`'s; judging the roadmap against its milestones is `guard roadmap-guard check`'s./check-epic-planGate one planned epic's task ledger and, only on a clean floor, flip its planned children and the epic itself to pickable. Trigger on "gate epic #N", "check the plan for epic #N", "run the plan gate", "is epic #N's ledger clean", "make epic #N's children pickable", and whenever a planned epic's ledger needs clearing before its children can be built. It does not plan (`plan-epic`) and never reviews a pull request (`review`).Other plugins' skills for the same job