Chuyển đến nội dung
Skillpedia
Lập trình chung29k · #9370

understand-issue

Skill này làm gì

Skill này hướng dẫn việc điều tra cẩn thận một issue hoặc báo cáo lỗi trên GitHub. Dành cho người duy trì và lập trình viên cần biết điều gì sai trước khi sửa.

Khi nào nên dùng

  • ✓Khi bạn muốn quyết định xem một lỗi được báo cáo có thật không và nguyên nhân là gì.
  • ✓Khi một chuỗi issue có nhiều giả thuyết và bạn muốn câu trả lời rõ ràng dựa trên mã.
  • ✓Khi bạn cần một bản tóm tắt ngắn nêu rõ cần sửa gì và ở đâu, trước khi bắt đầu công việc.

Liên kết skill

https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-issue/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-issue/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Xem issue GitHub này, cho tôi biết điều gì thật sự gây ra lỗi, và gợi ý cách sửa.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent hình thành ý kiến riêng từ mã trước, kiểm tra lịch sử, chạy một kiểm thử nhỏ nếu hữu ích, rồi đưa ra kết luận ngắn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. 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.
  2. Depth proportional to stakes. Data loss, security, silent misbehavior, wide blast radius, and uncertainty determine how hard to look—not a fixed checklist.
  3. 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.
  4. 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.
  5. 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
Câu hỏi thường gặp

Nó có sửa lỗi giúp tôi không?

Không. Nó điều tra và báo kết luận cùng hướng sửa. Việc thay đổi mã là một bước riêng.

Nó có đọc các bình luận trong issue không?

Có, nhưng chỉ sau khi đã hình thành ý kiến riêng, để có thể so sánh với chuỗi thảo luận.

Một cuộc điều tra mất bao lâu?

Skill điều chỉnh độ sâu theo rủi ro, nên vấn đề nghiêm trọng được xem xét kỹ hơn vấn đề nhỏ.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9370
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự