understand-issue
Fungsinya
Skill ini memandu penyelidikan yang cermat atas issue GitHub atau laporan bug. Ini untuk maintainer dan pengembang yang perlu tahu apa yang salah sebelum memperbaikinya.
Kapan dipakai
- āSaat Anda ingin memutuskan apakah bug yang dilaporkan itu nyata dan apa penyebabnya.
- āSaat sebuah utas issue memuat banyak teori dan Anda ingin jawaban yang jelas berdasarkan kode.
- āSaat Anda membutuhkan briefing singkat yang menyatakan apa yang harus diperbaiki dan di mana, sebelum pekerjaan dimulai.
Link skill
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-issue/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
āSelidiki issue GitHub ini, beri tahu saya apa yang sebenarnya menyebabkan bug, dan sarankan cara memperbaikinya.ā
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membentuk pendapatnya sendiri dari kode terlebih dahulu, memeriksa riwayat, menjalankan uji kecil jika berguna, lalu memberikan keputusan singkat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Understand Issue
Investigate the issue as a maintainer deciding what is actually wrong and what should happen next. Help the human understand it without turning the investigation into a walkthrough. Run uninterrupted to a concise front page, then stay available inside the goal until the human says the investigation is finished.
The issue follows ARGUMENTS: at the end of the objective. If absent, infer it from the conversation or the checked-out branch name (fix/1234, issue-567, gh-890). If no issue can be resolved and no bug is described, ask once.
What matters
- Independent model before the thread's theories. Understand the symptom and form your own hypothesis from the code before reading commenters' diagnoses, workarounds, or linked fix attempts. The gap between your model and theirs exposes anchoring in both directions.
- Depth proportional to stakes. Data loss, security, silent misbehavior, wide blast radius, and uncertainty determine how hard to lookānot a fixed checklist.
- Verify the diagnosis. Read code deeply and run the smallest useful probe. A diagnosis needs real evidence and pointers; a plausible story is not evidence.
- A verdict, not a survey. Say what the issue is and what causes it. Do not present a menu of candidates when the evidence supports one.
- Complete, not padded. Everything you established or still suspect is in the briefing; length follows from findings, never the other way around. Lead with what matters most and cut narration, not conclusions. Preserve supporting detail in one record file for follow-up questions.
Investigation record
Use one ignored file: .mastracode/scratch/issues/<owner>-<repo>-<n>.md. Never stage or commit it.
Start the record with a short Own model:
- the symptom as reported, in your words;
- how the relevant code currently works;
- your hypothesis for the cause;
- what evidence would confirm or kill it.
Append the investigation beneath it and leave it unchanged afterward. Capture decisive evidence as you work so it survives context compressionāa ledger, not command transcripts. Use references/templates.md as an example, not a schema.
1. Build your own model
Resolve the issue with the minimal recipe in references/recipes.md. The metadata tells you whether the thread has anything to anchor you: comment count and cross-referenced PRs.
If the thread has comments or linked PRs, form your model before reading them. Use only the issue title, body, reproduction, error text, and the current code on the default branch; do not consult mastra_expert or another source that may already hold a diagnosis. Other people's theories are cheap to read later and expensive to un-readāa maintainer's "I think it's X" tends to become the investigation. Write the model, then open the thread.
If the thread is empty, there is nothing to seal. Investigate directly and write the model whenever you have one; it still records what you believed before verification.
Either way: start from the symptom, find the entry point, trace the mechanism to where the observed behavior is produced, and identify every area that could contributeāshared state, upstream data, configuration, callers, ordering. Stop when you can name a hypothesis and the evidence that would settle it.
If the report is too thin to trace (no symptom, no surface, no version), say so in the front page and draft the exact questions to askābut still investigate whatever can be investigated.
2. Read the thread and prior art
Read every comment, linked PR, and related issue. Then:
- Treat proposed causes and workarounds as hypotheses to test, not conclusions to repeat. A maintainer's lead deserves tracing; it does not deserve deference.
- Note "me too" reports with different reprosāthey may reveal a broader mechanism or a different bug sharing a symptom.
- Search open and closed issues and PRs for the same symptom under other words. A closed fix for the same symptom means regression or incomplete fix; say which.
- Check whether an in-flight PR already addresses it.
Author context (first-time reporter vs. core contributor) informs where you look first, never whether you trust the report.
3. Diagnose like a maintainer
Use these questions where they apply. They shape judgment; they are not rows to fill.
- Is the issue what it claims to be? Genuine bug, working as designed, configuration or usage error, documentation gap, or XY problem (asking for X while
Pertanyaan umum
Apakah skill ini memperbaiki bug untuk saya?
Tidak. Skill ini menyelidiki dan melaporkan keputusan serta arah perbaikan. Membuat perubahan adalah langkah terpisah.
Apakah membaca komentar di issue?
Ya, tetapi hanya setelah membentuk pandangannya sendiri, sehingga bisa membandingkan ide itu dengan utasnya.
Berapa lama penyelidikan berlangsung?
Skill ini menyesuaikan kedalaman dengan risikonya, sehingga issue serius mendapat pemeriksaan lebih dalam daripada issue kecil.
Detail
Deskripsi asli dari pembuat
Investigate a GitHub issue or reported bug the way a seasoned maintainer would ā form an independent model before reading the thread's theories, trace the mechanism and history, verify the diagnosis, and return a concise briefing with a verdict and fix direction. Use for triage, root-cause analysis, or re-investigation.
repo: mastra-ai/mastra
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9370
- Lisensi
- ā
- Diperbarui
- 2/11/2026
Komentar
- ā¦
Skill lain dari repositori ini
debugging-difficult-bugs
29kMembantu agent Anda menelusuri bug yang sulit dengan mencatat apa yang dilakukan program sebenarnya saat berjalan, bukan hanya menebak dari pengujian.
mastra-frontend
29kMembantu agent Anda membangun layar aplikasi dengan sistem desain playground Mastra, dengan menggabungkan komponen siap pakai alih-alih menata gaya dari nol.
pr-explainer
29kMembantu agent Anda mengubah pull request menjadi halaman HTML yang jelas dan mandiri, yang menjelaskan perubahan kepada peninjau.
pr-splitter
29kMembantu agent Anda memecah pull request besar dan berantakan menjadi pull request kecil yang mudah ditinjau, sambil menjaga pekerjaan asli tetap aman.
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.