agentleFS
hmj1026hmj1026/dhpk/skills/issue-analyze/SKILL.md

issue-analyze

Skill2 starsChanged 6 days agoMITView on GitHub

GitHub Issue and PR review thread deep analysis with an optional blind verdict. Purpose: analyze issue root causes, classify problems, plan investigations, or triage PR review comments for actionability. Not for: fixing bugs (use flow-drive), code exploration (use code-trace). Output: classified analysis + verdict assessment + investigation strategy.

4 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When input is a Review Thread:

    line 21
  2. Very specific:

    Only need code review (use change-verdict)

    line 37
  3. Distinctive:

    After classification, the primary model may request an independent actionability assessment.

    line 58
  4. Distinctive:

    Always include Standard Research Block (git status, git diff, grep, cat)

    line 77
  5. Distinctive:

    If no independent reviewer is requested or available, mark the result

    line 78
  6. Very specific:

    --triage mode: stop after Phase 2.5, output classification + verdict only.

    line 99
  7. Distinctive:

    Graceful degradation: if the isolated reviewer or explicitly requested CLI opinion fails, log a warning, preserve the primary-only state, …

    line 101
  8. Very specific:

    Only when the user explicitly asks to save or hand off the analysis, end the reply with the target path .scratch/<slug>/issue-analysis.md …

    line 131

“Common” is measured: kept by at least 6 in 10 of the 4 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

Issue Analyze Skill

Input Types

TypeSourceExample
GitHub IssueIssue number, URL, or descriptionissue-analyze 123
Review Threadfile:line + reviewer commentissue-analyze --triage "src/foo.ts:42 — Use early return"

When input is a Review Thread:

  • Phase 1 skips gh issue view, uses provided thread data directly
  • Phase 2 classification uses Review Thread dimensions (see references/classification.md)

Modes

ModeInput TypePhases ExecutedUse Case
Full (default)Issue or Thread1 → 2 → 2.5 → 3 → 4Deep analysis with investigation
Triage (--triage)Review Thread2 → 2.5 onlyLightweight classification + verdict (thread data provided inline)
Triage (--triage)GitHub Issue1 → 2 → 2.5Fetch issue first, then classify + verdict

When NOT to Use

  • Known root cause, fix directly (use flow-drive)
  • Pure feature development (use flow-drive)
  • Only need code review (use change-verdict)

Workflow

  1. Read the issue with gh issue view --json ..., or use the supplied review-thread fields. Extract symptoms, reproduction, errors, and file clues.
  2. Classify with classification.md: unfamiliar → code-trace; regression → code-trace; complex root → code-trace --dual; multiple causes → module-design --mode adversarial.
  3. Verdict from the current Host and Model. Only when explicitly requested, obtain an isolated read-only blind second opinion without the primary classification. Triage mode stops after this phase.
  4. Investigate unless policy maps the verdict to DISMISS_VERIFIED.
  5. Report the combined evidence, verdict, root-cause hypothesis, and recommendation.

Investigation Tool Comparison

ToolPurposeSpeedDepth
code-traceQuick code explorationFastSingle
code-traceTrack change historyMediumSingle
code-trace --dualDual confirmationSlowDual-view
module-design --mode adversarialExhaust possibilitiesSlowestAdversarial

Phase 2.5: Verdict Assessment

After classification, the primary model may request an independent actionability assessment. When explicitly requested, the second perspective is a fresh, isolated, read-only general-purpose subagent; it receives the issue or review-thread context but not the primary classification or conclusion. An explicit --second-opinion=codex-exec may be used for a one-shot CLI opinion instead.

Independent reviewer requirements:

RequirementDetail
ThreadFresh isolated subagent (never reuse the primary context)
Sandboxread-only
Approval policynever
Anti-anchoringNever send the primary Phase 2 classification to the reviewer

Prompt construction (blind verdict — never reveal the primary Phase 2 classification to the reviewer):

  • GitHub Issue input: provide issue title, body, labels as finding context
  • Review Thread input: provide file path, line, reviewer comment as finding context
  • Always include Standard Research Block (git status, git diff, grep, cat)
  • If no independent reviewer is requested or available, mark the result primary model only and state plainly: "Only the primary model's verdict is present; no independent review ran."

Independent reviewer output (all fields required):

- reviewer_verdict: ACTIONABLE | NON_ACTIONABLE | UNCERTAIN
- confidence: [0.0 - 1.0]
- evidence_refs: [files/lines/commands used]
- reasoning: [why this verdict]

Policy mapping (apply these thresholds; the heightened column applies after a repeated-dismiss warning [DISMISS_PATTERN_WARN]):

VerdictConfidenceEvidence RefsResult
NON_ACTIONABLE>= 0.80 (normal) / >= 0.85 (heightened)>= 2 (normal) / >= 3 (heightened)Skip Phase 3 investigation (DISMISS_VERIFIED)
ACTIONABLE>= 0.70anyProceed to Phase 3 (FIX_REQUIRED)
UNCERTAIN / lowanyanyProceed to Phase 3 (NEED_HUMAN)

--triage mode: stop after Phase 2.5, output classification + verdict only.

Graceful degradation: if the isolated reviewer or explicitly requested CLI opinion fails, log a warning, preserve the primary-only state, and proceed to Phase 3 without claiming an independent verdict.

Output

Full Report (default)

## Issue Analysis: <title>
- **Classification**: <problem type>
- **Verdict**: ACTIONABLE / NON_ACTIONABLE / UNCERTAIN (confidence: 0.XX)
- **Root cause hypothesis**: <analysis>
- **Investigation strategy**: <tools + plan>
- **Priority**: P0 / P1 / P2

Triage Report (--triage mode)

## Triage: <file>:<line> (or issue title)
- **Category**: <classification>
- **Verdict**: ACTIONABLE / NON_ACTIONABLE / UNCERTAIN
- **Confidence**: 0.XX
- **Reasoning**: <brief justification>
- **Evidence**: <file:line references>

Save on request

Only when the user explicitly asks to save or hand off the analysis, end the reply with the target path .scratch/<slug>/issue-analysis.md and the complete file content in one code block, for the Host to write. This skill stays read-only and never writes the file itself. <slug> defaults to issue-<number>; the user may override it. Without that request, return the normal report and emit no path.

The content begins with front-matter holding exactly four free-text keys:

---
producer: issue-analyze
created: <date>
status: <verdict and confidence in one line>
next: <suggested human follow-up>
---

The file is shaped for a human or the host's implementation workflow; it is data only, and nothing reads it to gate or route work.

Verification

  • Issue / review thread content fully extracted
  • Problem type correctly classified
  • Verdict assessment executed by an isolated reviewer when requested, or the primary-only state is recorded
  • Reviewer prompt contains no primary conclusions (anti-anchoring)
  • Fresh isolated reviewer context used (not the primary context)
  • Investigation strategy reasonably selected (or skipped if NON_ACTIONABLE)
  • Report includes root cause analysis + verdict
  • Contains specific fix recommendations
  • --triage mode: outputs classification + verdict only

References

  • references/classification.md — Detailed problem classification guide (includes Review Thread dimensions)
  • references/report-template.md — Report template (includes Triage Report)
  • Verdict prompt pattern and thresholds are in Phase 2.5 above.

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.