triage-issue

triage-issue is a skill for Claude Code from aneja5/forge-skills. It costs 58 tokens per session (988 once invoked), scanned A, original, MIT.

A workflow for investigating a reported bug, finding its root cause, and writing a GitHub issue with a test-driven fix plan. TDD means proving the intended behavior with a failing test before changing the code.

In plain words
What is it for?
Use it to investigate production problems, prepare bug reports, and define behavior-focused fixes before assigning implementation work.
Why use it?
It prevents teams from treating symptoms as causes and creates a durable issue that remains useful even if the code is later reorganized.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the forge-skills plugin — 42 skills, 36 commands, 1 hook shipped together

Good fit Use it to investigate production problems, prepare bug reports, and define behavior-focused fixes before assigning implementation work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aneja5/forge-skills/triage-issue
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aneja5/forge-skills --skill triage-issue
Clone the repo
git clone --depth 1 https://github.com/aneja5/forge-skills

Made for: Claude Code.

Or install forge-skills, the plugin that ships this one along with the rest of its 42 skills, 36 commands, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for triage-issue

README.md
[![agentmods](https://agentmods.dev/badge/skills/aneja5/forge-skills/triage-issue/github.svg)](https://agentmods.dev/skills/aneja5/forge-skills/triage-issue)
Your own site
<a href="https://agentmods.dev/skills/aneja5/forge-skills/triage-issue"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/triage-issue/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for triage-issue

Your own site · 80×15
<a href="https://agentmods.dev/skills/aneja5/forge-skills/triage-issue"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/triage-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.00988
Opus 5 $0.00029 $0.00494
Sonnet 5 $0.00012 $0.00198
Haiku 4.5 $0.00006 $0.00099

Measured 5d ago against content hash bfd912b55244, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

triage-issue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/triage-issue/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Triage Issue

Overview

Investigate a reported problem, find its root cause, and create a GitHub issue with a TDD fix plan. Exploration-first — no guessing. The issue is written in terms of behaviors and contracts, not file paths or line numbers, so it stays useful after refactors.

When to Use

  • User reports a bug or unexpected behavior
  • User wants to file a GitHub issue before implementing a fix
  • User says "triage", "investigate", or "what's causing this"
  • Bug needs a structured fix plan before work begins

When NOT to Use

  • Root cause is already known — go straight to debugging-and-recovery
  • No GitHub repo exists — you can't create the issue
  • The problem is a missing feature, not broken behavior — use spec-driven-development

Common Rationalizations

Thought Reality
"I know what's wrong, I'll skip investigation" You know the symptom. Cause is found by tracing, not guessing
"The fix is obvious — no need for a plan" Obvious fixes skip TDD cycles and reintroduce the bug
"I'll reference the file and line in the issue" File paths rot — write behaviors and contracts, not pointers
"I'll ask the user for more details before investigating" Codebase exploration answers more than follow-up questions

Red Flags

  • Issue body names specific file paths or line numbers (stale after any refactor)
  • Root cause described as "it just wasn't working" — that's a symptom, not a cause
  • TDD fix plan has more than 6 RED/GREEN cycles (not a vertical slice — decompose)
  • Fix plan describes internal state changes, not observable behavior changes

Core Process

1. Capture the problem

Get a brief description from the user. If none provided, ask ONE question: "What's the problem you're seeing?" Do NOT ask follow-up questions — start investigating immediately.

2. Explore and diagnose

Use the Agent tool with subagent_type=Explore to find:

  • Where the bug manifests (entry points, UI, API responses)
  • What code path is involved (trace the flow)
  • Why it fails (root cause, not symptom)
  • What related code exists (similar patterns, tests, adjacent modules)

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 116 lines · 58 tokens per session scan A bfd912b55244

Subscribe to this mod's changes

triage-issue is a skill published in the GitHub repository aneja5/forge-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 58 tokens to every session and 988 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.