zxdxjtu/harness/eval-fix
Claude Code and agent skill by zxdxjtu/harness
- community
Checking that the SKILL.md file is still in the repository.
Adversarial fix loop: read eval report → fix gaps → re-evaluate → repeat until convergence
Install
npx vskill@latest install zxdxjtu/harness/eval-fixSKILL.md
Eval-Fix — Adversarial Fix-Evaluate Loop
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
Step 1: Load Evaluation Report
If no eval-report exists → tell user to run /evaluate {FXXX} first and STOP.
Step 2: Extract Fix Tasks
Parse the eval-report's "Fix Tasks" section. For each feature scoring < 7:
- Read the detailed findings (gap description + screenshot references)
- Read the fix suggestions
- Read the relevant screenshots to understand the visual gap
- Create a fix task with:
- What's wrong: factual description from Evaluator
- Reference screenshots: paths to reference screenshots
- Dev screenshots: paths to current dev screenshots
- Expected outcome: what "fixed" looks like (described precisely)
Step 3: Execute Fixes (Generator Role)
For each fix task, ordered by priority (P0 first):
Single fix approach (no worktree):
- Read the gap description and screenshots from the Evaluator
- Read the relevant source code files
- Implement the fix — focus on matching the reference product exactly
- Run existing tests to verify no regression
- Commit:
fix(eval): {brief description of what was fixed}
Multiple independent fixes:
Use Agent(isolation: "worktree") for parallel execution when fixes are independent.
Generator Agent Prompt:
Step 4: Re-Evaluate
After all fixes are applied, trigger a fresh evaluation:
- Merge any worktrees back to main branch
- Ensure the dev product is running with latest code
- Run the evaluation protocol (same as
/evaluate):
- Playwright MCP tests each feature against reference
- Generate new eval-report with updated scores
- Track score trend across iterations
Step 5: Convergence Check
Read the new eval-report and compare with previous iteration:
Convergence achieved (overall score ≥ 7):
STOP the loop.
Progress detected (score improved):
Continue to next iteration — go back to Step 2 with the new eval-report.
Stagnation detected (score did NOT improve for 2 consecutive iterations):
STOP and wait for user decision.
Regression detected (score decreased):
Revert the last batch of commits and STOP.
Step 6: Update Progress
After each iteration, update .harness/progress.md:
Loop State
Track loop state in .harness/evidence/{FXXX}/eval-loop-state.md:
Critical Rules
- Generator and Evaluator are SEPARATE roles. Do not self-evaluate during the fix phase. Always run the full Evaluator protocol for re-assessment.
- Trust the Evaluator's screenshots over your assumptions. If the Evaluator says it's different, it IS different.
- Fix what the Evaluator reports, not what you think is wrong. Scope discipline is critical.
- No infinite loops. Stagnation detection ensures the loop terminates when automated fixes stop helping.
- Preserve rollback capability. Each fix batch is a separate commit, enabling clean revert on regression.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/eval-fix/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zxdxjtu/harness/eval-fix)