Files
dotfiles/.config/opencode/commands/build.md
2026-03-13 19:41:17 +00:00

20 lines
1.4 KiB
Markdown

---
description: Execute the latest approved plan
agent: builder
model: github-copilot/gpt-5.4
---
Execute the latest approved plan for: $ARGUMENTS
1. Read the latest matching `plans/<slug>` note with `Status: approved`.
2. Create or update `executions/<slug>` with `Status: in_progress` before changing code.
3. Delegate implementation to `coder`, verification to `tester`, review to `reviewer`, and docs or memory updates to `librarian` where appropriate.
4. Builder owns commit creation during `/build`: create automatic commits at meaningful completed implementation checkpoints.
5. Reuse existing git safety rules and avoid destructive git behavior; do not add push automation.
6. If no new changes exist at a checkpoint, skip commit creation rather than creating empty or duplicate commits.
7. Follow the plan exactly. If the plan is contradictory, missing a dependency, or fails verification twice, stop, capture evidence, set the execution note to blocked, and send the work back to `planner`.
8. Before creating the final completion commit, clean up temporary artifacts generated during the build (e.g., scratch files, screenshots, logs, transient reports, caches). Intended committed deliverables are not cleanup targets.
9. Finish by creating a final completion commit when changes remain, then update the execution note to `Status: done` or `Status: blocked` and summarize what changed.
Automatic commits are required during `/build` as defined above.