{"data":{"slug":"github-donchitos-claude-code-game-studios-claude-skills-bug-triage-a1cb4ead9c80","title":"Bug Triage and Prioritization","summary":"Process open bug reports to prioritize and assign bugs to sprints, identify systemic issues, and generate trend reports based on severity and priority classifications.","url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-triage-a1cb4ead9c80","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-triage-a1cb4ead9c80","markdown_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-triage-a1cb4ead9c80.md","download_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-bug-triage-a1cb4ead9c80\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before running `\/bug-triage`, ensure bug files exist in `production\/qa\/bugs\/` and that the sprint context is defined in `production\/sprints\/`. In `trend` mode, only header fields are used for analysis; full bug bodies are not required.","instructions":"---\nname: bug-triage\ndescription: \"Re-evaluate open bugs \u2014 priority vs severity, assign to sprints, surface systemic trends. Run when the count grows.\"\nargument-hint: \"[sprint | full | trend]\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write, Edit, Bash(bash \"*\/.claude\/skills\/bug-triage\/..\/..\/hooks\/yaml-helper.sh\" resolve_config *)\nmodel: sonnet\n---\n\n!`bash \"${CLAUDE_SKILL_DIR}\/..\/..\/hooks\/yaml-helper.sh\" resolve_config --keys automation,workflow`\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 Triage\n\nThis skill processes the open bug backlog into a prioritised, sprint-assigned\naction list. It distinguishes between **severity** (how bad is the impact?) and\n**priority** (how urgently must we fix it?), detects systemic trends, and\nensures no critical bug is lost between sprints.\n\n**Output:** `production\/qa\/bug-triage-[date].md`\n\n**When to run:**\n- Sprint start \u2014 assign open bugs to the new sprint or backlog\n- After `\/team-qa` completes and new bugs have been filed\n- When the bug count crosses 10+ open items\n\n---\n\n## 1. Parse Arguments\n\n**Modes:**\n- `\/bug-triage sprint` \u2014 triage against the current sprint; assign fixable bugs\n  to the sprint backlog; defer the rest\n- `\/bug-triage full` \u2014 full triage of all bugs regardless of sprint scope\n- `\/bug-triage trend` \u2014 trend analysis only (no assignment); read-only report\n- No argument \u2014 run sprint mode if a current sprint exists, else full mode\n\n---\n\n## 2. Load Bug Backlog\n\n### Step 2a \u2014 Discover bug files\n\nGlob for bug reports in priority order:\n1. `production\/qa\/bugs\/*.md` \u2014 individual bug report files (preferred format)\n2. `production\/qa\/bugs.md` \u2014 single consolidated bug log (fallback)\n3. Any `production\/qa\/qa-plan-*.md` \"Bugs Found\" table (last resort)\n\nIf no bug files found:\n> \"No bug files found in `production\/qa\/bugs\/`. If bugs are tracked in a\n> different location, adjust the glob pattern. If no bugs exist yet, there is\n> nothing to triage.\"\n\nStop and report. Do not proceed if no bugs exist. Verdict: **COMPLETE** \u2014 no bug files in `production\/qa\/bugs\/`; nothing to triage.\n\n**In `trend` mode, do not read full bug bodies.** Trend metrics (volume, severity\nmix, by-system, by-date) are computable from the header fields alone:\n```\nGrep pattern=\"\\*\\*(Severity|Priority|Status|System|Category|Reported)\\*\\*\" glob=\"production\/qa\/bugs\/*.md\" output_mode=\"content\"\n```\n(Bug-report fields are bolded \u2014 `**Severity**:`, `- **System**:` \u2014 so match the\n`**field**` form, not a bare line-start `Field:`.)\nFull bug bodies are needed only for the priority-vs-severity **re-evaluation** in\n`sprint`\/`full` modes; `trend` is a read-only report and skips it. (The one\ndeviation check that needs a story's status \u2014 \"bug filed against a Complete\nstory\" \u2014 is a targeted story-status grep either way, not a bug-body read.)\n\n### Step 2b \u2014 Load sprint context\n\nRead the most recently modified file in `production\/sprints\/` to understand:\n- Current sprint number \/ name\n- Stories in scope (for assignment target)\n- Sprint capacity constraints (if noted)\n\nIf no sprint file exists: note \"No sprint plan found \u2014 assigning to backlog only.\" At `workflow: minimal` there are no sprints by design \u2014 say that instead, and name the P1 bugs as the next fixes, ahead of the next story in the brief's build order.\n\n### Step 2c \u2014 Load severity reference\n\nRead `.claude\/docs\/coding-standards.md` for severity\/priority definitions if they\nexist. If they do not exist, use the standard definitions in Step 3.\n\n---\n\n## 3. Classify Each Bug\n\nFor each bug, extract or infer:\n\n### Severity (impact of the bug)\n\n| Severity | Definition |\n|----------|-----------|\n| **S1 \u2014 Critical** | Game crashes, data loss, or complete feature failure. Cannot proceed past this point. |\n| **S2 \u2014 High** | Major feature broken but game is still playable. Significant wrong behaviour. |\n| **S3 \u2014 Medium** | Feature degraded but a workaround exists. Minor wrong behaviour. |\n| **S4 \u2014 Low** | Visual glitch, cosmetic issue, typo. No gameplay impact. |\n\n### Priority (urgency of the fix)\n\n| Priority | Definition |\n|----------|-----------|\n| **P1 \u2014 Fix this sprint** | Blocks QA, blocks release, or is regression from last sprint |\n| **P2 \u2014 Fix soon** | Should be resolved before the next major milestone |\n| **P3 \u2014 Backlog** | Would be good to fix, but no active blocking impact |\n| **P4 \u2014 Won't fix \/ Deferred** | Accepted risk or out of scope for current product scope |\n\n### Assignment\n\nFor each P1\/P2 bug in `sprint` mode:\n- Identify which story or epic the fix belongs to\n- Check whether the current sprint has remaining capacity\n- If capacity exists: assign to sprint (`Sprint: [current]`)\n- If capacity is full: flag as `Priority overflow \u2014 consider pulling from sprint`\n\nFor `full` mode: assign all P1 to current sprint, P2 to next sprint estimate,\nP3+ to backlog.\n\n### Deviation check\n\nFlag bugs that suggest **systematic problems**:\n- 3+ bugs from the same system in the same sprint \u2192 \"Potential design or\n  implementation quality issue in [system]\"\n- 2+ S1\/S2 bugs in the same story \u2192 \"Story may need to be reopened and\n  re-reviewed before shipping\"\n- Bug filed against a story marked Complete \u2192 \"Regression in completed story \u2014\n  story should be re-opened in sprint tracking\"\n\n---\n\n## 4. Trend Analysis\n\nAfter classifying all bugs, generate trend metrics:\n\n### Volume trends\n- Total open bugs: [N]\n- Opened this sprint: [N]\n- Closed this sprint: [N]\n- Net change: [+N \/ -N]\n\n### System hot spots\n- Which system has the most open bugs?\n- Which system has the highest S1\/S2 ratio?\n\n### Age analysis\n- How many bugs are older than 2 sprints?\n- Are any S1\/S2 bugs un-assigned (sprint = none)?\n\n### Regression indicator\n- Any bugs filed against previously-completed stories?\n- Count: [N] regression bugs (story reopened implied)\n\n---\n\n## 5. Generate Triage Report\n\n```markdown\n# Bug Triage Report\n\n> **Date**: [date]\n> **Mode**: [sprint | full | trend]\n> **Generated by**: \/bug-triage\n> **Open bugs processed**: [N]\n> **Sprint in scope**: [sprint name, or \"N\/A\"]\n\n---\n\n## Triage Summary\n\n| Priority | Count | Notes |\n|----------|-------|-------|\n| P1 \u2014 Fix this sprint | [N] | [N] assigned to sprint, [N] overflow |\n| P2 \u2014 Fix soon | [N] | Scheduled for next sprint |\n| P3 \u2014 Backlog | [N] | Deferred |\n| P4 \u2014 Won't fix | [N] | Accepted risk |\n\n**Critical (S1\/S2) unfixed count**: [N]\n\n---\n\n## P1 Bugs \u2014 Fix This Sprint\n\n| ID | System | Severity | Summary | Assigned to | Story |\n|----|--------|----------|---------|-------------|-------|\n| BUG-NNNN | [system] | S[1-4] | [one-line description] | [sprint] | [story path] |\n\n---\n\n## P2 Bugs \u2014 Fix Soon\n\n| ID | System | Severity | Summary | Target Sprint |\n|----|--------|----------|---------|---------------|\n| BUG-NNNN | [system] | S[1-4] | [one-line description] | Sprint [N+1] |\n\n---\n\n## P3\/P4 Bugs \u2014 Backlog \/ Won't Fix\n\n| ID | System | Severity | Summary | Disposition |\n|----|--------|----------|---------|-------------|\n| BUG-NNNN | [system] | S4 | [one-line description] | Backlog |\n\n---\n\n## Systemic Issues Flagged\n\n[List any patterns from Step 3 deviation check, or \"None identified.\"]\n\n---\n\n## Trend Analysis\n\n**Volume**: [N] open \/ [+N] net change this sprint\n**Hot spot**: [system with most bugs]\n**Regressions**: [N] bugs against completed stories\n**Aged bugs (>2 sprints old)**: [N]\n\n[If N aged S1\/S2 bugs > 0:]\n> \u26a0\ufe0f [N] high-severity bugs have been open for more than 2 sprints without\n> assignment. These represent accepted risk that should be explicitly reviewed.\n\n---\n\n## Recommended Actions\n\n1. [Most urgent action \u2014 usually \"fix P1 bugs before QA hand-off\"]\n2. [Second action \u2014 usually \"investigate [hot spot system] quality\"]\n3. [Third action \u2014 optional improvement]\n```\n\n---\n\n## 6. Write and Gate\n\nPresent the report in conversation. If any bug is a P4 candidate, first ask\n\"Are these acceptable as Won't Fix?\" and keep its disposition `P4 candidate`\nuntil the user answers. Then ask:\n\n\"May I write this triage report to `production\/qa\/bug-triage-[date].md`?\"\n\nWrite only after approval.\n\nAfter writing:\n- If any S1 bugs are unassigned: \"S1 bugs must be assigned before the sprint\n  can be considered healthy. Run `\/sprint-status` to see current capacity.\"\n- If regression bugs exist: \"Regressions found \u2014 consider re-opening the\n  affected stories in sprint tracking and running `\/smoke-check` to re-gate.\"\n- If no P1 bugs exist: \"No P1 bugs \u2014 build is in good shape for QA hand-off.\"\n\nThen, whether or not P1 bugs exist: Verdict: **COMPLETE** \u2014 triage report written.\n\nIf user declined write: Verdict: **BLOCKED** \u2014 user declined write.\n\n---\n\n## Collaborative Protocol\n\n- **Never close or mark bugs Won't Fix without user approval** \u2014 surface them\n  as P4 candidates and ask: \"Are these acceptable as Won't Fix?\"\n- **Never auto-assign to a sprint at capacity** \u2014 flag overflow and let the\n  sprint owner decide what to pull\n- **Severity is objective; priority is a team decision** \u2014 present severity\n  classifications as recommendations, not mandates\n- **Trend data is informational** \u2014 do not block work on trend findings alone;\n  surface them as observations\n","use_cases":["Triage bugs against the current sprint and assign fixable bugs to the sprint backlog.","Perform full triage of all bugs regardless of sprint scope.","Generate trend analysis reports to identify system hot spots and severity patterns."],"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-triage\/SKILL.md","source_commit":"abc0de79d6ceb0b5d7aa693945849b3937afbe6a","license":null,"version":null,"listing_approved_at":"2026-11-18","created_at":"2026-11-16T20:03:17.000000Z","updated_at":"2026-11-18T07:35:05.000000Z","seo_title":"Bug Triage and Prioritization Tool","seo_description":"Prioritize and assign open bugs to sprints, identify systemic issues, and generate trend reports for efficient bug management.","seo_keywords":["bug triage tool","bug prioritization","sprint bug assignment","bug trend analysis","system hot spot detection"]}}