← 教程列表
实战📊 中级🛠 AI赚钱

7. subagent-driven-development: Require Skills Reading for Test Subagents

📅 2026/6/14 15:43:48⏱ 约 5 分钟阅读👁 9 阅读

**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 · 内容仅供学习参考