一键导入
tdd-workflow
Test-driven development discipline for the factory phase. Tests before code, coverage floor, edge cases, boundaries.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test-driven development discipline for the factory phase. Tests before code, coverage floor, edge cases, boundaries.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Dispatch code review to a language-specific reviewer agent based on the active product's primary language. Falls back silently if no agent exists for the language. Invoked from 02c-code-review.md.
4-phase retrieval loop — dispatch broad, score relevance 0-1, refine criteria, loop up to N cycles. Use when a subagent or phase needs scoped context from a large source (codebase, catalogue, web).
Use when creating or updating Excalidraw diagrams — writes a Python generator script following design rules, renders to PNG, reviews visually, and iterates fixes
基于 SOC 职业分类
| name | tdd-workflow |
| description | Test-driven development discipline for the factory phase. Tests before code, coverage floor, edge cases, boundaries. |
| origin | ECC |
| tier | global |
| stage | ["loop"] |
| status | active |
Borrowed from ECC's tdd-workflow skill. Rouge's factory phase already does TDD-like work; this skill formalizes the discipline so it's versionable, measurable, and consistent.
Every story in the building phase. Every fix story from change-spec-generation.
Write tests for acceptance criteria first. Run them — they must fail initially (proves they actually test the thing). Then implement.
In 01-building.md, activate this skill at the start of each story. Reference by name:
Follow
library/skills/tdd-workflowfor this story.
Pre-commit hook scripts/hooks/quality-gate.js (see Phase 2) runs npm test + coverage check before allowing git commit. Exit code 1 blocks.