Loading...
Loading...
Compare original and translation side by side
/execute/execute| Granularity | Example | Verdict |
|---|---|---|
| Single action, 2-5 min | "Write the failing test for UserService.create" | Correct |
| Single action, 2-5 min | "Run the test to verify it fails" | Correct |
| Single action, 2-5 min | "Implement the minimal code to pass the test" | Correct |
| Multiple actions, 30+ min | "Implement the authentication system" | Too large — decompose |
| Trivial, < 1 min | "Add a blank line" | Too small — merge with adjacent task |
| 粒度 | 示例 | 判定 |
|---|---|---|
| 单一动作,2-5分钟 | "Write the failing test for UserService.create" | 正确 |
| 单一动作,2-5分钟 | "Run the test to verify it fails" | 正确 |
| 单一动作,2-5分钟 | "Implement the minimal code to pass the test" | 正确 |
| 多个动作,30分钟以上 | "Implement the authentication system" | 粒度过大 — 需要拆分 |
| 过于琐碎,耗时<1分钟 | "Add a blank line" | 粒度过小 — 与相邻任务合并 |
Task N: [Clear, specific description]
Files: [Exact paths to create/modify/test]
Depends on: [Task numbers that must complete first, or "none"]
Verification: [Exact command to confirm completion]Task N: [Clear, specific description]
Files: [Exact paths to create/modify/test]
Depends on: [Task numbers that must complete first, or "none"]
Verification: [Exact command to confirm completion][N/Total] Starting: <description>in_progress[N/Total] Completed: <description>completed[N/Total] Starting: <description>in_progress[N/Total] Completed: <description>completed| Rule | Rationale |
|---|---|
| One task at a time | Prevents context switching errors |
| Verify before marking complete | No false completions |
| Read verification output fully | Do not assume success from partial output |
| Follow TDD for code tasks | RED-GREEN-REFACTOR cycle |
| Do not skip ahead | Dependencies may not be satisfied |
| 规则 | 逻辑 |
|---|---|
| 一次仅执行一个任务 | 避免上下文切换带来的错误 |
| 标记完成前先验证 | 避免虚假完成 |
| 完整读取验证输出 | 不要通过部分输出假设执行成功 |
| 代码任务遵循TDD规范 | 遵循RED-GREEN-REFACTOR周期 |
| 不要跳步执行 | 可能存在未满足的依赖关系 |
pending → in_progress → completed
→ blocked (needs user input)
→ failed (invoke resilient-execution)pending → in_progress → completed
→ blocked (needs user input)
→ failed (invoke resilient-execution)| Outcome | New Status | Action |
|---|---|---|
| Verification passes | | Proceed to next task |
| Verification fails, fixable | | Fix and re-verify |
| Verification fails, unclear cause | | Invoke |
| Needs user decision | | Report blocker, pause task |
| Task depends on blocked task | | Skip to next non-blocked task |
| 结果 | 新状态 | 动作 |
|---|---|---|
| 验证通过 | | 继续执行下一个任务 |
| 验证失败、可修复 | | 修复后重新验证 |
| 验证失败、原因不明 | | 调用 |
| 需要用户决策 | | 上报阻塞问题,暂停任务 |
| 任务依赖的任务处于阻塞状态 | | 跳转至下一个未被阻塞的任务 |
| Condition | Action |
|---|---|
| 3 tasks completed since last checkpoint | Mandatory checkpoint |
| Logical batch complete (e.g., one component) | Checkpoint recommended |
| Test failure encountered | Immediate checkpoint |
| User requests status | Ad-hoc checkpoint |
| 条件 | 动作 |
|---|---|
| 自上一个检查点起已完成3个任务 | 强制检查点 |
| 逻辑批次完成(例如某一个组件开发完成) | 建议检查点 |
| 遇到测试失败 | 立即检查点 |
| 用户请求查看状态 | 临时检查点 |
code-reviewcode-review[3/15] Task completed: Write failing test for UserService.create
Files: tests/services/user.test.ts
Verification: npm test -- --grep "UserService.create" — PASS── Checkpoint [6/15] ──
Completed: 6 | Remaining: 9 | Blocked: 0
Tests: 12 passing, 0 failing
Lint: clean | Build: passing
Next batch: Tasks 7-9 (API endpoint implementation)
Continue? [yes / adjust plan / stop here][3/15] Task completed: Write failing test for UserService.create
Files: tests/services/user.test.ts
Verification: npm test -- --grep "UserService.create" — PASS── Checkpoint [6/15] ──
Completed: 6 | Remaining: 9 | Blocked: 0
Tests: 12 passing, 0 failing
Lint: clean | Build: passing
Next batch: Tasks 7-9 (API endpoint implementation)
Continue? [yes / adjust plan / stop here]code-reviewercode-reviewer| Severity | Action | Continue? |
|---|---|---|
| Critical | Must fix immediately | No — fix first |
| Important | Should fix before next batch | Conditional — user decides |
| Suggestion | Note for future | Yes — proceed |
| 严重级别 | 动作 | 是否继续? |
|---|---|---|
| 严重 | 必须立即修复 | 否 — 先修复 |
| 重要 | 应在下一批次开始前修复 | 待定 — 由用户决定 |
| 建议 | 记录供后续参考 | 是 — 继续执行 |
completedverification-before-completioncompletedverification-before-completion── FINAL SUMMARY ──
Total tasks: 15 | Completed: 15 | Failed: 0
Tests: 42 passing, 0 failing
Build: passing | Lint: clean
Commits: 5 (conventional format)
All tasks from plan docs/plans/2026-03-15-feature.md are complete.
Verification-before-completion: PASS── FINAL SUMMARY ──
Total tasks: 15 | Completed: 15 | Failed: 0
Tests: 42 passing, 0 failing
Build: passing | Lint: clean
Commits: 5 (conventional format)
All tasks from plan docs/plans/2026-03-15-feature.md are complete.
Verification-before-completion: PASS| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Marking complete without verification | False progress, bugs accumulate | Run verification command, read output |
| Tasks larger than 5 minutes | Hard to track, prone to scope creep | Break into 2-5 minute tasks |
| Skipping checkpoints | Quality degrades, direction drifts | Checkpoint every 3 tasks |
| Running only new tests | Regressions go undetected | Full test suite at checkpoints |
| Parallelizing dependent tasks | Race conditions, merge conflicts | One task at a time unless truly independent |
| Proceeding past blocked tasks silently | User unaware of skipped work | Report all blockers explicitly |
| Not committing at batch boundaries | Large, hard-to-review changesets | Commit after each logical batch |
| "It works, I'll verify later" | Later never comes | Verify NOW |
| 反模式 | 失效原因 | 正确做法 |
|---|---|---|
| 未验证就标记完成 | 进度虚假,bug累积 | 运行验证命令,读取输出确认 |
| 任务耗时超过5分钟 | 难以跟踪,容易出现范围蔓延 | 拆分为多个2-5分钟的任务 |
| 跳过检查点 | 质量下降,方向偏离 | 每3个任务开展一次检查点评审 |
| 只运行新增测试 | 回归问题无法被发现 | 检查点阶段运行完整测试套件 |
| 并行执行有依赖的任务 | 出现竞态条件、合并冲突 | 一次仅执行一个任务,除非完全独立 |
| 跳过阻塞的任务却不告知 | 用户不知道有工作被搁置 | 明确上报所有阻塞问题 |
| 批次边界不提交代码 | 变更集过大,难以评审 | 每个逻辑批次完成后提交代码 |
| "能用就行,之后再验证" | 之后永远不会验证 | 现在就验证 |
| Skill | Relationship | When |
|---|---|---|
| Upstream — provides approved plan | Task list source |
| Complementary — handles plan execution flow | Can be used together |
| Per-task — TDD cycle for code tasks | Every code task |
| Per-task — verification gate | Before marking any task complete |
| On failure — retry with alternatives | When task verification fails |
| At checkpoints — batch quality review | Every 3 tasks or batch boundary |
| Alternative — parallel execution path (via | For independent task batches |
| Dispatch mechanism for all subagent work | When parallelizing independent tasks |
| Safety net — detects stagnation | When tasks repeatedly fail |
| Skill | 关系 | 触发时机 |
|---|---|---|
| 上游 — 提供获批计划 | 任务列表来源 |
| 互补 — 处理计划执行流程 | 可搭配使用 |
| 单任务层面 — 代码任务的TDD周期 | 所有代码任务 |
| 单任务层面 — 验证关口 | 标记任何任务完成前 |
| 失败时 — 用备选方案重试 | 任务验证失败时 |
| 检查点层面 — 批次质量评审 | 每3个任务或批次边界 |
| 替代方案 — 并行执行路径(通过 | 独立任务批次 |
| 所有子agent工作的调度机制 | 并行执行独立任务时 |
| 安全网 — 检测停滞 | 任务反复失败时 |
Task 1: Write failing test for POST /api/users input validation
Files: tests/api/users.test.ts
Depends on: none
Verification: npm test -- --grep "POST /api/users validation" → FAIL (expected)
Task 2: Implement input validation schema
Files: src/schemas/user.ts
Depends on: Task 1
Verification: npm test -- --grep "POST /api/users validation" → PASS
Task 3: Write failing test for POST /api/users success case
Files: tests/api/users.test.ts
Depends on: Task 2
Verification: npm test -- --grep "POST /api/users creates user" → FAIL (expected)
Task 4: Implement registration endpoint handler
Files: src/routes/users.ts
Depends on: Task 3
Verification: npm test -- --grep "POST /api/users" → ALL PASS
Task 5: Commit registration endpoint
Files: none (git operation)
Depends on: Task 4
Verification: git log --oneline -1 → shows conventional commitTask 1: Write failing test for POST /api/users input validation
Files: tests/api/users.test.ts
Depends on: none
Verification: npm test -- --grep "POST /api/users validation" → FAIL (expected)
Task 2: Implement input validation schema
Files: src/schemas/user.ts
Depends on: Task 1
Verification: npm test -- --grep "POST /api/users validation" → PASS
Task 3: Write failing test for POST /api/users success case
Files: tests/api/users.test.ts
Depends on: Task 2
Verification: npm test -- --grep "POST /api/users creates user" → FAIL (expected)
Task 4: Implement registration endpoint handler
Files: src/routes/users.ts
Depends on: Task 3
Verification: npm test -- --grep "POST /api/users" → ALL PASS
Task 5: Commit registration endpoint
Files: none (git operation)
Depends on: Task 4
Verification: git log --oneline -1 → shows conventional commitBLOCKED: Task 7 — Write integration test for payment webhook
Reason: Stripe test API key not configured in .env.test
Impact: Tasks 7-9 (payment flow) cannot proceed
Non-blocked tasks: Tasks 10-12 (profile page) can continue
Options:
A. User provides Stripe test key → unblocks Tasks 7-9
B. Skip payment tasks, continue with profile → revisit later
C. Mock Stripe entirely → reduces test fidelity
Awaiting direction.BLOCKED: Task 7 — Write integration test for payment webhook
Reason: Stripe test API key not configured in .env.test
Impact: Tasks 7-9 (payment flow) cannot proceed
Non-blocked tasks: Tasks 10-12 (profile page) can continue
Options:
A. User provides Stripe test key → unblocks Tasks 7-9
B. Skip payment tasks, continue with profile → revisit later
C. Mock Stripe entirely → reduces test fidelity
Awaiting direction.