/mini-harness:mh-wiki [consolidate | propose]from mini-harness
Consolidates execution trajectories from .harness/exec_traj/ into a wiki page (harness_effect.md) that tracks which harness parts helped or hurt, root causes, and proposed changes. Invoked via /mh-wiki.
Ships in mini-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.
Model: WikiSkill (arXiv:2608.27454) — raw traces → wiki pattern pages → validated skill changes. The wiki is never rolled back; the executor never reads it at the start of a run (the paper's ablation: 63.7 → 60.9 with executor access); the proposer's wiki access is the largest gain (48.7 without it → 63.7). Read .harness/exec_traj.md for the trajectory shape.
Inputs: run bash "${CLAUDE_SKILL_DIR}/../mini-harness/mh.sh" wiki begin. It prints up to five sealed, unchanged trajectories after the cursor, oldest first, stopping before any pending record, plus an owner token for a nonempty batch. On failure, another operation owns the lock: stop without writing or releasing it. An empty/blocked batch holds no lock: report and stop. Read only that batch and repo_info/harness_effect.md; budget <= 3k tokens, starting with the skeleton below if empty. A record's usage line is provisional; when state/usage/<record>.usage exists, that final line is the figure to fold.
For each nonempty batch: retain its owner token, prepare the whole wiki and cursor in a temporary sibling file, verify it, atomically replace harness_effect.md, then ... mh.sh wiki end <owner> on success or failure before another begin. On preparation failure leave the original wiki/cursor unchanged and stop. If the replacement succeeded, retain its advanced cursor even if a later step fails. Never repeat begin while holding a token; never use another session's token. Locks do not expire: recover an abandoned lock only after establishing that its writer has stopped. Legacy/abandoned trajectories require explicit completion (exec_traj.md); age is not evidence. Repeated wiki with no new completed records is a no-op.
harness effect, advisory, dispositions, workers, usage, memory consulted, friction, and user choices lines (older records: subagents and advisor decisions blocks instead; unknown is a gap, never a zero) into a page matched on identity (same component; same task type × dial; same memory file; same stage) — never on wording; create a page only when none matches.items Σm → adopted Σn; for memory files consulted Σm → useful Σn. Update Worker selection by platform × task/stage × role × effective model × effective effort, with attempts/distinct runs, outcomes/contribution, failures/retries, reported usage and sample counts, and evidence ids. Keep requested/effective mismatches visible; exclude unknown effective settings from comparisons. Older missing fields stay unknown. Compare similar work and note differences in task difficulty or small samples.supported with one fix: — one atomic change (a dial default, an agent-definition line, a tasks.md row, a README "worth reading when" line, a routes.md line). A page later contradicted becomes refuted. Friction that recurs across records is one page, not one per wording; its proposed fix stays proposed in the page until a record's verification line supports it.consolidated through <last filename processed> · <n> trajectories total, append one Evolution-log line naming the first and last filename of the batch, and fit the budget: merge near-duplicates → drop refuted pages older than 20 runs → compress support lists to counts plus the last 3 filenames.
The only final content edit is harness_effect.md (remove temporary output on failure) — never the pack, never the other memory files.# Harness effect
## Index
<`H1 · advisor/diversifier · update · supported · 6 runs · <title>` per page; last line: `consolidated through <filename> · <n> trajectories`>
## Components
### H<n> · <component> · <task type | all> · <title>
- status: hypothesis | supported | acted (<date>) | refuted · support: <n> runs — <last 3 filenames>
- tally: helped a · hurt b · neutral c (· items Σm → adopted Σn | consulted Σm → useful Σn)
- pattern: <what recurs, quoted from the trajectories>
- fix: <one atomic change | none yet>
## Worker selection
<one compact entry per platform × task/stage × role × effective model × effective effort: attempts / distinct runs · outcomes and contribution · failures/retries · elapsed/tokens with sample counts · evidence ids · selection hypothesis or insufficient evidence; keep unknown settings and requested/effective mismatches separate>
## Skill impact
<`SI<n> · pages <ids> · change <file: what> · applied <date> · metric <tally before → after> · window <task × 3 runs, k seen> · outcome open | accepted | reverted — <reason>`>
## Evolution log
<`<ts> · trajectories <first filename>–<last filename> (<k>) · created <ids> · updated <ids> · promoted <ids> · pruned <ids>`>
Read the Index, Skill impact, and the supported pages only, plus the trajectories they cite. Propose atomic changes — one file, one dial or line each — carrying the page ids, the change, the metric (a tally the trajectories already produce), the validation window (the next 3 trajectories of the affected task type), and the acceptance rule: accepted only if the metric moved as intended and no cited tally regressed, else reverted — the wiki keeps the row either way. Never re-propose a reverted change without naming what differs now. On application add the Skill-impact row with outcome open and mark the cited pages acted.
For model/effort selection updates, also read Worker selection and its cited trajectories. Propose settings per role and comparable task, carrying outcome evidence, sample sizes, and any observed quality/time/token tradeoff. With insufficient comparable evidence, propose a small evaluation instead of naming a winner. Consolidation records evidence; it does not change worker defaults.
harness wiki: consolidated <first>–<last> (<k> records, <r> remaining) · updated <ids> · proposal-ready <ids | none>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
harness, execution-trajectories, wiki, retrospective, skill-learning
9 skills in this plugin
/breakdown-prPlan and optionally execute a large pull request split into small stacked PRs. Use for PR breakdown, split PR, stacked PRs, branch decomposition, oversized diffs, gh-stack, Graphite, git range-diff, or PR too large./code-review-and-qualityMulti-axis, review-only code review of a diff across six axes — request achievement, correctness, readability/simplicity, architecture, security, and performance — with severity-labelled findings. TRIGGER: invoked by a mini-harness skill's review stage when the dial `code_review=local` is set. Not a planning-time skill./code-simplificationSimplify code for clarity while preserving exact behavior — reduce nesting, split long functions, remove redundancy and dead code, and fix unclear names. TRIGGER: invoked by a mini-harness skill's review stage when the dial `simplify=local` is set. Not a planning-time skill.npx claudepluginhub hangyu8123/mini-harness --plugin mini-harnessOther plugins' skills for the same job