ワンクリックで
eval-fix
Adversarial fix loop: read eval report → fix gaps → re-evaluate → repeat until convergence
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Adversarial fix loop: read eval report → fix gaps → re-evaluate → repeat until convergence
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Harness 主入口 — 从想法到交付的一站式流程
Restore state, health check, determine current phase, suggest next step
Explain Harness plugin and available commands
Initialize Harness for your project — learn repo, team norms, generate customized framework
Start a new feature proposal — guided spec + design generation
Execute all tasks with auto-loop until completion — Stop Hook driven
| name | eval-fix |
| description | Adversarial fix loop: read eval report → fix gaps → re-evaluate → repeat until convergence |
| argument-hint | <feature-id e.g. F001> --ref-url <url> --dev-url <url> |
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} |