bug-reproduction

仓库创建 2026年3月24日最近提交 1 个月前SkillHot 收录 2 天前
▸ 精选理由

把修复前写好可复现失败测试并做 git bisect,适合追踪难复现问题。

▸ 风险提示

可能需要访问源码、CI 与生产数据,应限制权限与敏感信息访问

这个 Skill 做什么

将模糊的错误报告驱动为可验证的最小复现与失败回归测试并定位引入提交。

把含糊的 bug 报告一步步驱动成可验证的最小复现和失败回归测试。会帮你抽环境与重现步骤、做复现-缩小-隔离-捕捉循环,用 git bisect 定位引入提交,并先写红色回归测试再修复验证变绿。适合不能稳定复现或需要把修复证明给别人看的情况,把“偶发”问题变成可追踪的证据。

▸ 展开 SKILL.md 英文原文

Turn a vague bug report into a VERIFIED minimal reproduction and then a failing regression test, agent-driven end to end. Covers extracting the implicit repro from a thin report (env, build, steps, data), the reproduce-minimize-isolate-capture loop, git bisect to find the introducing commit, building a deterministic minimal repro (fixed seeds, frozen time, stubbed network), writing the failing regression test BEFORE the fix (red) and confirming the fix flips it green, and writing repro evidence back into the ticket. Distinguishes flaky-not-reproducible from environment-specific. Use when: "reproduce this bug," "minimal reproduction," "repro steps," "find the commit that broke it," "git bisect," "make the repro deterministic," "write a failing test for this bug," "regression test for a defect," "can't reproduce this bug." Not for: Classifying/deduplicating/severity-routing existing failures without reproducing them — that is ai-bug-triage. Generating tests from specs rather than from a

开发编程复现漏洞最小复现回归测试通用
47
Stars
10
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/petrkindlmann/qa-skills/main/skills/bug-reproduction/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/petrkindlmann/qa-skills/main/skills/bug-reproduction/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
<objective>
A bug you cannot reproduce is a bug you cannot fix or prove fixed. This skill takes a
thin, hand-wavy report ("order total is wrong sometimes") and drives it to a VERIFIED
minimal reproduction, a deterministic failing test written BEFORE the fix, a `git bisect`
that names the introducing commit, and a structured evidence block in the ticket. The
discipline it enforces: reproduce before theorizing, minimize one cut at a time, freeze
time/seed/network so the repro fails identically every run, watch the test go red first,
and confirm the fix flips it green — and that reverting the fix turns it red again.
</objective>

## Quick Route

| You have… | Go to |
|-----------|-------|
| A t
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有