triage-issue

triage-issue is a command for coding agents from refo/claude-dev-helpers. It costs 0 tokens per session (399 once invoked), scanned A, original, MIT.

A bug-investigation command that explores a reported issue, identifies its root cause, designs a minimal fix, and creates a GitHub issue. Its TDD approach—test-driven development—starts each change with a behavior test before implementing the fix.

In plain words
What is it for?
Use it to locate where a bug appears, inspect related code and history, define affected modules, and record ordered test-and-fix cycles in a GitHub issue.
Why use it?
It turns an informal bug report into a traceable diagnosis and a sequence of small changes that can be checked through the system’s public behavior.

Command

Part of the dev-helpers plugin — 13 commands, 1 hook shipped together

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.

agentmods
npx agentmods add commands/refo/claude-dev-helpers/triage-issue
Clone the repo
git clone --depth 1 https://github.com/refo/claude-dev-helpers

Or install dev-helpers, the plugin that ships this one along with the rest of its 13 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/commands/refo/claude-dev-helpers/triage-issue.svg)](https://agentmods.dev/commands/refo/claude-dev-helpers/triage-issue)
Your own site
<a href="https://agentmods.dev/commands/refo/claude-dev-helpers/triage-issue"><img src="https://agentmods.dev/badge/commands/refo/claude-dev-helpers/triage-issue.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00399
Opus 5 $0.00000 $0.00199
Sonnet 5 $0.00000 $0.00080
Haiku 4.5 $0.00000 $0.00040

Measured 3d ago against content hash 26b280cd5bb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

plugins/dev-helpers/commands/triage-issue.md · 77 lines

What it actually says

Triage Issue

Systematically investigate a bug, design a fix, and create a GitHub issue with TDD approach.

Workflow

1. Problem Capture

Ask the user: "What's the problem you're seeing?" Capture their description with minimal follow-up questions. Go with their initial report — interview comes next.

2. Exploration & Diagnosis

Use the Agent tool to deeply investigate the codebase:

  • Where does the bug manifest? (which file, component, API endpoint)
  • What is the involved code path?
  • What is the root cause?
  • Are there related patterns elsewhere?

Examine source files, tests, git history, error handling, and similar working code.

3. Fix Approach

Determine:

  • The minimal change needed
  • Which modules are affected
  • What behaviors need verification
  • Is this a regression? Missing feature? Design flaw?

4. TDD Fix Design

Create ordered RED-GREEN cycles. Each cycle is one vertical slice:

  • RED: Write a test for one observable behavior
  • GREEN: Minimal code to pass
  • Repeat until the issue is fixed

Rules:

  • Tests verify behavior through public interfaces, not implementation details
  • One test at a time
  • Each test should survive internal refactors

5. GitHub Issue Creation

Generate the issue automatically using gh issue create without requesting user review first.

Use this template:

# <Issue Title>

## Problem

<Description of the bug from the user's perspective>

## Root Cause

<What's happening in the code>

## Solution

A TDD fix with ordered RED-GREEN cycles.

### Cycle 1: <Title>

**Test**: <Description of what the test verifies>

**Implementation**: <Minimal code needed to pass>

### Cycle 2: <Title>

... (repeat for each cycle)

## Verification

- [ ] All tests pass
- [ ] Behavior is fixed
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. 3d ago First seen · 77 lines · 0 tokens per session scan A 26b280cd5bb1

Subscribe to this mod's changes

triage-issue is a command published in the GitHub repository refo/claude-dev-helpers (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 399 tokens. 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-08-31.