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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。