一键导入
alloy-tdd
Use before implementing new behavior or behavior-sensitive changes. Enforces red-green-refactor and records gate proof in progress.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use before implementing new behavior or behavior-sensitive changes. Enforces red-green-refactor and records gate proof in progress.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use only when the user explicitly allows bounded unattended execution of an approved Alloy task.
Use when encountering a bug, regression, failing command, or unexpected behavior before attempting a fix.
Use before planning when requirements are ambiguous, large, user-visible, or likely to cause rework unless decisions are locked.
Use when implementing an approved Alloy plan. Maintains progress.md, enforces TDD/debug discipline, and stops on blocked gates.
Use when a task needs broad source understanding before planning or execution.
Use when turning context or a clear user request into an implementation-ready plan with acceptance criteria, files, commands, gates, risks, and handoff.
| name | alloy-tdd |
| description | Use before implementing new behavior or behavior-sensitive changes. Enforces red-green-refactor and records gate proof in progress.md. |
Use this skill whenever a change can affect behavior, contracts, generated output, install behavior, command routing, or user-visible documentation semantics.
No implementation claim without fresh verification proof from this session.
Prefer an automated failing test. When a traditional test is not practical, use the strongest equivalent guard:
Record why the guard is acceptable.
plan.md and identify the acceptance criterion under work.progress.md with the RED command, failure summary, and file path.Use:
## Gate
- [x] tdd_red - <timestamp> | <command> failed as expected
- [x] green - <timestamp> | <command> passed
## Findings
- RED proof:
- GREEN proof:
- Files:
Do not check verified here unless the full task verification command also passed.
Report acceptance criterion, RED command/result, GREEN command/result, files changed, and any remaining verification needed.
This skill is a lean alloy-specific overview. When you need the full TDD philosophy, read these files bundled next to this SKILL.md (they ship with the skill):
references/tests.md — integration-style testing; what to test vs. what not toreferences/mocking.md — mock only at system boundaries, never your own classesreferences/deep-modules.md — small interface, deep implementationreferences/interface-design.md — designing clean interfacesreferences/refactoring.md — refactoring disciplineSources (fusionType inline-append): obra/superpowers v5.1.0 test-driven-development + mattpocock/skills engineering/tdd. Verbatim upstream copies also live under vendor/skills/superpowers/5.1.0/test-driven-development/ in the Alloy source repo.