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

bug-receipt

它能做什么

这个工具可以帮助你记录 bug 或事故的关闭情况。它会生成一份详细的报告,描述问题、原因、修复方式以及测试结果。

适用场景

  • ✓bug 修复后需要记录时。
  • ✓需要报告已解决的事故时。
  • ✓记录一个暂时无法完全解决的问题的状态时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请为这个 bug 生成一份 BUG RECEIPT 来关闭它:已登录用户无法打开网站。原因是服务器错误。修复方法是重启服务。请验证网站现在可以正常打开。”

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

工作原理

AI 会收集问题描述、预期结果、已确定的原因、为修复所做的改动,以及修复有效的证明,然后将这些信息整理成标准格式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Bug Receipt

Mandatory closeout output

For every bug or incident closeout decision, return the complete receipt below as the entire user-facing result, even when the user requests a concise reply or does not name this format. Concision shortens field values; it never removes or renames a row. Do not replace the receipt with prose.

BUG RECEIPT · VERIFIED | PARTIAL | BLOCKED

Problem    <observed defect and intended behavior>
Baseline   <failing interaction or command and decisive result; or not run>
Root cause <proven mechanism; or unproven hypothesis>
Change     <responsible change; or none>
Proof      <supplied or executed check: result; include every decisive layer>
Gaps       <none; or exact missing proof and single next experiment/package>
Source     executed now | supplied | mixed

Use not run, unproven, or none explicitly. Never omit a row to make the receipt look complete.

Establish the evidence boundary

Before editing, record the observed problem, intended behavior, strongest direct check, and evidence source: executed now, supplied, or mixed. Never imply that supplied evidence was executed in the current run.

Keep evidence privacy-minimal. Redact credentials, tokens, cookies, personal data, private URLs, and sensitive payloads; preserve only the identifiers and excerpts needed to reproduce or correlate the failure.

Reproduce the failure with the narrowest safe check when possible. If reproduction is unavailable, preserve the evidence obtained and cap the result at PARTIAL or BLOCKED.

Trace and repair

  1. Follow the live owner path from input to symptom.
  2. Separate observed facts, bounded inferences, and gaps.
  3. Require a concrete location or runtime transition before naming root cause.
  4. Make the smallest responsible change; avoid unrelated cleanup, retries, silent fallbacks, and fixture-specific exceptions.

Do not convert a plausible patch, stale log, source read, or passing build into proof of the user-visible behavior.

Close the proof loop

Run only checks required by the affected contract:

  • original reproduction or direct acceptance check;
  • nearest negative or regression check;
  • affected build or integration gate;
  • real UI, API, persistence, concurrency, or runtime path when the claim crosses that boundary.

Use these decisive boundaries:

Surface Required direct proof
Logic or failing test Original failing input or focused test now passes
UI behavior Real interaction plus relevant console and network observation
API or integration Request, response, and responsible service behavior
Persistence Write/read or reload round trip through the real owner path
Race or lifecycle Repeated concurrent trigger; zero-or-one success; affected-row and transaction evidence; final invariant
Cross-system blocker One sanitized failing request/response with timestamp or request ID, edge and application logs, and identity-provider logs when the trace reaches that owner

Assign status

  • VERIFIED: observed baseline, concrete cause, responsible change, all declared checks passed, no material gap.
  • PARTIAL: useful evidence exists, but a required proof layer is missing or inconclusive.
  • BLOCKED: a specific external condition prevents reproduction, repair, or proof.

For PARTIAL or BLOCKED, name the single minimal experiment or correlated evidence package that closes the decisive gap. Never invent a command, observation, count, location, or result.

For a machine-readable receipt or CI integration, read references/receipt-contract.md and conform to its JSON fields, evidence-source marker, compatibility rule, and status invariants.

When a JSON artifact is requested, start from assets/receipt.template.json, write it to a task-owned path, and validate it with node scripts/validate-receipt.mjs <receipt.json> from this skill directory. Do not commit the generated receipt unless the user requests it.

Source and license

Originally published at https://github.com/lMysticl/bug-receipt under the MIT License.

常见问题

“VERIFIED”、“PARTIAL”和“BLOCKED”是什么意思?

“VERIFIED”表示问题已修复并经过充分测试。“PARTIAL”表示已有一些有用的证据,但缺少必要的证明环节,或结论不明确。“BLOCKED”表示有某些因素妨碍了问题的复现、修复或证明。

什么是 “BUG RECEIPT”?

它是工具生成的报告,以特定格式包含关于问题、原因和解决方案的全部信息。

我需要向 AI 提供所有细节吗?

是的。你提供的关于问题、原因和验证的细节越多,生成的报告就越准确、越有用。

详情

作者的原始描述

Close defects and incidents with a BUG RECEIPT and VERIFIED, PARTIAL, or BLOCKED status after diagnosis, repair, or recovery.

repo: github/awesome-copilot

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能