跳到正文
Skillpedia
通用编程29k · #9370

understand-issue

它能做什么

这项技能指导对 GitHub 议题或 bug 报告进行细致的调查。适合需要在修复之前先弄清问题所在的维护者和开发者。

适用场景

  • ✓当你想判断某个报告的 bug 是否真实,以及它的原因是什么时。
  • ✓当某个议题讨论中有许多猜测,而你想要基于代码的明确答案时。
  • ✓当你需要一份简短的简报,说明在开始任何工作之前应修复什么、在哪里修复时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-issue/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请调查这个 GitHub 议题,告诉我这个 bug 真正的原因,并建议如何修复。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先根据代码形成自己的判断,检查历史记录,如有需要就运行一个小测试,然后给出简短的结论。

技术内容(原始 SKILL.md)

作者在 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

  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
常见问题

它会替我修复 bug 吗?

不会。它只负责调查,并报告结论和修复方向。实际改动是单独的步骤。

它会阅读议题下的评论吗?

会,但只在形成自己的看法之后,以便对照讨论中的观点。

一次调查需要多长时间?

技能会根据风险调整深度,严重问题会比小问题得到更深入的调查。

详情

作者的原始描述

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

热度

GitHub 星标
29k
排名
#9370
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能