triage-issue/SKILL.md
Investigate a bug by searching the codebase for root cause, then create a GitHub issue with a TDD fix plan. Use when the user reports a bug, mentions "triage", wants to investigate a problem, or needs a fix plan filed as an issue. Do NOT use for feature requests, architecture improvements, problems without observable symptoms, or when the user already knows the root cause and just wants to fix it.
npx skillsauth add sanurb/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 via code search, and create a GitHub issue with a TDD fix plan. Mostly hands-off — minimize questions to the user.
Get the problem description from the user. If not provided, ask ONE question: "What's the problem you're seeing?" Then investigate immediately — do NOT ask follow-ups.
Search the codebase with codemogger for the relevant code paths:
npx codemogger search "<error message or symptom keywords>"
npx codemogger search "<feature or module name>" --mode keyword
For each result, trace the code path to find:
Cross-reference with recent changes to affected areas:
git log --oneline --since="2 weeks ago" -- <files from codemogger results>
If codemogger is not indexed, fall back to the Task tool (subagent_type="explore", thoroughness "very thorough").
Based on the root cause, create an ordered list of RED-GREEN cycles. Each cycle is one vertical slice:
End with a REFACTOR step if cleanup is needed after all tests pass.
Rules for the plan:
Read issue-template.md. Fill it with the root cause analysis and TDD plan. Create immediately via gh issue create — do NOT ask the user to review first.
If gh is not authenticated, instruct the user to run gh auth login first.
Issue created: <URL>
Root cause: <one-line summary>
| File | When to read | |------|-------------| | issue-template.md | Step 3 (fill and create the issue) |
development
Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's issue tracker (GitHub, GitLab, fp, or local markdown), triage label vocabulary, and domain doc layout. Run before first use of `fp-plan`, `fp-implement`, `fp-review`, `to-issues`, `to-prd`, `triage`, `diagnose`, `tdd`, `improve-codebase-architecture`, or `zoom-out` — or if those skills appear to be missing context about the issue tracker, triage labels, or domain docs.
development
Build a throwaway prototype to flush out a design before committing to it. Routes between two branches — a runnable terminal app for state/business-logic questions, or several radically different UI variations toggleable from one route. Use when the user wants to prototype, sanity-check a data model or state machine, mock up a UI, explore design options, or says "prototype this", "let me play with it", "try a few designs".
tools
Control herdr (a terminal-native agent multiplexer) from inside it. Manage workspaces and tabs, split panes, spawn sibling agents, read pane output, and wait for state changes — all via CLI commands that talk to the running herdr instance over a local unix socket. Use when running inside herdr (HERDR_ENV=1). Do not use outside herdr.
documentation
Compact the current conversation into a handoff document for another agent to pick up.