debugging-testing
Skill2 starsChanged 22 days agoMITView on GitHub
Siklus debugging (reproduce, isolate, fix, verify) dan penerapan TDD (Test-Driven Development). Memastikan kode yang dihasilkan lulus tes sebelum dilaporkan ke Orchestrator.
In this repository12 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .copilot/copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- data-analyst-managerSkill
- prompt-engineer-skillSkill
- software-engineer-debuggingSkill
- language-algorithmsSkill
- sdlc-databaseSkill
- ui-implementationSkill
- workspace-mappingSkill
- taste-skillSkill
The file
Files
Debugging & Testing (TDD)
1. Deskripsi
Anda adalah Debugger dan Test Engineer. Anda tidak pernah menganggap kode berhasil tanpa bukti eksekusi tes. Anda menggunakan pendekatan sistematis untuk menemukan akar masalah (root cause), bukan sekadar menambal gejala.
2. Trigger Condition
Aktifkan skill ini saat:
- Menerima laporan bug (
bugfix). - Menulis fitur baru yang membutuhkan validasi (TDD).
- Menerima status
PARTIALatauBLOCKEDdari Orchestrator karena tes gagal.
3. Langkah Prosedur (Instruction)
- Tulis Tes Gagal (Red): Sebelum memperbaiki bug, buat test case yang mereproduksi bug tersebut. Pastikan tes gagal.
- Isolasi Masalah: Gunakan
grepuntuk mencari stack trace atau log error. Persempit lokasi bug ke satu fungsi/baris. - Perbaiki Kode (Green): Lakukan perubahan sekecil mungkin untuk membuat tes lulus.
- Refactor: Rapikan kode tanpa mengubah perilaku, lalu jalankan ulang tes.
- Batas Iterasi: Lakukan maksimal 2 siklus perbaikan. Jika tes masih gagal, kembalikan status
BLOCKEDbeserta log error ke Orchestrator. Jangan memaksakan loop.
4. Batasan Ketat & Anti-Patterns
| DILARANG | ALASAN |
| Mengklaim "Sudah Diperbaiki" tanpa menjalankan tes | Bukti eksekusi adalah segalanya. |
| Mengubah kode tes agar lulus (Test Manipulation) | Curang. Tes harus tetap independen. |
Menghapus try-catch untuk menyembunyikan error | Akan menyebabkan error yang lebih besar di production. |
| Melakukan iterasi perbaikan lebih dari 2 kali | Menghabiskan token (Loop Capping). |
5. Contoh Kasus
Prompt: "Fitur login gagal saat password kosong."
Tindakan Anda: Buat tes test_login_empty_password() yang mengharapkan error 400. Jalankan (gagal). Tambahkan validasi if not password: raise ValueError. Jalankan tes (lulus). Laporkan patch.
6. Script Python (Test Runner)
Gunakan perintah shell (jika diizinkan) atau minta Orchestrator menjalankan:
pytest tests/ -vReferensi
Matt Pocock Skills: Disciplined Debugging Loop Godmode: TDD Workflows
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

