Skip to content

Commit ff1b750

Browse files
committed
feat(build): add full TCR workflow command
1 parent e3a5287 commit ff1b750

1 file changed

Lines changed: 29 additions & 2 deletions

File tree

.opencode/commands/build.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
---
2-
description: TCR (Test-Commit-Revert) workflow for implementing tasks with test-driven development.
2+
description: Full TCR workflow for implementing plans with test-driven development
33
agent: build
44
---
55

6-
Invoke the `build` agent to manage the project roadmap and implement tasks via a strict, agent-delegated TCR loop.
6+
Autonomous TCR workflow for implementing tasks from a plan.
7+
8+
### Preconditions
9+
- Requires a plan (linked to task via `task.planPath` OR passed as argument)
10+
- If no plan exists → stop and instruct: "Use /plan first to create a plan"
11+
12+
### Workflow
13+
14+
1. **Branch Setup**:
15+
- Generate branch name: `feature/<task-id>-<slug>` (e.g., `feature/G.1-implement-auth`)
16+
- Create and switch to branch: `git checkout -b <branch-name>`
17+
18+
2. **Step Execution** (for each step in plan):
19+
- Invoke `builder` subagent with the step details
20+
- Builder does: write test → implement → verify
21+
- If builder succeeds → commit step with "Step N: <description>"
22+
- If builder fails once → builder retries one fix
23+
- If builder fails again → ASK USER for guidance
24+
25+
3. **Completion**:
26+
- Merge branch to main
27+
- Run final `make test`
28+
- Archive task via `task archive --task-id X.X`
29+
- Report success summary
30+
31+
### Reporting
32+
- Report progress after each step
33+
- Only interrupt for user input on builder failure after retry

0 commit comments

Comments
 (0)