/vv-harness:harness-improvefrom VV Claude Code Harness
Runs an observation-first improvement loop on a harness-managed project to diagnose and fix agent failures by recording job contracts, observing baselines, locating failed handoffs, and implementing targeted interventions.
Ships in VV Claude Code Harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Adapted from harness-engineering's playbooks/improve-harness.md (CC BY 4.0):
improvement driven by an OBSERVED TRAJECTORY, never by a feature idea alone.
Non-harness projects: if .harness/ doesn't exist, stop and point the user at
/harness-init -- this whole loop depends on evidence only .harness/ provides
(Step 2); there is nothing to observe without it.
Before touching anything, write down: the target job + revision (feature ID or
task description); the fixed worker config (.harness/harness.json's worker
block, F016/OVI-57, if present -- note "unrecorded" if absent, don't guess); a
representative job (the actual session/task under review); the accepted outcome
(what "done" looked like); the evidence available; the budget/stop conditions for
this improvement pass itself; the suspected gap (a hypothesis, not a conclusion
yet).
Gather evidence vv already has -- don't reconstruct from memory:
.harness/features.json: correction_cycles, scope_expansions,
approaches_tried, failure_reason on the job's feature(s)..harness/SESSION_INCOMPLETE history, if still present: what gaps got flagged
and left open..harness/mld/*.md entries (F014/OVI-54; P3.1's corroboration marker, when present):
## Mistakes / ## Learnings / ## Desires from past sessions on this job.Find the FIRST point in the trajectory where something needed did not arrive -- not the last symptom, the earliest cause. Classify it; each class maps to its smallest vv-native owner:
| Gap class | vv-native owner |
|---|---|
| Context | context_summary.md entry, or a rules/*.md pointer |
| Capability | A .harness/init.sh change, or a new/fixed tool |
| Domain ownership | A schemas/*.json field |
| Authority | A hook (.claude/hooks/*.sh) |
| Proof | A proof/qa_binding field (schemas/feature.schema.json) |
| Feedback/delivery | An agent spawn prompt |
| Worker limitation | Hold as an open candidate -- one failed run cannot establish this; needs corroboration across distinct sessions (F015/OVI-55's score>=3 promotion threshold) before acting |
State it in this exact shape, so it is falsifiable, not just a fix:
If X (the change) at owner Y (from Step 3's table), then observable change Z on job J (the SAME job class from Step 1), because mechanism M (why this should work). Evidence that would weaken this hypothesis: [name it]. Carrying cost: [what this adds -- a new file to maintain, a slower check, a longer prompt].
Exactly ONE intervention per pass. Resist bundling several fixes into one round.
Implement Step 4's change at its named owner -- nothing broader. Verify two ways:
native checks (the project's own test suite -- bash test/run-tests.sh in this
repo) AND the job's own claim boundary (does the specific accepted outcome from
Step 1 now hold, not just "tests pass").
Rerun the SAME CLASS of job, on the SAME worker config recorded in Step 1, in a genuinely fresh session -- not a continuation of this one, since prior-session context would contaminate the signal. Before crediting the intervention, apply the retrieved-or-invoked guardrail: confirm it was actually used this run, not just present on disk.
Consequential jobs that can't safely be rerun: use the recent-session inspection variant instead -- review the most recent real occurrence's transcript for the same signal, rather than deliberately reproducing a costly failure just to test the fix.
Verdict on the intervention, with reasoning:
Record a compact result record (template below) to .harness/context_summary.md.
If the lesson generalizes beyond this one job (a plugin-level pattern, not a
project-specific fix), route it to .harness/HARNESS_BACKLOG.md instead
(F015/OVI-55's promotion pass) -- this skill fixes ONE job; the backlog is where
a fix earns broader promotion.
## Improve-Harness Result: <job> (<date>)
- Outcome: retain | revise | remove
- Proof: <what was actually observed, with a pointer -- test output, file diff, transcript>
- Relay/latency: <how long from hypothesis to verified rerun>
- Risk vs. carrying cost: <what this could break, weighed against what it costs to keep>
- Decision: <the Step 7 verdict, one line>
- Known limits: <what this result does NOT establish -- the bounded-claim guardrail, made concrete>
Adapted from harness-engineering's playbooks/improve-harness.md, CC BY 4.0
(https://creativecommons.org/licenses/by/4.0/).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oeftimie/vv-claude-harness --plugin vv-harness6 skills in this plugin
/harness-continueContinue working on a harness-managed project (vv-harness plugin). Orients to current state, picks single-session or workflow mode, and guides implementation with TDD, quality gate hooks, and compaction-aware context management. Use at the start of any session on a harness project./harness-doctorReport-first, idempotent instance health check for a harness-managed project. Verifies python3/git presence, the hook set and its executability, .claude/settings.json wiring, .gitignore rules, .harness/ file validity, version drift against the current plugin, whether a passing/in-progress feature's test_file actually exists, and the mld non-injection guarantee. Offers a --fix upgrade mode, but never writes without explicit approval. Use when a smoke test fails unexpectedly, after a manual edit to .claude/ or .harness/, or when upgrading a project initialized under an older harness version./harness-initInitialize a new project with the Long-Running Agent Harness (vv-harness plugin). Sets up feature tracking, git identity capture, context summary, build hooks, quality gate hooks, and an optional workflow size guideline. Use when starting a new multi-session project./harness-issue-debugOpen a failed or parked piece of work in a live repair session. Input is a features.json feature id (harness project) or a Linear issue key parked by the external runner. Loads the failure context, checks out the branch, iterates the fix with the human, and exits by resuming the runner, routing back through harness-issue-prep, or marking the work failed. Use when a feature is status failed or a runner-parked issue needs hands-on debugging./harness-issue-prepInteractively verify a spec until it is buildable, then mark it ready for implementation. Sources: a Linear issue (via the Linear MCP), a pasted spec, or an existing features.json feature. On PASS it normalizes the spec, records verification (spec field locally; a signed readiness stamp plus label on Linear), and can kick the external runner. Use when an issue or feature needs to be made ready for unattended or team implementation.Other plugins' skills for the same job