一键导入
team-implementation-guard
Use when implementing OpenSpec tasks, writing code, running tests, or fixing bugs. Guards TDD flow, execution modes, and spec compliance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementing OpenSpec tasks, writing code, running tests, or fixing bugs. Guards TDD flow, execution modes, and spec compliance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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 reviewing task breakdowns, checking dependency ordering, optimizing task granularity, or deciding whether to proceed to implementation.
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.
基于 SOC 职业分类
| name | team-implementation-guard |
| description | Use when implementing OpenSpec tasks, writing code, running tests, or fixing bugs. Guards TDD flow, execution modes, and spec compliance. |
Implementation must follow the approved OpenSpec scope. Code changes must be small, verifiable, and tied to a task.
PROJECT_DIR. No worktree, no path splitting. Update tasks.md at <PROJECT_DIR>/openspec/changes/<change-id>/tasks.md.Use this skill when:
Do NOT use this skill when:
team-openspec-guard)team-verification-guard)tasks.mdThe task loop is autonomous — after completing one task, immediately proceed to the next. The user has already authorized the full implementation by invoking the apply command. Do NOT pause between tasks asking "Continue?" — just report briefly and proceed.
For each task:
<PROJECT_DIR>/openspec/changes/<change-id>/tasks.md with [x] and verification resultTest-first is REQUIRED for:
Test-after is acceptable for:
Red-Green-Refactor cycle:
If test-first is impractical (e.g., UI changes), state the reason and provide an equivalent verification path:
- Before: current UI screenshot as baseline
- After: compare screenshot to confirm change
- Verification: playwright test tests/e2e/login.spec.ts
The execution mode is recommended by /team-plan based on task count and dependency graph (see team-planning-guard). At the start of /team-apply:
superpowers:subagent-driven-development skillsuperpowers:dispatching-parallel-agents skillParse tasks.md to build dependency graph:
Depends on fieldsUse a dedicated branch (<change-id>) for isolation when working on changes — NO worktree. Create/switch in step 1.1 of /team-apply. Branches prevent cross-change interference while keeping all files in one working directory (PROJECT_DIR).
Branches are merged and deleted in /team-archive. Do NOT manually delete branches before merging.
After all tasks complete, perform spec compliance review:
All completed tasks MUST record evidence:
Automated test:
- [x] 1.1 Create User model
- Verification: `pytest tests/models/test_user.py -v`
- Result: 8 passed in 1.5s
Manual test:
- [x] 2.1 Verify login flow
- Verification: Manual test
- Steps:
1. Open http://localhost:3000/login
2. Enter test@example.com / password123
3. Click login
- Result: Redirected to home page, username displayed
Build verification:
- [x] 3.1 Build check
- Verification: `npm run build`
- Result: Build completed in 12.5s, no errors
Task: Add GET /api/users/:id endpoint
1. Read task and spec delta
2. Define verification: `pytest tests/api/test_users.py::test_get_user_by_id -v`
3. Write tests first:
- test_get_existing_user
- test_get_nonexistent_user_returns_404
- test_get_user_unauthorized
4. Implement endpoint
5. Run tests: 3 passed
6. Update tasks.md
Task: Fix login timeout when password is wrong
1. Read bug report and current code
2. Write regression test: test_login_wrong_password_returns_immediately
3. Find root cause: bcrypt.compare timeout configuration
4. Fix: add timeout parameter
5. Run regression test: pass
6. Run full test suite: no new failures
7. Update tasks.md
Task: Add user model
Wrong: Also refactored the entire models/ directory, modified 3 unrelated files
Right: Only add the user model. If refactoring is needed, propose a separate task.
User: "Don't test, just tell me when done"
Wrong: AI says "Done" and marks task complete
Right: AI refuses, explains why verification is needed, offers shortest safe check
STOP and ask before continuing when:
| Mistake | Fix |
|---|---|
| "While I'm at it" refactoring | Only do what the current task requires |
| Continue after test failure | Investigate root cause first, then fix |
| Mark complete without evidence | Run verification command and record result |
| Implement something not in tasks.md | Stop, suggest updating OpenSpec |
| Skip testing when user says "don't test" | Refuse, provide shortest safe verification path |
| Pause between tasks to ask "Continue?" | Task loop is autonomous — just report and continue to next task |
When this skill fails, record in badCases/ directory:
See badCases/ for case history.