Langsung ke konten
Skillpedia
Pemrograman umum8.2k Β· #12541

systematic-debugging

Fungsinya

Skill ini memberi AI Anda cara terstruktur untuk melacak bug, alih-alih menebak. Skill ini untuk pengembang yang menghadapi masalah rumit yang penyebabnya belum jelas.

Kapan dipakai

  • βœ“Saat sebuah bug terus kembali setelah perbaikan cepat yang tidak berhasil.
  • βœ“Saat Anda perlu memahami penyebab utama masalah sebelum mengubah kode.
  • βœ“Saat sebuah masalah hanya muncul di beberapa lingkungan dan Anda perlu mempersempitnya.

Link skill

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/systematic-debugging/SKILL.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/systematic-debugging/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œGalat login ini hanya terjadi kadang-kadang. Debug langkah demi langkah dan temukan penyebab sebenarnya sebelum mengubah apa pun.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill meminta AI untuk lebih dulu mereproduksi masalah secara andal, mempersempit sumbernya, menelusuri penyebab utama dengan teknik five whys, lalu memastikan perbaikannya berhasil.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

Pertanyaan umum

Apa empat fasenya?

Reproduksi, isolasi, memahami penyebab utama, lalu memperbaiki dan memverifikasi.

Mengapa mereproduksi bug sebelum memperbaikinya?

Skill menyatakan bahwa masalah harus direproduksi secara andal terlebih dahulu, agar AI tidak menebak perbaikan.

Apakah perlu tes regresi?

Ya. Daftar periksa verifikasi perbaikan mencakup penambahan tes untuk mencegah bug kembali.

Detail

Deskripsi asli dari pembuat

4-phase systematic debugging methodology with root cause analysis and evidence-based verification. Use when debugging complex issues.

repo: vudovn/ag-kit

Popularitas

Bintang GitHub
8.2k
Peringkat
#12541
Lisensi
MIT
Diperbarui
18/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa