/harness-claude:harness-rehearsefrom harness-claude
Rehearses an agent against deliberately-broken fixtures to score recovery. Useful for training personas and regression-testing harness gates before production changes.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:harness-rehearse still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Rehearse an agent against a deliberately-broken fixture and score how well it recovers. Free-soloing a change in production is how a small planted defect becomes an incident. A fixture lets an agent practise the crux move — notice the defect, reach for the right gate, fix it without breaking anything else — on a rope first. The same fixtures double as a regression test for the harness's own gates: if
check-securitystops catching a leaked secret, the leaked-secret fixture's score drops.
outcome-eval / code-review for real work).templates/rehearsal-fixtures/, not a skill invocation.Each fixture under templates/rehearsal-fixtures/<id>/ plants exactly one failure mode that a real harness check catches, and carries a rehearsal.json manifest (the ground truth: what was planted, where, the check that should catch it, the expected fix, and the rubric).
| Fixture | Failure mode | Exercised check |
|---|---|---|
hardcoded-secret | leaked-secret | harness check-security |
layer-violation | layer-violation | harness check-arch |
dependency-cycle | dependency-cycle | harness check-arch |
broken-doc-link | broken-doc-link | harness check-docs |
Run harness rehearse list to see the available fixtures and their planted failure modes. Pick one, then read its full manifest and rubric with harness rehearse show <fixture-id>. Do NOT read the manifest's plantedFile / plantedDescription into the recovering agent's context if you want an honest rehearsal — those fields are the answer key.
Copy the fixture directory into an isolated scratch workspace (a temp dir) so the repo under test is never modified. The recovering agent works only inside the scratch copy.
In the scratch copy, the agent must: (a) detect that a defect was planted and name the failure mode, (b) reach for the fixture's expected harness check to confirm it, and (c) repair the defect per the manifest's expectedFix — without breaking sibling files. Keep the change minimal and scoped to the planted defect.
Write a JSON recovery record describing the outcome. It is deliberately structured (not free text) so scoring is deterministic:
{
"fixtureId": "hardcoded-secret",
"detected": true,
"identifiedFailureMode": "leaked-secret",
"checkCited": "harness check-security",
"fixed": true,
"collateralDamage": false
}
detected / identifiedFailureMode — did the agent notice, and what did it call the failure? A confident wrong diagnosis does not earn detection credit.checkCited — the harness check the agent actually ran or cited.fixed — is the planted defect genuinely resolved (verified by re-running the check)?collateralDamage — did the fix break anything unrelated?Populate these from what actually happened in Phase 3 — do not assume success. Verify fixed by re-running the expected check against the scratch copy.
Run harness rehearse score --fixture <id> --recovery <record.json>. Report the 0-100 score, the tier, and the per-dimension breakdown. The score is computed in TypeScript from the manifest + record — it is not a judgment call.
harness rehearse list — enumerate fixtures (--json for machine output).harness rehearse show <id> — print one fixture's manifest + rubric.harness rehearse score --fixture <id> --recovery <path> — deterministic scoring; exits non-zero on a fail tier (soften with --report-only).scoreRecovery, loadCatalog, findFixture, RehearsalManifest, RecoveryRecord, RehearsalScore are exported from @harness-engineering/core. Scoring is pure (no IO, no LLM), so a known-good and a known-bad recovery map to stable, testable scores.Four independently-credited dimensions (weights sum to 100):
| Dimension | Weight | Credited when |
|---|---|---|
detected | 30 | The planted failure mode is identified (a named diagnosis must match) |
correctCheck | 20 | The agent used/cited the harness check the fixture exercises |
fixed | 35 | The planted defect is actually resolved |
noCollateral | 15 | The fix introduced no unrelated breakage |
Tiers: pass at 80+, partial at 50-79, fail below 50.
harness rehearse list surfaces every shipped fixture with its planted failure mode and the harness check it exercises.harness rehearse score from the fixture manifest and a structured recovery record — the number is derived in TypeScript, never asserted by the agent.pass tier; a total miss lands in fail.These are common rationalizations that sound reasonable but lead to incorrect results. When you catch yourself thinking any of these, stop and follow the documented process instead.
| Rationalization | Why It Is Wrong |
|---|---|
"I removed the defect, so I will set fixed: true in the recovery record." | fixed credits only when the planted defect is genuinely resolved, VERIFIED by re-running the fixture's expected check against the scratch copy. Assuming success inflates the record and defeats the whole point of rehearsing on a rope. |
"The planted defect is right there in the manifest, so I will read plantedFile to guide the recovery." | Reading the answer key (plantedFile / plantedDescription) into the recovering agent's context makes the rehearsal dishonest — detection credit must come from the agent actually noticing the defect, not from being handed the location. |
| "The recovery obviously passes, so I will just report 100/100." | The score is computed in TypeScript by harness rehearse score from the manifest plus the structured record — never asserted by the agent. Hand-waving a number bypasses the referee and makes the result unreproducible. |
| "It is faster to fix the defect directly in the fixture directory." | The recovering agent must work only in an isolated scratch copy. Modifying the shipped fixture or the surrounding repo corrupts the ground truth for every future rehearsal and for the gate-regression signal the fixtures provide. |
| "This fixture scores lower than it used to, so I will tweak the fixture or loosen the rubric." | A lower score for the SAME recovery quality signals a regression in the harness gate the fixture exercises — investigate the check, not the fixture. Loosening the fixture hides exactly the regression it was built to catch. |
The agent notices the hardcoded key in hardcoded-secret, runs harness check-security to confirm, replaces the literal with an environment lookup, re-runs the check to confirm it is clean, and touches nothing else. Recovery record: all four fields favourable -> 100/100, pass.
The agent removes the secret but never runs a security check, and the edit breaks an unrelated sibling file. detected and fixed credit; correctCheck and noCollateral both slip -> 30 + 35 = 65/100, partial. (Had noCollateral held, the score would sit at exactly 80 — a boundary pass, not a partial.)
The agent reports "looks fine" and changes nothing. detected, correctCheck, fixed all fail; only noCollateral credits -> 15/100, fail. The command exits non-zero.
harness rehearse score. The number comes from TypeScript, not judgment.fixed: true without re-running the check, or detected: true for a lucky change. An inflated record defeats the whole point of rehearsing.plantedFile/plantedDescription out of the recovering agent's context.RecoveryRecord and its fixtureId must match --fixture. Fix the record; do not loosen the schema.templates/rehearsal-fixtures/ shipped with the install; harness rehearse list reads from there.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job