Langsung ke konten
Skillpedia
Pemrograman umum70k · #3144

fix-root-cause

Fungsinya

Skill ini memandu debugging menuju penyebab nyata sebuah masalah, bukan tempat masalah pertama kali terlihat. Skill ini ditujukan untuk pengembang yang menginginkan perbaikan yang tetap bertahan.

Kapan dipakai

  • ✓Saat bug terus muncul kembali di tempat lain setelah tambalan cepat.
  • ✓Saat seseorang ingin menambahkan penjaga, percobaan ulang, atau solusi sementara untuk menyembunyikan error.
  • ✓Saat masalah hanya muncul setelah restart dan penyebabnya belum jelas.

Link skill

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/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/remotion-dev/remotion/blob/main/.agents/skills/fix-root-cause/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

“Setiap kali kami me-restart aplikasi, muncul error yang berbeda. Bisakah Anda menemukan penyebab sebenarnya, bukan menambal setiap gejalanya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mereproduksi masalah dan terus bertanya mengapa di setiap langkah sampai menemukan keputusan salah yang pertama. Lalu agent memperbaiki penyebab itu dan memeriksa pola yang sama di tempat lain.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Fix Root Causes

When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.

Why: A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.

Pattern:

  • Reproduce first.
  • Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
  • When stuck, instrument. Read the actual error and the actual state. Do not guess.
  • Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
  • When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
  • Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
  • If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
  • If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
Pertanyaan umum

Apa perbedaan antara gejala dan penyebab utama?

Gejala adalah tempat keadaan yang salah menjadi terlihat. Penyebab utama adalah tempat pertama kode melakukan sesuatu yang seharusnya tidak dilakukan.

Kapan penjaga merupakan perbaikan yang nyata?

Skill menyatakan penjaga adalah perbaikan hanya jika keadaan yang ditanganinya sah. Jika keadaan itu seharusnya tidak pernah ada, penjaga hanya menyembunyikan bug.

Bagaimana jika masalah hanya muncul setelah restart?

Skill menyarankan untuk mencurigai keadaan yang tersimpan terlebih dahulu, seperti file konfigurasi, cache, file kunci, dan data yang diserialisasi.

Detail

Deskripsi asli dari pembuat

Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.

repo: remotion-dev/remotion

Popularitas

Bintang GitHub
70k
Peringkat
#3144
Lisensi
—
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa