diagnostic-reasoning
Fungsinya
Skill ini adalah metode langkah demi langkah untuk memahami bug yang dilaporkan sebelum ada yang mencoba memperbaikinya. Skill ini untuk orang yang menginginkan perbaikan bug yang andal, bukan tebakan.
Kapan dipakai
- ✓Saat seseorang melaporkan bug dan tidak ada yang bisa memastikan apa pemicunya.
- ✓Saat laporan diagnostik menunjuk sebuah penyebab yang ingin Anda periksa sebelum bertindak.
- ✓Saat bug hanya muncul kadang-kadang dan Anda ingin tahu alasannya.
Link skill
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/diagnostic-reasoning/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
“Pengguna bilang halaman checkout kadang rusak. Bantu saya mencari tahu apa yang sebenarnya memicunya sebelum kita mengubah apa pun.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent pertama-tama mereproduksi masalahnya seperti pengguna sungguhan mengalaminya. Setelah itu agent memisahkan tiga hal: apa yang memulai masalah, apa yang menyembunyikan atau memperlihatkannya, dan apa yang benar-benar dilihat pengguna.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
diagnostic-reasoning
Use this procedure before scoping a reported bug and before acting on a diagnostic report. This skill is the single owner of Firstmate's bug-diagnosis reasoning procedure. Firstmate applies it when briefing delegated investigation and evaluating the resulting evidence, without taking over project-specific investigation itself.
Establish the observed behavior
Start from the end user's experience rather than an internal error string or an implementation hypothesis. Require an end-to-end reproduction aligned with the real user path whenever it is feasible and safe. If a faithful reproduction is not feasible, record the exact limitation and use the closest representative path without presenting it as equivalent evidence. Capture the expected behavior, observed behavior, setup, inputs, and repeatability before assigning a cause.
Separate these three facts explicitly:
- The initiating trigger is the event, input, or transition that starts the faulty behavior.
- The masking condition is the independent state, environment, timing, cache, configuration, or path difference that hides or exposes the fault.
- The visible symptom is what the end user or operator can actually observe.
Do not collapse those facts into one label. A masking condition may explain why a fault appears only sometimes without being the initiating cause, and the visible symptom may be several layers downstream from both.
Test the causal explanation
Inspect the failing path and a proven path where the intended behavior is known to work. Compare their inputs, state transitions, dependencies, timing, and control flow to find the earliest meaningful divergence. Inspect relevant history, including blame, commits, migrations, and prior implementations, when it can explain why the paths diverged or which invariant was intended. Do not treat the most recent nearby change as causal without evidence.
Identify the smallest counterfactual that should change the outcome if the leading explanation is true. Change one condition at a time where practical, and record whether the symptom appears, disappears, or remains unchanged. Seek disconfirming evidence deliberately: name what observation would falsify the leading explanation, run that check when feasible, and retain contradictory results instead of explaining them away. Compare the final explanation against the proven path and show why the proposed causal boundary accounts for both the failure and the success.
Scope and act on the result
A diagnosis brief should ask for the reproduction, trigger/mask/symptom separation, divergent and proven path comparison, relevant history, smallest counterfactual, and disconfirming evidence in the report. A diagnostic report should distinguish observed facts from hypotheses and state any unresolved uncertainty that could change the recommended scope. Before acting on the report, verify that its claimed cause explains the end-user reproduction and the proven path without relying on an untested masking condition. If a load-bearing element is missing, route a focused follow-up investigation instead of treating confidence or implementation detail as proof. A diagnosis or implementation-ready recommendation is evidence, not authorization to change code. Implementation still requires the captain's request or another existing lifecycle authority, and the reproduction should become the regression test when a fix is authorized.
Pertanyaan umum
Mengapa tidak memperbaiki pesan galat pertama?
Pesan galat mungkin bukan penyebab sebenarnya, sehingga skill dimulai dari apa yang dialami pengguna.
Bagaimana jika saya tidak bisa mereproduksi bug?
Agent mencatat batasan itu dan memakai uji aman terdekat, tanpa mengklaim bahwa hasilnya sama dengan kasus nyata.
Apakah ini berlaku untuk semua jenis bug?
Metode ini ditulis secara umum, sehingga bisa dipakai untuk banyak jenis masalah yang dilaporkan.
Detail
Deskripsi asli dari pembuat
Load before scoping a reported bug and before acting on a diagnostic report.
repo: kunchenguid/firstmate
Popularitas
- Bintang GitHub
- 8.5k
- Peringkat
- #12433
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
afk
8.5kMemungkinkan agent Anda tetap bekerja saat Anda pergi, menyimpan keputusan untuk saat Anda kembali, dan mengirim ringkasan yang jelas ketika Anda kembali.
ahoy
8.5kMemungkinkan agent Anda memberi rekap singkat tentang apa yang terjadi di sesi dan memandu Anda melewati keputusan yang masih menunggu Anda.
ask-user-authority
8.5kMembantu agent Anda memutuskan sendiri pertanyaan tinjauan yang jelas sesuai rencana yang disepakati, dan bertanya kepada Anda hanya bila tidak jelas atau berisiko.
away-quiet-supervision
8.5kMenetapkan aturan keselamatan untuk mengawasi pekerjaan dalam mode away atau quiet, agar pesan tetap jelas dan keputusan yang butuh Anda ditahan.
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.