triage-issue/SKILL.md
Triage a bug or issue by exploring the codebase to find root cause, then create a GitHub issue with a TDD-based fix plan. Use when user reports a bug, wants to file an issue, mentions "triage", or wants to investigate and plan a fix for a problem.
npx skillsauth add mattpocock/skills triage-issueInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Investigate a reported problem, find its root cause, and create a GitHub issue with a TDD fix plan. This is a mostly hands-off workflow - minimize questions to the user.
Get a brief description of the issue from the user. If they haven't provided one, ask ONE question: "What's the problem you're seeing?"
Do NOT ask follow-up questions yet. Start investigating immediately.
Use the Agent tool with subagent_type=Explore to deeply investigate the codebase. Your goal is to find:
Look at:
git log on relevant files)Based on your investigation, determine:
Create a concrete, ordered list of RED-GREEN cycles. Each cycle is one vertical slice:
Rules:
Create a GitHub issue using gh issue create with the template below. Do NOT ask the user to review before creating - just create it and share the URL.
A clear description of the bug or issue, including:
Describe what you found during investigation:
Do NOT include specific file paths, line numbers, or implementation details that couple to current code layout. Describe modules, behaviors, and contracts instead. The issue should remain useful even after major refactors.
A numbered list of RED-GREEN cycles:
RED: Write a test that [describes expected behavior] GREEN: [Minimal change to make it pass]
RED: Write a test that [describes next behavior] GREEN: [Minimal change to make it pass]
...
REFACTOR: [Any cleanup needed after all tests pass]
After creating the issue, print the issue URL and a one-line summary of the root cause.
tools
Teach the user a new skill or concept, within this workspace.
tools
Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to create a PRD from the current context.
testing
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.
documentation
Compact the current conversation into a handoff document for another agent to pick up.