/harness:eval-fix <feature-id e.g. F001> --ref-url <url> --dev-url <url>from harness
Runs an adversarial feedback loop: reads an eval report, implements fixes for failing features, then re-runs evaluation until convergence. Useful for automated regression repair against visual/behavioral references.
Ships in 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.
This command implements an adversarial fix-evaluate loop: Generator (fix) → Evaluator (assess) → repeat until convergence or user intervention. The Generator and Evaluator are separate agents to prevent self-assessment bias.
Parameter: $ARGUMENTS — feature ID and product URLs
FEATURE_ID=$(echo "$ARGUMENTS" | grep -oP 'F\d+')
cat ".harness/evidence/${FEATURE_ID}/eval-report.md" 2>/dev/null
If no eval-report exists → tell user to run /evaluate {FXXX} first and STOP.
Parse the eval-report's "Fix Tasks" section. For each feature scoring < 7:
For each fix task, ordered by priority (P0 first):
fix(eval): {brief description of what was fixed}Use Agent(isolation: "worktree") for parallel execution when fixes are independent.
Generator Agent Prompt:
You are a fix worker. The Evaluator found this gap:
GAP: {gap description from eval-report}
REFERENCE: {screenshot path} — shows how it SHOULD look/behave
CURRENT: {screenshot path} — shows how it CURRENTLY looks/behaves
FIX SUGGESTION: {evaluator's suggestion}
Steps:
1. Read the reference screenshot to understand the target
2. Read the current screenshot to understand the gap
3. Find and modify the relevant code
4. Test that the fix works
5. Commit with: fix(eval): {description}
RULES:
- Match the reference product EXACTLY
- Do NOT add features the reference doesn't have
- Do NOT "improve" beyond what the reference shows
- If unsure, match the reference screenshot pixel-for-pixel
After all fixes are applied, trigger a fresh evaluation:
/evaluate):
Read the new eval-report and compare with previous iteration:
Report to user:
"Eval-fix loop converged after N iterations.
Score progression: {iter1} → {iter2} → ... → {current}
Remaining minor gaps: {list if any}
Next step: /verify {FXXX}"
STOP the loop.
Continue to next iteration — go back to Step 2 with the new eval-report.
Report to user:
"Score stagnation detected after N iterations.
Score progression: {iter1} → ... → {current} (no improvement in last 2 rounds)
Remaining gaps that resist automated fixing:
{list of features still < 7 with descriptions}
Recommended actions:
1. Review the gaps manually — some may require architectural changes
2. Adjust the spec if the reference behavior is intentionally different
3. Run /evaluate again after manual fixes
Continue the loop? (The fix approach may need human guidance)"
STOP and wait for user decision.
Report to user:
"WARNING: Score regression detected!
Previous: {prev_score} → Current: {current_score}
Regressed features:
{list of features that got worse}
Rolling back last batch of fixes..."
Revert the last batch of commits and STOP.
After each iteration, update .harness/progress.md:
[HH:MM] EVAL-FIX iteration {N}: score {prev} → {current}
[HH:MM] Fixed: {list of features improved}
[HH:MM] Remaining: {list of features still < 7}
Track loop state in .harness/evidence/{FXXX}/eval-loop-state.md:
---
feature: {FXXX}
iteration: {N}
status: running|converged|stagnated|regressed
ref_url: {url}
dev_url: {url}
---
## Score History
| Iteration | Overall | Functional | Interaction | Visual | Technical | Fixes Applied |
|-----------|---------|-----------|-------------|--------|-----------|---------------|
| 1 | X.X | X | X | X | X | initial evaluation |
| 2 | X.X | X | X | X | X | {fix descriptions} |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub zxdxjtu/harness --plugin harness21 skills in this plugin
/adversarial-review对抗式代码审查 — 独立 Agent 挑战实现质量/archivePhase 3: merge spec/design deltas, code review, atomic commits, push, and trigger self-evolution/baselineCapture baseline of a reference product using Playwright MCP for clone/replicate scenarios/cancel-sprintCancel an active sprint loop/decomposeDecompose tests into atomic task DAG with wave-based parallel execution and module stewardship/entropy-cleanPost-wave entropy cleanup — remove debug artifacts, enforce style, ensure git hygiene