跳到正文
Skillpedia
写作40k · #7103

bug-reproduction-brief

它能做什么

这个工具可以把模糊的 bug 描述转化为简单清晰的分步指南,准确展示错误在哪里、如何发生。其目标是在尝试修复问题之前,先获得问题的最小化证明。

适用场景

  • ✓bug 只是偶尔出现时。
  • ✓bug 只在特定电脑或特定环境下出现时。
  • ✓bug 描述不清楚或不完整时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/bug-reproduction-brief/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请把这个结账报错整理成一份能够复现该问题的最简分步指南。说明应该发生什么、实际发生了什么,以及哪些部分仍然未知。”

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

工作原理

工具会请你记录具体的错误信息、出现错误的环境(例如程序版本),以及预期结果与实际结果的差异。随后,它会引导你尽可能精简步骤,直到找到仍能触发错误的最短操作序列,但在此过程中不尝试修复问题。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Bug Reproduction Brief

Use this skill when a bug report is incomplete, intermittent, environment-specific, or mixed with an assumed cause. The goal is to prove the smallest observable failure before diagnosis or repair begins.

1. Record the observed failure

Capture the exact error, incorrect output, timestamp, affected route or command, and the smallest known input. Preserve relevant logs without secrets or personal data. Label second-hand descriptions as unverified.

2. Identify the environment

Record only facts you can inspect:

  • repository and commit;
  • runtime and package-manager versions;
  • operating system or container;
  • dependency lockfile;
  • relevant feature flags;
  • whether the target is local, test, staging, or production.

Never guess credentials or production configuration.

3. Separate expected from actual behaviour

Write two explicit observable statements:

Expected: [observable result]
Actual:   [observable result, including status or error]

Do not put the suspected cause in either statement.

4. Reduce the reproduction

Start from the reported path, then remove unrelated data, services, and steps one at a time. Keep the smallest fixture that still fails. If the failure stops, restore the last removed condition and record it.

Prefer an isolated test, minimal script, or smallest safe request over reproducing against production.

5. Prove repeatability

Run the minimal reproduction at least twice where safe. Record commands and outputs. If the failure is intermittent, report the observed frequency and duration instead of calling it deterministic.

6. Stop before repair

A verified reproduction is the deliverable. Do not edit implementation code while building the brief because that can destroy the evidence or mix diagnosis with remediation.

Output

# Bug Reproduction Brief

- Target and commit:
- Environment:
- Expected:
- Actual:
- Minimal steps:
- Minimal fixture:
- Reproduced: yes / no / intermittent
- Evidence:
- Unknowns:
- Safe next hypothesis to test:

Safety boundaries

  • Do not change production data merely to reproduce a bug.
  • Do not publish secrets, customer records, or private source.
  • Do not claim a root cause from correlation alone.
  • Use read-only or reversible discovery first.
  • Stop after a verified reproduction; diagnosis and repair are separate workflows.

Example prompt

Use the Bug Reproduction Brief skill on the failing checkout test. Do not fix it yet. Reduce it to the smallest safe failing fixture and report the exact command evidence, expected result, actual result, and remaining unknowns.

Source and licence

Adapted from the MIT-licensed workflow at https://github.com/skyestrela/ai-agent-skill-preview.

常见问题

什么是 “bug 报告”?

它是对程序或系统中发现的问题或错误的描述。

“最小复现”是什么意思?

它是指能够稳定地再次触发错误的最短操作序列或最小数据集。

使用这个工具时,为什么不应该尝试修复 bug?

因为这个工具的目标是先获得清晰、简单的 bug 证明。如果提前尝试修复,可能会改变问题的表现,使真正的原因更难找到。

详情

作者的原始描述

Turn a vague, intermittent, or environment-specific bug report into a minimal evidence-backed reproduction before proposing a fix.

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7103
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能