agents
7. subagent-driven-development: Require Skills Reading for Test Subagents
**Add to prompt template when task involves testing:** ```markdown BEFORE writing any tests: 1. Read testing-anti-patterns skill: Use Skill tool: superpowers:testing-anti-patterns 2. Apply gate functions from that skill when: - Writing mocks - Adding methods to production classes - Mocking dependencies This is NOT optional. Tests that violate anti-patterns will be rejected in review. ``` **Why this works:** Ensures skills are actually used, not just exist. **Trade-off:** Adds time to each task, but prevents entire classes of bugs. ---
← 返回教程列表
AI8899 · 内容仅供学习参考