一键导入
easyharness-develop
Use when executing an implementation plan with a contract — runs a RALPH loop per task with evaluator feedback, retries, and model escalation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when executing an implementation plan with a contract — runs a RALPH loop per task with evaluator feedback, retries, and model escalation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when verifying implementation quality against a contract — dispatched as read-only evaluator in the easyharness-develop RALPH loop, or standalone for post-implementation audits
Use when starting a new feature or project — explores requirements, designs architecture, decomposes into tasks, and generates verifiable contracts for each subtask
| name | easyharness-develop |
| description | Use when executing an implementation plan with a contract — runs a RALPH loop per task with evaluator feedback, retries, and model escalation |
digraph G {
node [shape=box, style=rounded];
Start [label="Read plan.md + contract.md", shape=ellipse];
Todo [label="Create TodoWrite"];
NextTask [label="Pick next task\n(mark in_progress)"];
Extract [label="Extract task contract"];
subgraph cluster_RALPH {
label = "RALPH Loop";
color = blue;
REASON [label="REASON\n(Plan approach)"];
ACT [label="ACT\n(TDD Implementation)"];
EVALUATE [label="EVALUATE\n(Dispatch Evaluator)"];
VERDICT [label="Verdict?", shape=diamond];
LEARN [label="LEARN\n(Parse feedback)"];
RETRY [label="Retry < 3?", shape=diamond];
PLAN [label="PLAN + HYPOTHESIZE"];
REASON -> ACT -> EVALUATE -> VERDICT;
VERDICT -> COMMIT_PASS [label="PASS"];
VERDICT -> COMMIT_FAIL [label="FAIL"];
COMMIT_PASS [label="COMMIT\n(task complete)"];
COMMIT_FAIL [label="COMMIT\n(checkpoint)"];
COMMIT_FAIL -> LEARN;
LEARN -> RETRY;
RETRY -> PLAN [label="yes"];
PLAN -> ACT;
}
COMMIT_PASS -> UPDATE_PLAN;
UPDATE_PLAN [label="Update plan.md\n(mark task DONE)"];
UPDATE_PLAN -> PASS_MARK;
PASS_MARK [label="Mark todo complete"];
MORE [label="More tasks?", shape=diamond];
PASS_MARK -> MORE;
MORE -> NextTask [label="yes"];
FINAL [label="Final Evaluation"];
VERIFY [label="Verification"];
Done [label="Done", shape=ellipse];
MORE -> FINAL [label="no"];
FINAL -> VERIFY -> Done;
RETRY -> BLOCKED [label="no"];
BLOCKED [label="BLOCKED\n(Report to User)", color=red];
}
docs/learnings.md exists, read it. These are durable cross-task learnings from previous sessions.completed.plan.md.contract.md (ACs, test reqs, regression guards).sdd-spec.md — these define the exact test cases to implement.Follow TDD strictly (using superpowers:test-driven-development):
Dispatch easyharness-evaluator as a read-only subagent. Use the evaluator-dispatch-prompt.md template.
Always git add + commit after evaluation, regardless of verdict. No exceptions.
git add all changed files (implementation + tests). Exclude unrelated changes.git commit -m "task-N: [task name] — PASS"git commit -m "task-N: [task name] — attempt K checkpoint"If you skip this step, session loss = code loss. Non-negotiable.
After a task passes evaluation and is committed, update the plan document on disk.
plan.md (the implementation plan file).### Task N: [name]).### Task N: to ### Task N: ✅ DONE (or add **Status: DONE** below it).git add plan.md && git commit -m "plan: mark task N done"Why this is critical: TodoWrite is session-ephemeral. If the session dies, the only durable record of progress is the plan file on disk. Without this step, a new session will re-attempt already-completed tasks.
On session recovery (new session reads plan.md):
blocking_issues array from the evaluator response.feedback string for specific actionable fixes.| Attempt | Strategy | Context Injection |
|---|---|---|
| 1 | Direct implementation | Task + contract |
| 2 | Apply evaluator feedback | + feedback from attempt 1 |
| 2.5 | Contract Amendment check | If same AC failed twice, evaluate whether AC itself is flawed |
| 3 | Reconsider approach | + feedback 1-2 + "consider alternative" |
| 4+ | BLOCKED | Stop, report all findings to user |
Max retries: 3 (configurable). On BLOCKED: Report task name, all collected feedback, what was tried, and suggested next steps.
Trigger: The same AC has failed on both attempt 1 and attempt 2, AND the evaluator feedback suggests the AC itself may be problematic (not just the implementation).
Signs an AC needs amendment:
Process:
"AC-N.X has failed 2 consecutive attempts. Evaluator feedback suggests the AC itself may need revision:
- Current AC: [exact text]
- Evaluator's concern: [from feedback]
- Suggested revision: [your proposed rewrite]
Options: (a) Amend AC as suggested, (b) Amend AC differently, (c) Keep AC — I'll try a different approach"
contract.md, commit: git commit -m "contract: amend AC-N.X — [reason]"Why this matters (from OpenAI's harness practice): Documents rot. A contract written during planning may not survive contact with the actual codebase. Amending early is cheaper than hitting BLOCKED and restarting.
Learnings survive session death. After each task (pass or fail), append to a learnings file on disk.
Append to docs/learnings.md (create if missing):
### Task N: [name] — [PASS|FAIL attempt K]
- **Pattern**: What worked well for this codebase
- **Gotcha**: What specifically tripped you up
- **Codebase note**: Any discovered conventions or hidden rules
- **Evaluator insight**: Key feedback from evaluator (if FAIL)
Then: git add docs/learnings.md && git commit -m "learnings: task N [name]"
docs/learnings.md if it exists. Inject relevant entries into your context.Why this matters (from OpenAI's harness practice): Agent knowledge stored only in session context is lost on crash. The repo is the record system — anything the agent can't read from disk doesn't exist.
After all tasks pass individually:
easyharness-evaluator with the COMPLETE contract (all tasks).superpowers:verification-before-completion before claiming success.
If final evaluation fails: Re-run RALPH on affected tasks with integration context.easyharness-evaluator, superpowers:test-driven-development, superpowers:verification-before-completion.plan.md + contract.md + sdd-spec.md (typically generated by easyharness-plan).| Phase | Action | Output |
|---|---|---|
| Setup | Read plan + contract, create todos, record baseline | TodoWrite, baseline metrics |
| REASON | Read task, check deps, plan approach | Mental model of task |
| ACT | TDD implementation | Code + tests |
| EVALUATE | Dispatch easyharness-evaluator | JSON verdict |
| COMMIT | Git commit (PASS or checkpoint) | Recoverable git state |
| UPDATE PLAN | Mark task DONE in plan.md + commit | Durable progress on disk |
| LEARN | Parse feedback on FAIL | Root cause understanding |
| PLAN | Adjust approach for retry | New strategy |
| Final | Full contract evaluation | Completion report |