一键导入
team-planning-guard
Use when reviewing task breakdowns, checking dependency ordering, optimizing task granularity, or deciding whether to proceed to implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when reviewing task breakdowns, checking dependency ordering, optimizing task granularity, or deciding whether to proceed to implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when implementing OpenSpec tasks, writing code, running tests, or fixing bugs. Guards TDD flow, execution modes, and spec compliance.
Use when creating, reviewing, or updating OpenSpec proposals, designs, tasks, spec deltas, acceptance criteria, or archiving changes.
Use when diagnosing and fixing bugs, applying security patches, or making small enhancements with /team-repair. Guards DIVE protocol, dual-track closure, and evidence-driven repair.
Use when exploring requirements, doing deep design exploration, or brainstorming before proposing. Guards OpenSpec environment and brainstorm output location.
Use when implementing an approved OpenSpec change, progressing through tasks, updating task status, or continuing an incomplete implementation.
Use when retrospecting on AI collaboration, recording bad cases, updating skill rules, or managing skill versions.
| name | team-planning-guard |
| description | Use when reviewing task breakdowns, checking dependency ordering, optimizing task granularity, or deciding whether to proceed to implementation. |
Task breakdown must be granular enough and dependency-ordered so each task can be independently verified.
Use this skill when:
/team-plan task reviewDo NOT use this skill when:
team-openspec-guard)team-implementation-guard)After analyzing the dependency graph, recommend an execution mode:
| Condition | Mode | Why |
|---|---|---|
| Total tasks ≤ 3 | Inline | Small scope, one context is enough |
| Tasks > 3, all sequential dependencies | Subagent | Isolate context per task, main agent coordinates |
| Tasks > 3, has independent tasks (no mutual dependencies) | Parallel | Independent tasks can run concurrently |
Parallel safety check — only recommend Parallel when:
Write the recommendation into the plan review output. /team-apply will read and follow it.
| Task | Depends On | Depended By |
|------|------------|-------------|
| 1.1 Create data model | None | 1.2, 2.1 |
| 1.2 Implement DAO layer | 1.1 | 2.1, 2.2 |
| 2.1 Implement API layer | 1.1, 1.2 | 3.1 |
| 2.2 Implement business logic | 1.2 | 3.1 |
| 3.1 Integration tests | 2.1, 2.2 | None |
Check algorithm:
ASCII dependency graph:
1.1 ──► 1.2 ──► 2.1 ──► 3.1
│
└─► 2.2 ──► 3.1
- [ ] X.Y <Task title>
- Requirement: <requirement name or ID>
- Verification: `<command or manual scenario>`
- Estimate: <minutes>
- Depends on: <preceding task, if any>
Example:
## 1. Data Layer
- [ ] 1.1 Create User model with email verification fields
- Requirement: user-registration
- Verification: `pytest tests/models/test_user.py -v`
- Estimate: 30 min
- [ ] 1.2 Create password reset token model
- Requirement: password-reset
- Verification: `pytest tests/models/test_reset_token.py -v`
- Estimate: 25 min
- Depends on: 1.1
## 2. API Layer
- [ ] 2.1 Implement registration endpoint
- Requirement: user-registration
- Verification: `pytest tests/api/test_register.py -v`
- Estimate: 45 min
- Depends on: 1.1
- [ ] 2.2 Implement password reset flow
- Requirement: password-reset
- Verification: `pytest tests/api/test_password_reset.py -v`
- Estimate: 60 min
- Depends on: 1.2
## 3. Integration
- [ ] 3.1 End-to-end registration test
- Requirement: user-registration
- Verification: `pytest tests/e2e/test_registration_flow.py -v`
- Estimate: 30 min
- Depends on: 2.1
STOP and ask before continuing when:
| Mistake | Fix |
|---|---|
| Task "Implement authentication" | Split into model, API, tests subtasks |
| Verification "works correctly" | Write specific command like pytest tests/auth/ |
| Dependencies not marked | Add "Depends on: Task X" in description |
| Basic tasks skipped | Ensure models, config, dependencies come first |
When this skill fails, record in badCases/ directory:
See badCases/ for case history.