Add, update, or repair tests for behavior, regressions, and test-first development. Use when the user asks for tests, TDD, red-green-refactor, regression coverage, test repair, or behavior-driven implementation.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Add, update, or repair tests for behavior, regressions, and test-first development. Use when the user asks for tests, TDD, red-green-refactor, regression coverage, test repair, or behavior-driven implementation.
Test
Input
A behavior, bug, module, feature, failing test, or uncovered path to test.
Use explicit input first; otherwise infer from context, recent edits, selected files, or branch.
Safest default: identify public behavior and highest-risk paths before writing tests.
Workflow
Define behavior. Identify the public interface and the behavior that matters to the user.
Pick the first slice. Choose one narrow behavior that proves the path end to end.
Write or repair tests. Prefer behavior-facing tests over implementation-detail tests.
Use TDD when requested. Red: write one failing test. Green: write the smallest implementation that passes. Repeat by slice.
Refactor when green. Simplify duplication, names, and module shape after tests pass.
Validate. Run relevant tests, typecheck, lint, or build commands.
Output
Behaviors covered
Tests added, changed, or repaired
Implementation changed, if any
Validation run
Remaining test gaps
Guardrails
Do not write all tests before all implementation when using TDD.
Prefer tests through public interfaces over private functions and internal mocks.