{"data":{"slug":"github-donchitos-claude-code-game-studios-claude-skills-bug-report-f7e95c75184b","title":"Generate Structured Bug Report","summary":"Create a detailed bug report from a description, analyze code for potential bugs, or verify\/close a bug report. The deliverable is a structured markdown bug report with ID, severity, priority, and technical context.","url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-report-f7e95c75184b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-report-f7e95c75184b","markdown_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-report-f7e95c75184b.md","download_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-report-f7e95c75184b\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before closing a bug, confirm its status is 'Verified Fixed' by running `\/bug-report verify [BUG-ID]`. Allocate the next available bug ID by globbing `production\/qa\/bugs\/BUG-*.md` and using the highest number plus one, zero-padded to four digits (e.g., BUG-0001).","instructions":"---\nname: bug-report\ndescription: \"Structured bug report from a description, or analyze code for potential bugs. Reproduction steps, severity.\"\nargument-hint: \"[description] | analyze [path-to-file] | verify [BUG-ID] | close [BUG-ID]\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write, Edit, AskUserQuestion, Bash(bash \"*\/.claude\/skills\/bug-report\/..\/..\/hooks\/yaml-helper.sh\" resolve_config *)\nmodel: sonnet\n---\n\n!`bash \"${CLAUDE_SKILL_DIR}\/..\/..\/hooks\/yaml-helper.sh\" resolve_config --keys automation`\n\n**Automation mode**: Resolve `modes.automation` (`project.local.yaml` \u2192\n`project.yaml` \u2192 default `collaborative`). Every `AskUserQuestion` call and\nevery file write follows `.claude\/docs\/automation-modes.md`\n(collaborative asks always \u00b7 guided major-only \u00b7 autonomous logs and proceeds;\n`automation_always_ask` categories always prompt).\n\n# Bug Report\n\n**Drafts only.** This skill writes reports to `production\/qa\/bugs\/`. When the\ncause is in the engine, a plugin or another vendor's code, add a draft for their\ntracker under **Notes** and stop there: never file, open or comment on an issue\nor pull request in their repository. The user submits it.\n\n## Phase 1: Parse Arguments\n\nDetermine the mode from the argument:\n\n- No keyword \u2192 **Description Mode**: generate a structured bug report from the provided description\n- `analyze [path]` \u2192 **Analyze Mode**: read the target file(s) and identify potential bugs\n- `verify [BUG-ID]` \u2192 **Verify Mode**: confirm a reported fix actually resolved the bug\n- `close [BUG-ID]` \u2192 **Close Mode**: mark a verified bug as closed with resolution record\n\nIf no argument is provided, ask the user for a bug description before proceeding.\n\n---\n\n## Phase 2A: Description Mode\n\n1. **Parse the description** for key information: what broke, when, how to reproduce it, and what the expected behavior is.\n\n2. **Search the codebase** for related files using Grep\/Glob to add context (affected system, likely files).\n\n3. **Draft the bug report**:\n\n```markdown\n# Bug Report\n\n## Summary\n**Title**: [Concise, descriptive title]\n**ID**: BUG-[NNNN]\n**Severity**: [S1-Critical \/ S2-High \/ S3-Medium \/ S4-Low]\n**Priority**: [P1-Fix this sprint \/ P2-Fix soon \/ P3-Backlog \/ P4-Won't fix]\n**Status**: Open\n**Reported**: [Date]\n**Reporter**: [the reporter's name as the user gives it, else `\u2014`; never an email address or account ID taken from the session]\n\n## Classification\n- **Category**: [Gameplay \/ UI \/ Audio \/ Visual \/ Performance \/ Crash \/ Network]\n- **System**: [Which game system is affected \u2014 when the bug spans systems, the one whose code must change; the others go under Related systems]\n- **Frequency**: [Always \/ Often (>50%) \/ Sometimes (10-50%) \/ Rare (<10%)]\n- **Regression**: [Yes\/No\/Unknown -- was this working before?]\n\n## Environment\n- **Build**: [Version or commit hash]\n- **Platform**: [OS, hardware if relevant]\n- **Scene\/Level**: [Where in the game]\n- **Game State**: [Relevant state -- inventory, quest progress, etc.]\n\n## Reproduction Steps\n**Preconditions**: [Required state before starting]\n\n1. [Exact step 1]\n2. [Exact step 2]\n3. [Exact step 3]\n\n**Expected Result**: [What should happen]\n**Actual Result**: [What actually happens]\n\n## Technical Context\n- **Likely affected files**: [List of files based on codebase search]\n- **Related systems**: [What other systems might be involved]\n- **Possible root cause**: [If identifiable from the description]\n\n## Evidence\n- **Logs**: [Relevant log output if available]\n- **Visual**: [Description of visual evidence]\n\n## Related Issues\n- [Links to related bugs or design documents]\n\n## Notes\n[Any additional context or observations]\n```\n\nThe **Severity** and **Priority** labels use `\/bug-triage`'s S and P numbers and\nnames, which it parses out of this file. `P4-Won't fix` is its `P4 \u2014 Won't fix \/\nDeferred` (an accepted risk), not a wishlist. If you change either ladder, change\n`.claude\/skills\/bug-triage\/SKILL.md` too.\n\n---\n\n## Phase 2B: Analyze Mode\n\n1. **Read the target file(s)** specified in the argument.\n\n2. **Identify potential bugs**: null references, off-by-one errors, race conditions, unhandled edge cases, resource leaks, incorrect state transitions.\n\n3. **For each potential bug**, generate a bug report using the template above, with the likely trigger scenario and recommended fix filled in.\n\n---\n\n## Phase 2C: Verify Mode\n\n**Find the bug file by its number**, here and in close mode: Glob\n`production\/qa\/bugs\/BUG-*.md` and take the file whose number matches `[BUG-ID]`,\nwhatever its zero-padding \u2014 an older three-digit file with a slug is found by\nits number too. If none\nmatches, stop: \"No bug [BUG-ID] in `production\/qa\/bugs\/`.\" Verdict: **BLOCKED**\n\u2014 no such bug.\n\nRead that file. Extract the reproduction steps and expected result.\n\n1. **Re-run reproduction steps** \u2014 use Grep\/Glob to check whether the root cause code path still exists as described. If the fix removed or changed it, note the change.\n2. **Run the related test** \u2014 if the bug's system has a test file in the engine's test root (`tests\/` Godot and Web, `Assets\/Tests\/` Unity, `Source\/<Module>\/Private\/Tests\/` Unreal \u2014 `.claude\/docs\/directory-structure.md`), run it via Bash with `commands.test` from `project.yaml`, narrowed to the affected suite where the runner allows \u2014 never a runner line written from memory, which drops the flags the engine needs (gdUnit4 hangs without `--remote-debug tcp:\/\/127.0.0.1:0`) \u2014 and report pass\/fail. `commands.test` unset \u2192 no test ran: name the unset key and go on to step 3.\n3. **Check for regression** \u2014 grep the codebase for any new occurrence of the pattern that caused the bug.\n4. **Manual verification** \u2014 when no related test ran (none covers the bug \u2014 the usual case where `qa.level` waives tests \u2014 `commands.test` is unset, or the run did not complete), or the bug's Category is Visual or UI, whose look no automated test checks, ask via `AskUserQuestion`: \"Did you play the reproduction steps in [bug file] on a build with the fix? Which build?\" \u2014\n   `[No longer occurs]` \/ `[Still occurs]` \/ `[Not played yet]`.\n   Record the answer and the build as the user gives them; a changed code path is never taken as their answer.\n   **Run as a subagent?** `qa-lead` preloads this skill, and a subagent has no\n   `AskUserQuestion`. End your reply with the question and its three options as\n   a short list, and give no verdict yet: whoever called you asks the user, and\n   the verdict waits for the answer.\n\nProduce a verification verdict:\n\n- **VERIFIED FIXED** \u2014 the bug is gone by every check that applies: any related test ran and passed, and, where step 4 asked, the user answered `[No longer occurs]` for a named build. With no test run, that play alone is the verification \u2014 a manual one, recorded as such: `[user], manual, build [X]`. A changed code path on its own is never a pass\n- **STILL PRESENT** \u2014 a related test fails on the bug's case, or the user answered `[Still occurs]`; the fix did not resolve the issue\n- **CANNOT VERIFY** \u2014 step 4 was answered `[Not played yet]`: name what is missing or could not run (no related test, `commands.test` unset, a run that did not complete, a Visual or UI bug), and say that playing the reproduction steps settles it \u2014 run `\/bug-report verify [BUG-ID]` again once played\n\nAsk: \"May I update `production\/qa\/bugs\/[bug file]` to set Status: Verified Fixed \/ Still Present \/ Cannot Verify?\" \u2014 naming the file found above, whatever its padding or slug. With the Status, write a `**Verified by**:` line under it: `[test file(s)] \u2014 ran and passed`, or `[user], manual, build [X]` for a manual verification.\n\nIf STILL PRESENT: reopen the bug, set Status back to Open, and suggest re-running `\/hotfix [BUG-ID]`.\n\n---\n\n## Phase 2D: Close Mode\n\nRead the bug file, found by its number as in verify mode. Confirm Status is `Verified Fixed` before closing. If status is anything else, stop: \"Bug [ID] must be Verified Fixed before it can be closed. Run `\/bug-report verify [BUG-ID]` first.\"\n\nShow the closure record below and the Status change, then ask: \"May I update `production\/qa\/bugs\/[bug file]` to mark it Closed?\" Nothing is written before a yes; on no, stop \u2014 the bug stays Verified Fixed.\n\nOn yes, append the closure record to the bug file:\n\n```markdown\n## Closure Record\n**Closed**: [date]\n**Resolution**: Fixed \u2014 [one-line description of what was changed]\n**Fix commit \/ PR**: [if known]\n**Verified by**: [the verify record's `**Verified by**:` line \u2014 the test that ran and passed, or \"[user], manual, build [X]\"]\n**Closed by**: [user]\n**Regression test**: [test file path, or \"Manual verification\" when verify recorded a manual play]\n**Status**: Closed\n```\n\nThen update the top-level `**Status**:` field to `**Status**: Closed`.\n\nAfter closing, check `production\/qa\/bug-triage-*.md` \u2014 if the bug appears in an open triage report, note: \"Bug [ID] is referenced in the triage report. Run `\/bug-triage` to refresh the open bug count.\"\n\n---\n\n## Phase 3: Save Report\n\nPresent the completed bug report(s) to the user.\n\n**Allocate the ID** before asking: Glob `production\/qa\/bugs\/BUG-*.md`, take the\nhighest number and add 1, zero-padded to four digits (`BUG-0001` when there are\nnone). Several reports in one run (analyze mode) take consecutive IDs from\nthere, one each \u2014 never the same ID twice.\n\nAsk: \"May I write this to `production\/qa\/bugs\/BUG-[NNNN].md`?\" For several\nreports, ask once and name every file: \"May I write these to\n`production\/qa\/bugs\/BUG-[NNNN].md`, `production\/qa\/bugs\/BUG-[NNNN+1].md`, \u2026?\"\n\nIf yes, write the file, creating the directory if needed. Verdict: **COMPLETE** \u2014 bug report filed.\n\nIf no, stop here. Verdict: **BLOCKED** \u2014 user declined write.\n\n---\n\n## Phase 4: Next Steps\n\nAfter saving, suggest based on mode:\n\n**After filing (Description\/Analyze mode):**\n- Run `\/bug-triage` to prioritize alongside existing open bugs\n- If S1 or S2: run `\/hotfix [BUG-ID]` for emergency fix workflow\n\n**After fixing the bug (developer confirms fix is in):**\n- Run `\/bug-report verify [BUG-ID]` \u2014 confirm the fix actually works before closing\n- Never mark a bug closed without verification \u2014 a fix that doesn't verify is still Open\n\n**After verify returns CANNOT VERIFY:**\n- Play the reproduction steps on a build with the fix, then run `\/bug-report verify [BUG-ID]` again and answer its question\n\n**After verify returns VERIFIED FIXED:**\n- Run `\/bug-report close [BUG-ID]` \u2014 write the closure record and update status\n- Run `\/bug-triage` to refresh the open bug count and remove it from the active list\n","use_cases":["Generate a bug report from a user description","Analyze a code file for potential bugs","Verify if a bug fix resolved the issue","Close a verified bug with a resolution record"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Donchitos\/Claude-Code-Game-Studios\/blob\/abc0de79d6ceb0b5d7aa693945849b3937afbe6a\/.claude\/skills\/bug-report\/SKILL.md","source_commit":"abc0de79d6ceb0b5d7aa693945849b3937afbe6a","license":null,"version":null,"listing_approved_at":"2026-11-18","created_at":"2026-11-16T20:00:07.000000Z","updated_at":"2026-11-18T07:35:05.000000Z","seo_title":"Generate Structured Bug Report","seo_description":"Create a detailed bug report from a description, analyze code for potential bugs, or verify\/close a bug report.","seo_keywords":["generate bug report","analyze code for bugs","verify bug fix","close bug report","structured bug report"]}}