tdd-workflow
Skill0 starsChanged 7 months agoApache-2.0View on GitHub
새 기능 또는 버그 수정을 테스트 주도로 진행. red-green-refactor 사이클, 테스트가 명세 역할을 하는 패턴, 실효성 검증(mutation 미니버전)까지. 사용자가 "TDD로", "테스트 먼저", 또는 명확한 동작 명세가 필요한 작업을 요청할 때 사용.
148 other projects use a version of this.
Adopted by
Most recently taken up by
- KevinLoichot/everything-claude-codetheir own version, first seen Nov 29, 2026
- vjrivmon/Setup-Software-IAtheir own version, first seen Nov 29, 2026
- aayushsoam/clawbot-plustheir own version, first seen Nov 29, 2026
- multiplex-ai/muggle-ai-teamstheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- iamaanahmad/everything-antigravitytheir own version, first seen Nov 29, 2026
Used with
Projects with it also use orch-pipeline, ralphinho-rfc-pipeline and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
renepfSkillorch-pipeline
Shared orchestration engine for the orch-* skill family. Defines the gated Research-Plan-TDD-Review-Commit pipeline, the size classifier, the agent map, and the two human gates that the orch-* operation skills delegate to. Not usually invoked directly.
Also in 5 projects that use this
junimnjwSkillralphinho-rfc-pipeline
RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.
Also in 18 projects that use this
loulanyueSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 14 projects that use this
RojiosSkilldart-flutter-patterns
Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.
Also in 10 projects that use this
royaluniondesign-sysSkillcontent-hash-cache-pattern
Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
Also in 23 projects that use this
HABUBUSSSkillproject-guidelines-example
Also in 20 projects that use this
Other versions148 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 148
- affaan-m/ECC★ 246ksame name
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- xu-xiang/everything-claude-code-zh★ 1.9ksame name
- loulanyue/awesome-claude-notes★ 272same name
- ab604/claude-code-r-skills★ 202same name
- cloudnative-co/claude-code-starter-kit★ 153same name
- xenitV1/Antigravity-Workflows★ 130same name
- cohen-liel/hivemind★ 108same name
- travisjneuman/.claude★ 106same name
138 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- landing/llms.txtllms.txt
- a11y-auditSkill
- add-feature-flagSkill
- db-migration-safelySkill
- generate-kormarcSkill
- incident-responseSkill
- payment-handlingSkill
The file
Files
TDD Workflow
테스트가 코드보다 먼저 명세 역할을 하게 하는 절차. AI가 코드 짜기 전에 동작이 무엇이어야 하는지 강제로 정의하게 만듭니다.
사이클: Red → Green → Refactor
Red: 실패하는 테스트 작성
- 한 번에 하나의 동작만 테스트
- 가장 작은 케이스부터 (happy path)
- 명확한 입력·출력 명시
- 실행 → 빨간색 (실패) 확인
테스트가 통과하면 잘못 작성된 것:
- 이미 구현되어있다 (다른 케이스 필요)
- 테스트가 검증을 안 한다 (assertion 없음)
Green: 가장 작은 코드로 통과
- 하드코딩이라도 OK (다음 테스트가 강제로 일반화시킴)
- 다른 테스트 깨뜨리지 않기
- 통과시키는 데 집중, 우아함은 다음 단계
Refactor: 통과 상태에서 정리
- 중복 제거
- 이름 개선
- 함수 분리
- 각 변경 후 전체 테스트 재실행 (회귀 방지)
테스트 작성 순서
1. 단순한 happy path (1개 입력 → 1개 출력)
2. 두 번째 happy path (다른 입력)
3. 경계값 (빈, 0, 1, 매우 큰 값)
4. 에러 케이스 (잘못된 입력 → 명확한 에러)
5. 통합 (DB·API·외부 서비스와의 상호작용)각 단계마다 사이클: Red → Green → Refactor.
좋은 테스트의 특징
- 이름이 명세:
should_return_403_when_user_is_not_admin(X:test_auth) - 하나의 행동 검증: 한 테스트 = 한 assertion 그룹
- 독립: 다른 테스트 결과·실행 순서에 영향 없음
- 빠름: 단위 테스트 < 100ms
- 결정적: 시간·랜덤·외부 상태 모킹
실효성 검증 (Mutation Mini)
테스트 작성 후 다음 1-2분 투자:
- 코드 한 줄 의도적으로 깨뜨림:
return x + y→return x - yif (a > b)→if (a >= b)for i in range(n)→for i in range(n-1)
- 테스트 실행 → 잡으면 OK, 통과해버리면 그 테스트 부족함
- 원복 후 테스트 보강
이걸 안 하면 "통과하지만 아무것도 검증 안 하는 테스트"가 누적됨.
모킹 가이드
모킹 대상: DB, HTTP API, 파일 시스템, 시간, 랜덤 모킹 안 함: 같은 모듈 내 함수, 순수 함수
테스트가 모킹으로 가득하면 설계가 잘못됐다는 신호. 의존성 주입 고려.
TDD가 안 어울리는 경우
- UI/디자인 탐색 (먼저 만들고 나중에 테스트)
- 한 번 쓰고 버릴 스크립트
- 외부 시스템 통합 (먼저 작동시키고 후에 mock으로 회귀 테스트)
이 경우엔 통합 테스트만 짧게 작성.
출력 (이 skill 완료 시)
- 추가된 테스트 목록 (이름만)
- 커버리지 변화
- mutation 검증 결과 ("3개 케이스 중 3개 잡힘")
- 다음에 작성할 테스트 후보 (선택)
자주 하는 실수
- 한 번에 여러 동작 테스트 → 디버깅 어려움
- 구현 디테일 테스트 (private 함수, 내부 상태) → refactor 깨짐
- 모킹 과도 → 진짜 통합 깨져도 통과
- 테스트 데이터 하드코딩 → 변경 시 다 깨짐 → factory/builder 패턴
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

