This skill should be used when the user asks to "debug-detective,디버그탐정,체계적디버깅". Systematic debugging with reproduce-isolate-fix-verify loop
From tenetxnpx claudepluginhub wooo-jin/tenetx격리 (Isolate)
# git bisect로 버그 도입 커밋 이진 탐색
git bisect start
git bisect bad # 현재 커밋은 버그 있음
git bisect good <마지막_정상_sha> # 정상 커밋 지정
# Git이 자동으로 중간 커밋 체크아웃
# 테스트 후 good/bad 판정 반복
git bisect run npm test # 자동화 가능
git bisect reset # 완료 후 원상복구
로그 분석 패턴
// 구조화 로그로 맥락 추가
logger.error('결제 처리 실패', {
userId, orderId, amount,
stack: err.stack,
timestamp: new Date().toISOString(),
});
// 조건부 디버그 로그 (프로덕션 영향 최소화)
if (process.env.DEBUG_PAYMENT) {
console.log('[DEBUG]', JSON.stringify({ state, payload }, null, 2));
}
수정 (Fix)
검증 (Verify)
/tenetx:debug-detective 로그인 후 가끔 401 에러가 발생함 (재현율 20%)/tenetx:debug-detective 최근 배포 후 결제 API 응답 시간이 3배 증가/tenetx:debug-detective TypeScript 컴파일은 되는데 런타임에서 undefined 에러$ARGUMENTS