bug-diagnose-and-root-cause-and-fix
버그 진단 및 근본 원인 찾기
Également disponible depuis: 727474430
소프트웨어 버그는 개발자의 시간을 낭비합니다. 이 기술은 체계적인 근본 원인 분석을 제공하여 오류가 발생하는 정확한 위치와 이유를 식별합니다. 특정 코드 위치, 단계별 수정 지침 및 여러 해결 옵션이 포함된 상세한 진단 보고서를 제공합니다.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "bug-diagnose-and-root-cause-and-fix". My React app crashes with 'Cannot read property map of undefined' when I click the submit button
Résultat attendu:
- Problem: Data fetching returns undefined before component renders
- Location: src/components/Form.jsx:47
- Root cause: The async data load completes after initial render
- Fix: Add conditional rendering check before accessing data
- Step 1: Check if data exists before calling .map()
- Step 2: Add loading state indicator
- Verify: Run app and test submit button functionality
Utilisation de "bug-diagnose-and-root-cause-and-fix". npm test fails with 'Expected 2 to equal 3' in my user validation test
Résultat attendu:
- Problem: Test assertion fails on user validation function
- Location: src/utils/validation.js:12
- Root cause: The validation logic returns false for valid email format with subdomain
- Fix: Update regex pattern to allow subdomain in email
- Step 1: Modify the email regex pattern in validation.js
- Step 2: Add test case for subdomain email
- Verify: Run tests to confirm all assertions pass
Audit de sécurité
SûrPure documentation skill with no executable code. All static findings are false positives: Chinese text misidentified as cryptographic algorithms, markdown formatting misidentified as shell execution, and normal JSON strings misidentified as obfuscation. The skill only provides guidance through read-only analysis of error messages and code review.
Facteurs de risque
🌐 Accès réseau (1)
⚙️ Commandes externes (4)
Score de qualité
Ce que vous pouvez construire
런타임 오류 수정
정확한 코드 위치 식별과 함께 애플리케이션 충돌 및 런타임 예외 진단
테스트 실패 조사
코드 버그인지 환경 문제인지 확인하기 위해 테스트 실패 분석
배포 문제 디버깅
CI/CD 파이프라인에서 빌드 실패 및 배포 문제의 근본 원인 식별
Essayez ces prompts
I got this error: [paste error message]. Help me understand what caused it and how to fix it.
My test [test name] is failing with: [error details]. The test file is at [path]. Review the test and source code to find the root cause.
Production is showing [symptom]. Error logs indicate: [logs]. The relevant code is in [files]. Find the root cause and suggest a fix.
I have a bug where [description]. It happens when [reproduction steps]. I checked [already-tried fixes]. Use git blame to check recent changes and help identify what caused this regression.
Bonnes pratiques
- 더 빠른 진단을 위해 스택 추적을 포함한 완전한 오류 메시지 제공
- 버그를 재현하기 위한 정확한 단계 포함
- 관련 파일 경로 및 최근 코드 변경 사항 공유
Éviter
- 오류 세부 정보를 공유하지 않고 수정 요청
- 스킬이 코드를 직접 수정할 것으로 기대
- 진단 단계를 건너뛰고 해결책만 요청