systematic-debugging
하는 일
이 스킬은 AI가 추측하지 않고 체계적으로 버그를 찾도록 구조화된 방법을 줍니다. 원인이 분명하지 않은 복잡한 문제를 다루는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓빠른 수정으로 해결되지 않고 버그가 계속 돌아올 때.
- ✓코드를 바꾸기 전에 문제의 근본 원인을 이해해야 할 때.
- ✓특정 환경에서만 문제가 나타나서 범위를 좁혀야 하는 경우.
스킬 링크
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/systematic-debugging/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 로그인 오류는 가끔만 발생합니다. 무언가를 바꾸기 전에 단계별로 디버깅해서 진짜 원인을 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 먼저 AI가 문제를 안정적으로 재현하도록 합니다. 그다음 원인이 어디서 오는지 좁히고, 다섯 번의 왜로 근본 원인을 추적하며, 마지막으로 수정이 제대로 작동하는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Systematic Debugging
Source: obra/superpowers
Overview
This skill provides a structured approach to debugging that prevents random guessing and ensures problems are properly understood before solving.
4-Phase Debugging Process
Phase 1: Reproduce
Before fixing, reliably reproduce the issue.
## Reproduction Steps
1. [Exact step to reproduce]
2. [Next step]
3. [Expected vs actual result]
## Reproduction Rate
- [ ] Always (100%)
- [ ] Often (50-90%)
- [ ] Sometimes (10-50%)
- [ ] Rare (<10%)
Phase 2: Isolate
Narrow down the source.
## Isolation Questions
- When did this start happening?
- What changed recently?
- Does it happen in all environments?
- Can we reproduce with minimal code?
- What's the smallest change that triggers it?
Phase 3: Understand
Find the root cause, not just symptoms.
## Root Cause Analysis
### The 5 Whys
1. Why: [First observation]
2. Why: [Deeper reason]
3. Why: [Still deeper]
4. Why: [Getting closer]
5. Why: [Root cause]
Phase 4: Fix & Verify
Fix and verify it's truly fixed.
## Fix Verification
- [ ] Bug no longer reproduces
- [ ] Related functionality still works
- [ ] No new issues introduced
- [ ] Test added to prevent regression
Debugging Checklist
## Before Starting
- [ ] Can reproduce consistently
- [ ] Have minimal reproduction case
- [ ] Understand expected behavior
## During Investigation
- [ ] Check recent changes (git log)
- [ ] Check logs for errors
- [ ] Add logging if needed
- [ ] Use debugger/breakpoints
## After Fix
- [ ] Root cause documented
- [ ] Fix verified
- [ ] Regression test added
- [ ] Similar code checked
Common Debugging Commands
# Recent changes
git log --oneline -20
git diff HEAD~5
# Search for pattern
grep -r "errorPattern" --include="*.ts"
# Check logs
pm2 logs app-name --err --lines 100
Anti-Patterns
❌ Random changes - "Maybe if I change this..." ❌ Ignoring evidence - "That can't be the cause" ❌ Assuming - "It must be X" without proof ❌ Not reproducing first - Fixing blindly ❌ Stopping at symptoms - Not finding root cause
자주 묻는 질문
네 단계는 무엇인가요?
재현, 범위 좁히기, 근본 원인 이해, 수정과 검증입니다.
버그를 왜 먼저 재현해야 하나요?
추측으로 수정하지 않도록 문제를 안정적으로 재현해야 한다고 스킬이 설명합니다.
회귀 테스트가 필요한가요?
네. 수정 검증 체크리스트에는 버그가 다시 생기지 않도록 테스트를 추가하는 항목이 있습니다.
상세 정보
작성자의 원본 설명
4-phase systematic debugging methodology with root cause analysis and evidence-based verification. Use when debugging complex issues.
repo: vudovn/ag-kit
인기도
- GitHub 스타
- 8.2k
- 순위
- #12541
- 라이선스
- MIT
- 업데이트
- 2026. 10. 18.
댓글
- …
이 저장소의 다른 스킬
batch-operations
8.2k에이전트가 함수 이름 바꾸기나 오래된 import 교체처럼 같은 변경을 여러 파일에 한꺼번에 적용하도록 돕습니다.
brainstorming
8.2k에이전트가 새로운 것이나 복잡한 것을 만들기 전에 명확한 질문을 하도록 가르쳐 목표를 먼저 이해하게 합니다.
code-review-checklist
8.2k에이전트에게 정확성, 보안, 성능, 테스트, 문서를 검토하는 체크리스트를 주고, AI 관련 위험도 포함합니다.
code-review-graph
8.2k에이전트가 구조 지도를 이용해 큰 프로젝트의 코드를 검토하도록 돕고, 변경과 관련된 파일만 읽게 합니다.