bug-report
它能做什么
这个技能把粗略的缺陷描述整理成清晰、有条理的报告。适合希望缺陷记录保持一致的游戏和软件测试人员。
适用场景
- ✓当有人描述了一个缺陷,你想把它整理成包含复现步骤的结构化报告的时候。
- ✓当你想在测试之前扫描一个文件,查找可能的缺陷的时候。
- ✓当你需要确认一个已报告的修复是否真的有效的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/bug-report/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这段描述整理成缺陷报告:按两次返回键后,存档菜单会卡死。”
每周 5 个新技能,1 分钟读完。
工作原理
它会阅读描述,提取出出了什么问题、在什么时候发生,以及如何复现,然后确定严重程度。它会保存报告草稿,而不会把它提交到其他项目的跟踪系统中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation
Automation mode: Resolve modes.automation (project.local.yaml →
project.yaml → default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Bug Report
Drafts only. This skill writes reports to production/qa/bugs/. When the
cause is in the engine, a plugin or another vendor's code, add a draft for their
tracker under Notes and stop there: never file, open or comment on an issue
or pull request in their repository. The user submits it.
Phase 1: Parse Arguments
Determine the mode from the argument:
- No keyword → Description Mode: generate a structured bug report from the provided description
analyze [path]→ Analyze Mode: read the target file(s) and identify potential bugsverify [BUG-ID]→ Verify Mode: confirm a reported fix actually resolved the bugclose [BUG-ID]→ Close Mode: mark a verified bug as closed with resolution record
If no argument is provided, ask the user for a bug description before proceeding.
Phase 2A: Description Mode
Parse the description for key information: what broke, when, how to reproduce it, and what the expected behavior is.
Search the codebase for related files using Grep/Glob to add context (affected system, likely files).
Draft the bug report:
# Bug Report
## Summary
**Title**: [Concise, descriptive title]
**ID**: BUG-[NNNN]
**Severity**: [S1-Critical / S2-High / S3-Medium / S4-Low]
**Priority**: [P1-Fix this sprint / P2-Fix soon / P3-Backlog / P4-Won't fix]
**Status**: Open
**Reported**: [Date]
**Reporter**: [the reporter's name as the user gives it, else `—`; never an email address or account ID taken from the session]
## Classification
- **Category**: [Gameplay / UI / Audio / Visual / Performance / Crash / Network]
- **System**: [Which game system is affected — when the bug spans systems, the one whose code must change; the others go under Related systems]
- **Frequency**: [Always / Often (>50%) / Sometimes (10-50%) / Rare (<10%)]
- **Regression**: [Yes/No/Unknown -- was this working before?]
## Environment
- **Build**: [Version or commit hash]
- **Platform**: [OS, hardware if relevant]
- **Scene/Level**: [Where in the game]
- **Game State**: [Relevant state -- inventory, quest progress, etc.]
## Reproduction Steps
**Preconditions**: [Required state before starting]
1. [Exact step 1]
2. [Exact step 2]
3. [Exact step 3]
**Expected Result**: [What should happen]
**Actual Result**: [What actually happens]
## Technical Context
- **Likely affected files**: [List of files based on codebase search]
- **Related systems**: [What other systems might be involved]
- **Possible root cause**: [If identifiable from the description]
## Evidence
- **Logs**: [Relevant log output if available]
- **Visual**: [Description of visual evidence]
## Related Issues
- [Links to related bugs or design documents]
## Notes
[Any additional context or observations]
The Severity and Priority labels use /bug-triage's S and P numbers and
names, which it parses out of this file. P4-Won't fix is its P4 — Won't fix / Deferred (an accepted risk), not a wishlist. If you change either ladder, change
.claude/skills/bug-triage/SKILL.md too.
Phase 2B: Analyze Mode
Read the target file(s) specified in the argument.
Identify potential bugs: null references, off-by-one errors, race conditions, unhandled edge cases, resource leaks, incorrect state transitions.
For each potential bug, generate a bug report using the template above, with the likely trigger scenario and recommended fix filled in.
Phase 2C: Verify Mode
Find the bug file by its number, here and in close mode: Glob
production/qa/bugs/BUG-*.md and take the file whose number matches [BUG-ID],
whatever its zero-padding — an older three-digit file with a slug is found by
its number too. If none
matches, stop: "No bug [BUG-ID] in production/qa/bugs/." Verdict: BLOCKED
— no such bug.
Read that file. Extract the reproduction steps and expected result.
- Re-run reproduction steps — use Grep/Glob to check whether the root cause code path still exists as described. If the fix removed or changed it, note the chan
常见问题
它会把缺陷提交到跟踪系统吗?
不会。它只写草稿,由你自己提交。
如果原因在引擎里怎么办?
它会在备注中添加一份给引擎供应商跟踪系统的草稿,然后到此为止。
它可以审阅代码吗?
可以。分析模式会查看目标文件,寻找可能的缺陷。
详情
作者的原始描述
Structured bug report from a description, or analyze code for potential bugs. Reproduction steps, severity.
热度
- GitHub 星标
- 33k
- 排名
- #8442
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …