agentleFS
aneja5aneja5/forge-skills/skills/triage-issue/SKILL.md

triage-issue

Skill3 starsChanged 7 months agoMITView on GitHub

Use when user reports a bug, wants to file an issue, mentions "triage", when investigating a production problem before fixing it, when planning a fix that needs a TDD-shaped GitHub issue, or when a bug needs root-cause analysis before assignment.

24 other projects use a version of this, 8 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use prd-to-plan, request-refactor-plan and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • kayamanSkill

    prd-to-plan

    Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".

    Also in 5 projects that use this

  • kayamanSkill

    request-refactor-plan

    Guides creating a detailed refactor plan with tiny commits via user interview, then files it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

    Also in 8 projects that use this

  • kennethkeimSkill

    prd-to-issues

    Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.

    Also in 8 projects that use this

  • Jonathan0823Skill

    design-an-interface

    Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

    Also in 7 projects that use this

  • kennethkeimSkill

    write-a-prd

    Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.

    Also in 7 projects that use this

  • DockerSkill

    fix-issue

    Fix a single GitHub issue end-to-end: triage, research, write the fix, review, and create a PR. Use when asked to fix an issue: "fix issue 1234", "resolve #500", "create a PR for issue 200".

    Also in 3 projects that use this

  • +2 more from kayaman
  • +1 more from kennethkeim

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No GitHub repo exists — you can't create the issue

    line 22
  2. Distinctive:

    Use the Agent tool with subagent_type=Explore to find:

    line 49
  3. Distinctive:

    Look at: related source files, existing tests, recent changes (git log on relevant files), error handling in the code path, similar …

    line 56
  4. Very specific:

    Use gh issue create. Do NOT ask the user to review before creating — create it and share the URL.

    line 77
  5. Distinctive:

    RED: Write a test that [describes expected behavior]

    line 91
  6. Distinctive:

    After creating: print the issue URL and a one-line root cause summary.

    line 106

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

ThoughtReality
"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)

Look at: related source files, existing tests, recent changes (git log on relevant files), error handling in the code path, similar patterns that work correctly.

3. Identify the fix approach

Based on investigation, determine:

  • The minimal change to fix the root cause
  • Which modules/interfaces are affected
  • What behaviors need to be verified via tests
  • Whether this is a regression, missing feature, or design flaw

4. Design TDD fix plan

Ordered list of RED-GREEN cycles. Each is one vertical slice:

  • RED: A specific test that captures the broken/missing behavior
  • GREEN: The minimal code change to make that test pass

Rules: tests verify behavior through public interfaces, not implementation details. One test at a time. Each test must survive internal refactors.

5. Create the GitHub issue

Use gh issue create. Do NOT ask the user to review before creating — create it and share the URL.

<issue-template>

Problem

[What happens (actual) vs what should happen (expected). How to reproduce.]

Root Cause Analysis

[Code path, why it fails, contributing factors — no file paths or line numbers]

TDD Fix Plan

  1. RED: Write a test that [describes expected behavior] GREEN: [Minimal change to make it pass]
  2. ...

REFACTOR: [Any cleanup needed after all tests pass]

Acceptance Criteria

  • Criterion 1
  • All new tests pass
  • Existing tests still pass
</issue-template>

After creating: print the issue URL and a one-line root cause summary.

Verification

  • Codebase explored before drawing conclusions
  • Root cause identified (cause, not symptom)
  • TDD fix plan uses observable behaviors, not implementation details
  • Issue body contains no file paths or line numbers
  • Each RED/GREEN cycle is a vertical slice
  • GitHub issue created and URL returned to user

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.