microsoft/test-discipline
Update tests when changing APIs — no exceptions
This is a copy. The original lives at microsoft/generative-ai-for-beginners-dotnet-test-discipline.
npx skills add https://github.com/microsoft/waza --skill test-discipline
When APIs or public interfaces change, tests must be updated in the same commit. When test assertions reference file counts or expected arrays, they must be kept in sync with disk reality. Stale tests block CI for other contributors.
EXPECTED_FEATURES, EXPECTED_SCENARIOS), they must match the actual files on disk✓ Correct:
distributed-mesh.md to features/ → added 'distributed-mesh' to EXPECTED_FEATURES array✗ Incorrect:
built-in-roles.md → left EXPECTED_FEATURES at old count (PR blocked)Take microsoft/test-discipline from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.