본문으로 건너뛰기
cccskills
무료GitHub에 공개

tdd

Fire when creating or modifying test files. Enforces write-test-first discipline and correct framework selection per project layer.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Explore-Plan-Act TDD Workflow

When implementing any feature or bugfix, follow the Explore → Plan → Act discipline.

Process

1. EXPLORE — Investigate Before Coding

  • Read the codebase first — use Grep, Read, and LS to understand the current state
  • Trace the code path related to the change: entry points → dependencies → side effects
  • Check CLAUDE.md and relevant claude/*.md docs for domain-specific patterns
  • Identify existing tests in the area — understand what's already covered
  • Look for similar implementations elsewhere in the codebase to follow conventions
  • Output: Clear understanding of what exists, what patterns to follow, what constraints apply

2. PLAN — Design the Solution + Write Failing Tests

  • Design the solution approach based on what you explored
  • Document any assumptions or open questions
  • Write failing tests that describe the expected behavior BEFORE implementation
  • Each test should be specific and focused on one behavior
  • Run the tests and confirm they fail for the right reason
  • Consider edge cases: null/undefined, empty arrays, concurrent calls, boundary values
  • Output: Failing tests that serve as a specification for the implementation

3. ACT — Implement with TDD Cycle

  • Write the simplest code that makes the tests pass
  • Do not add code that isn't required by a failing test
  • Run the tests and confirm they pass
  • Refactor while keeping tests green — clean up, extract patterns, improve naming
  • Run all tests to ensure nothing breaks
  • Repeat for each component or behavior
  • Output: Working implementation with green tests

Testing Conventions

Framework per Layer

<!-- Populated by /bootstrap -->
  • Unit: none (syntax-check)
  • Integration: none (syntax-check)

What to Test

  • Every new branch/case in switch statements
  • Every guard condition
  • Every new field (cross-layer: DTO → backend → frontend)
  • Edge cases: null/undefined, empty arrays, concurrent calls

Code Style

  • Follow project formatter rules
  • Use descriptive test names: it('should <behavior> when <condition>')
  • Follow existing test patterns in the service being modified

⚠️ Gotchas (Common Failure Points)

  1. Don't mix test frameworks — check which framework the service uses before writing tests
  2. Stub keys must match actual exported function names — a typo'd key silently does nothing
  3. Missing fixture properties cause silent failures — always include ALL accessed properties
  4. Stubs without assertions are dead code — every stub must have a corresponding assertion
  5. Redirect large test output — command > claude/tasks/out.txt 2>&1; echo "EXIT=$?"

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ask

무료

Route a codebase question to the right tool — structural graph, semantic search, or risk analysis. Use when you need to find or understand code without knowing exact file names.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

bootstrap

무료

Auto-configure CLAUDE.md and claude/ knowledge docs for a new project. Use when setting up Brain Bootstrap in a new repository. Discovers the codebase, fills in templates, and writes project-specific configuration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

Use before any new feature, component, or behavioral change — when you need to explore requirements and design before writing code

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

careful

무료

Activate safety guards for the session. Use /careful before critical operations — blocks rm -rf, DROP TABLE, git push --force, kubectl delete namespace, docker system prune via PreToolUse hook.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

changelog

무료

Generate a user-facing changelog from git commits — categorize, filter noise, translate to user language. Runs in isolated fork context.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

Save session state before context gets full or before ending. Writes current task state, branch, and loaded docs to claude/tasks/todo.md so the next session can resume cleanly.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

brain-bootstrap/claude-code-brain-bootstrap112026년 4월 25일 업데이트

brain-bootstrap의 스킬 모두 보기

이 스킬의 문제 신고