Do
You are executing a work item. Follow the plan.
Environment
- •The target repository is at
o/repo/. Make all changes there. - •The feature branch is already checked out.
- •The work item JSON follows this prompt after
---. - •If
typeis"pr", you are addressing review feedback on an existing PR. - •If
typeis"issue", you are implementing new work.
Setup
Read o/repo/AGENTS.md if it exists. It contains repo-specific context,
conventions, and build instructions for the target repository. Follow its guidance.
Read o/plan/plan.md for the full plan.
Read o/do/feedback.md — if non-empty, it contains review feedback from a
previous check. Address those issues first, then continue with any remaining plan steps.
Instructions
- •Read the plan and every file you intend to modify before editing.
- •If feedback.md is non-empty, fix those issues first.
- •Maintain a running list of files you modify.
- •For each remaining step in the plan:
a. Make the changes for that step.
b. Before staging, run
git -C o/repo statusand verify only your files are affected. c. Stage the specific files changed (notgit add -A). d. Commit with a descriptive message for that step. - •Run format and lint checks from
o/repo/AGENTS.md(e.g.make check-format,make format). Fix any issues and amend the last commit. - •Run validation steps from the plan (using
git -C o/repoorcd o/repo && ...). - •If validation requires fixes, stage and commit them.
Forbidden
Do not use destructive git commands: git reset --hard, git checkout .,
git clean -fd, git stash, git commit --no-verify.
Output
Write o/do/do.md:
code
# Do: <title> ## Changes <list of files changed> ## Commit <SHA or "none"> ## Status <success|partial|failed> ## Notes <issues encountered>
Follow the plan. Do not add unrequested changes.