systematic-debugging
Fungsinya
Tool ini membantu menemukan penyebab sebenarnya dari masalah teknis, seperti error program atau perilaku yang tidak sesuai harapan. Tool memandu Anda untuk menyelidiki dulu sebelum memperbaiki, agar solusinya permanen, bukan sekadar sementara.
Kapan dipakai
- βSaat program menampilkan error yang tidak Anda pahami.
- βJika Anda sudah berkali-kali mencoba memperbaiki sesuatu tanpa hasil.
- βDalam situasi darurat, ketika godaan untuk memakai perbaikan cepat sangat besar.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/systematic-debugging/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βKode saya memunculkan error aneh saat saya mencoba menyimpan file, apa yang harus saya lakukan untuk menyelidiki akar masalahnya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool menyarankan langkah-langkah yang terstruktur: pertama, pahami error dan cara mereproduksinya; lalu, periksa apa yang berubah belakangan ini. Baru setelah itu, Anda menyusun hipotesis dan menguji perubahan sekecil mungkin untuk memastikan penyebabnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Systematic Debugging
Overview
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Core principle: Investigate before guessing and separate a verified repair from a temporary mitigation. During an incident, an authorized rollback or containment action may restore service while root-cause work continues.
Violating the letter of this process is violating the spirit of debugging.
The Iron Law
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Start with the observable failure and the smallest useful evidence check. Label any emergency mitigation explicitly and preserve evidence for the later root-cause investigation.
When to Use
Use for ANY technical issue:
- Test failures
- Bugs in production
- Unexpected behavior
- Performance problems
- Build failures
- Integration issues
Use this ESPECIALLY when:
- Under time pressure (emergencies make guessing tempting)
- "Just one quick fix" seems obvious
- You've already tried multiple fixes
- Previous fix didn't work
- You don't fully understand the issue
Don't skip when:
- Issue seems simple (simple bugs have root causes too)
- You're in a hurry (rushing guarantees rework)
- Manager wants it fixed NOW (systematic is faster than thrashing)
The Four Phases
You MUST complete each phase before proceeding to the next.
Phase 1: Root Cause Investigation
BEFORE attempting ANY fix:
Read Error Messages Carefully
- Don't skip past errors or warnings
- They often contain the exact solution
- Read stack traces completely
- Note line numbers, file paths, error codes
Reproduce Consistently
- Can you trigger it reliably?
- What are the exact steps?
- Does it happen every time?
- If not reproducible β gather more data, don't guess
Check Recent Changes
- What changed that could cause this?
- Git diff, recent commits
- New dependencies, config changes
- Environmental differences
Gather Evidence in Multi-Component Systems
WHEN system has multiple components (CI β build β signing, API β service β database):
BEFORE proposing fixes, add diagnostic instrumentation:
For EACH component boundary: - Record allowed field names, sizes, statuses and correlation IDs - Redact secrets and private payloads before logging - Verify environment/config propagation - Check state at each layer Run once to gather evidence showing WHERE it breaks THEN analyze evidence to identify failing component THEN investigate that specific componentExample (multi-layer system):
# In each relevant process, report presence only; never dump secret values. if [ -n "${IDENTITY:-}" ]; then echo 'IDENTITY is set' else echo 'IDENTITY is absent or empty' fi # Read-only validation of an already-built artifact, when available. codesign --verify --verbose=2 "$APP"Interpretation: Compare presence checks at the actual workflow/build boundaries. Artifact verification does not itself prove that the correct signing identity propagated.
Trace Data Flow
WHEN error is deep in call stack:
See
root-cause-tracing.mdin this directory for the complete backward tracing technique.Quick version:
- Where does bad value originate?
- What called this with bad value?
- Keep tracing up until you find the source
- Fix at source, not at symptom
Phase 2: Pattern Analysis
Find the pattern before fixing:
Find Working Examples
- Locate similar working code in same codebase
- What works that's similar to what's broken?
Compare Against References
- If implementing pattern, read reference implementation COMPLETELY
- Don't skim - read every line
- Understand the pattern fully before applying
Identify Differences
- What's different between working and broken?
- List every difference, however small
- Don't assume "that can't matter"
Understand Dependencies
- What other components does this need?
- What settings, config, environment?
- What assumptions does it make?
Phase 3: Hypothesis and Testing
Scientific method:
Form Single Hypothesis
- State clearly: "I think X is the root cause because Y"
- Write it down
- Be specific, not vague
Test Minimally
- Make the SMALLEST possible change to test hypothesis
- One variable at a time
β¦
Pertanyaan umum
Mengapa saya tidak bisa langsung mencoba perbaikan cepat?
Perbaikan cepat bisa menutupi masalah sebenarnya, memunculkan bug baru, dan pada akhirnya memakan lebih banyak waktu. Menyelidiki akar masalah memastikan solusi yang tahan lama.
Apa itu 'root cause'?
Itu adalah alasan mendasar mengapa suatu masalah terjadi. Alih-alih hanya mengatasi gejalanya (error yang terlihat), root cause adalah masalah asli yang jika diperbaiki, mencegah error itu terjadi lagi.
Bagaimana jika masalahnya melibatkan beberapa bagian dari sebuah sistem?
Tool meminta Anda memeriksa komunikasi antarbagian, dengan mencatat informasi di setiap 'boundary' (titik tempat satu bagian berkomunikasi dengan bagian lain) untuk melihat di mana kegagalan pertama kali terjadi.
Detail
Deskripsi asli dari pembuat
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5918
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.