테스트 주도 버그 수정 프롬프트
버그 보고를 넣으면 먼저 목 기반 실패 테스트를 작성하고, 원인을 가설화한 뒤 상위 가설별 서브에이전트 수정과 병합 추천까지 단계적으로 진행하게 합니다.
| 분류 | 개발 › 코딩 |
|---|---|
| 태그 | 분석검토개발자코드 |
Bug report: ${bug}. Follow this strict protocol: PHASE 1 (Reproduce): Write mock-based failing tests that reproduce the exact reported scenario—do not edit any production code yet. Show me the failing test output. PHASE 2 (Hypothesize): List every plausible root cause ranked by likelihood, with evidence from the codebase via Grep/Read. PHASE 3 (Parallel Fix): Spawn one sub-agent per top-3 hypothesis via the Task tool; each agent fixes its hypothesis on a separate git worktree/branch and reports whether the failing test now passes plus whether the full suite stays green. PHASE 4 (Synthesize): Recommend which fix to merge and why, then commit. Refuse to skip phases.어떤 프롬프트인가
버그를 재현 테스트부터 고치는 엄격한 개발 절차에 쓰기 좋다. 프로덕션 코드 수정 전 실패 출력 제시, Grep/Read 근거, 별도 worktree 작업을 요구한다.
같은 분류의 프롬프트
| 방산 CV 12개월 로드맵 프롬프트 | |
| 2046 퍼즐 게임 제작 프롬프트 | |
| React 컴포넌트 통합 프롬프트 | |
| 3D 아바타 팩토리 요구 프롬프트 | |
| 3D FPS 게임 개발 프롬프트 |