인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
개발 및 엔지니어링 · SKILL.md

tdd

tdd

Use before writing any implementation code — enforces RED-GREEN-REFACTOR cycle.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: tdd description: Use before writing any implementation code — enforces RED-GREEN-REFACTOR cycle.

Test-Driven Development

The Cycle

RED → GREEN → REFACTOR

Never skip RED. Never write code before a failing test exists.

Steps

  1. Write the failing test — specific, tests one behavior
  2. Run it and confirm it fails — with the right error message
  3. Write minimal code to make it pass — no more than needed
  4. Run it and confirm it passes
  5. Refactor if needed — tests still pass after refactor
  6. Commit — small, frequent commits

Anti-Patterns to Avoid

  • Writing implementation before tests
  • Tests that pass without any implementation (false green)
  • Testing implementation details instead of behavior
  • One giant test instead of small focused tests
  • Skipping the refactor step

Verification Command

Always show the exact command to run tests and expected output at each RED/GREEN step.

저장한 Skills