agentsclimarketplace

Issue resolution

Skill stotihv/skills/skills/issue-resolution

πŸ€– Coordinate multi-agent tasks and enhance workflow with versatile skills for autonomous planning and execution.

Install
npx -y skills add stotihv/skills --skill issue-resolution

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Systematically diagnose and fix bugs through triage, reproduction, root cause analysis, and verified fixes. Use when resolving bugs, errors, failing tests, or investigating unexpected behavior.

SKILL.md

12.1 KB, ~2.9k tokens by cl100k_base, as published. Nobody here has run it

Issue Resolution Pipeline

Systematically resolve issues through iterative diagnosis and verified fixes.

Pipeline Overview

INPUT β†’ Triage β†’ Reproduction β†’ Root Cause Analysis β†’ Impact β†’ Fix β†’ Verify
              ◄──────────────►◄────────────────────►
                    (Iterative loops allowed)
PhasePurposeOutput
0. TriageNormalize input, classify severityIssue Brief
1. ReproductionProve the bug, trace code pathRepro Report + Test
2. Root Cause AnalysisFind WHY, not just WHERERCA Report
3. Impact AssessmentBlast radius, regression riskImpact Report
4. Fix DecompositionBreak into beads.beads/*.md
5. VerificationProve fix works, no regressionsPassing tests

Phase 0: Triage

Normalize different input types to a structured Issue Brief.

Input Types

TypeTriage Strategy
Vague reportClarify β†’ Explore β†’ Reproduce
Error/Stack traceParse trace β†’ Locate code β†’ Reproduce
Failing testRun test β†’ Extract assertion β†’ Trace

Vague Report Triage

User: "Login is broken"
         β”‚
         β–Ό
Ask clarification questions:
β€’ What error do you see?
β€’ When did it start working / stop working?
β€’ What steps trigger it?
β€’ Specific user/browser/environment?
         β”‚
         β–Ό (if user can't clarify)
Explore:
β€’ mcp__gkg__search_codebase_definitions: Find auth/login related code
β€’ git log: Recent changes in area
β€’ Check logs if available

Error/Stack Trace Triage

Parse the stack trace:
β€’ Extract file:line locations
β€’ mcp__gkg__get_definition on functions in trace
β€’ Read surrounding context
         β”‚
         β–Ό
Identify reproduction conditions:
β€’ What input caused this?
β€’ Can we write a test?

Failing Test Triage

Run test in isolation:
β€’ bun test <file> --filter "<test name>"
β€’ Read test file for setup/assertions
β€’ Check git log: was it passing before?
         β”‚
         β–Ό
Trace implementation:
β€’ What code does test exercise?
β€’ mcp__gkg__get_references on tested function
β€’ Recent changes to implementation?

Severity Classification

Determines reproduction requirements:

SeverityReproduction Required
CRITICAL (production, security)Failing test REQUIRED
REGRESSION (was working)Failing test REQUIRED
RACE CONDITION (timing)Failing test REQUIRED
LOGIC BUGFailing test PREFERRED
UI/VISUALManual + screenshot OK
PERFORMANCEBenchmark/profile OK
QUICK FIX (obvious cause)Manual repro OK

Issue Brief Template

Save to history/issues/<id>/brief.md:

# Issue Brief: <Short Title>

**Severity**: CRITICAL / HIGH / MEDIUM / LOW
**Type**: Regression / Edge case / Race condition / UI / Performance / Other
**Repro Required**: Failing test / Manual OK

## Symptom

<What is happening>

## Expected Behavior

<What should happen>

## Reproduction

<Steps, test command, or code path>

## Evidence

<Error message, stack trace, test output>

## Affected Area

<Files, modules, features involved>

## Timeline

<When started, recent changes if known>

Phase 1: Reproduction

Prove the bug exists and trace the code path.

If Failing Test Required

# Create test file
# packages/<area>/src/__tests__/<feature>.regression.test.ts

# Test should:
# 1. Set up conditions that trigger bug
# 2. Assert expected behavior (currently fails)
# 3. Be deterministic

Reproduction Checklist

  • Bug is reproducible on demand
  • Exact error/behavior captured
  • Minimal reproduction (simplest case that fails)
  • Code path identified (stack trace or tracing)

Code Path Tracing

mcp__gkg__get_definition     β†’ Find where error originates
mcp__gkg__get_references     β†’ Find callers
git blame <file>       β†’ Who changed it, when
git log -p <file>      β†’ What changed recently

Repro Report Template

Save to history/issues/<id>/repro.md:

# Reproduction Report: <Issue Title>

## Reproduction Method

☐ Failing test: `<test file and name>`
☐ Manual: <steps>

## Error/Behavior Captured

<Exact error message, stack trace>

## Code Path

1. Entry: `<file>:<line>` - <function>
2. Calls: `<file>:<line>` - <function>
3. Fails at: `<file>:<line>` - <reason>

## Recent Changes (if relevant)

- <commit>: <summary>

Phase 2: Root Cause Analysis

Find WHY the bug happens, not just WHERE.

RCA Framework

STEP 1: Generate hypotheses (3-5)
         β”‚
         β–Ό
STEP 2: Gather evidence for/against each
         β”‚
         β–Ό
STEP 3: Eliminate hypotheses
         β”‚
         β–Ό
STEP 4: Confirm root cause

Bug Type β†’ RCA Strategy

Bug TypeStrategyKey Tools
RegressionFind breaking changegit bisect, git blame
Edge caseAnalyze boundary inputsType inspection, boundary tests
Race conditionTrace async flowTiming logs, async analysis
Data corruptionTrace state changesData flow analysis
External depCheck version/API changesChangelogs, API docs

Oracle for RCA

Hypothesis Generation:

oracle(
  task: "Generate root cause hypotheses",
  context: """
    Symptom: <error>
    Code path: <trace>
    Recent changes: <git log>

    Generate 3-5 hypotheses ranked by likelihood.
    For each, what evidence would support/refute it?
  """,
  files: ["<affected files>"]
)

Hypothesis Validation:

oracle(
  task: "Validate root cause hypothesis",
  context: """
    Hypothesis: <proposed cause>
    Evidence: <gathered evidence>

    1. Does evidence support or refute?
    2. Explain causal chain: cause β†’ symptom
    3. What would confirm this?
  """,
  files: ["<relevant files>"]
)

Iteration: RCA β†’ Reproduction Loop

If hypothesis needs more evidence:

IN RCA: "Need timing logs to confirm race condition"
    β”‚
    β–Ό
BACK TO REPRO:
β€’ Add instrumentation
β€’ Run with specific conditions
β€’ Capture new evidence
    β”‚
    β–Ό
RETURN TO RCA with new evidence

RCA Report Template

Save to history/issues/<id>/rca.md:

# Root Cause Analysis: <Issue Title>

## Iteration: <N>

## Hypotheses Considered

### Hypothesis A: <Description>

- **Likelihood**: HIGH / MEDIUM / LOW
- **Supporting evidence**: ...
- **Refuting evidence**: ...
- **Verdict**: βœ“ CONFIRMED / βœ— ELIMINATED

### Hypothesis B: ...

## Root Cause (Confirmed)

**Cause**: <Clear statement>

**Causal chain**:

1. <Step> leads to
2. <Step> leads to
3. <Symptom>

## Why This Happened

<Underlying reason - missing validation, wrong assumption, etc.>

## Fix Approach

**Immediate**: <What to change>
**Preventive**: <How to prevent similar bugs>

Phase 3: Impact Assessment

Before fixing, understand blast radius.

Impact Analysis

mcp__gkg__get_references <affected function>
    β†’ Who else calls this?

Grep for related patterns
    β†’ Similar code that might have same bug?

Review test coverage
    β†’ What tests cover this area?

Regression Risk

FactorRisk Level
High usage functionHIGH
Shared utilityHIGH
Public API changeHIGH
Internal helperLOW
Isolated moduleLOW

Spike for Complex Fixes

If fix approach is uncertain:

bd create "Spike: Validate fix approach for <issue>" -t task -p 0

Execute via MULTI_AGENT_WORKFLOW, write to .spikes/<issue-id>/.

Impact Report Template

Save to history/issues/<id>/impact.md:

# Impact Assessment: <Issue Title>

## Blast Radius

### Direct Impact

- <File/function directly changed>

### Callers Affected

- <List from mcp__gkg__get_references>

### Related Code

- <Similar patterns that may need same fix>

## Regression Risk

**Level**: HIGH / MEDIUM / LOW
**Reason**: <Why this risk level>

## Test Coverage

- Existing tests: <list>
- Tests to add: <list>

## Fix Validation

☐ Spike completed (if needed): `.spikes/<id>/`
☐ Fix approach validated

Phase 4: Fix Decomposition

Break fix into beads.

Simple Fix (Single Bead)

bd create "Fix: <issue title>" -t bug -p <priority>

Bead includes:

  • Root cause reference
  • Fix implementation
  • Test (failing β†’ passing)
  • Docs update (if behavior change)

Complex Fix (Multiple Beads)

bd create "Epic: Fix <issue>" -t epic -p <priority>
bd create "Add regression test for <issue>" -t task --blocks <epic>
bd create "Fix <component A>" -t bug --blocks <epic> --deps <test>
bd create "Fix <component B>" -t bug --blocks <epic> --deps <test>
bd create "Update docs for <behavior change>" -t task --blocks <epic> --deps <fix-a>,<fix-b>

Fix Bead Template

# Fix: <Issue Title>

**Type**: bug
**Priority**: <0-4>
**Fixes**: <issue reference>

## Root Cause

<From RCA report>

## Fix Implementation

<What to change and why>

## Files to Modify

- `<file>`: <change description>

## Acceptance Criteria

- [ ] Regression test passes
- [ ] Original symptom no longer reproducible
- [ ] No new test failures
- [ ] `bun run check-types` passes
- [ ] `bun run build` passes

Phase 5: Verification

Prove fix works and nothing else broke.

Verification Checklist

# 1. Regression test passes
bun test <regression-test-file>

# 2. Original symptom gone
<manual verification or test>

# 3. No new failures
bun run test

# 4. Types and build
bun run check-types
bun run build

Iteration: Verify β†’ RCA Loop

If fix doesn't work:

Test still fails after fix
    β”‚
    β–Ό
Root cause was wrong or incomplete
    β”‚
    β–Ό
BACK TO RCA:
β€’ Eliminate current hypothesis
β€’ Generate new hypotheses
β€’ Update RCA Report with iteration

Verify β†’ Impact Loop

If fix causes regressions:

New test failures after fix
    β”‚
    β–Ό
Fix has unintended side effects
    β”‚
    β–Ό
BACK TO IMPACT:
β€’ Reassess blast radius
β€’ Consider alternative fix approach

Loop Limits

Prevent infinite iteration:

LoopSoft LimitHard LimitAt Hard Limit
RCA β†’ Repro24Escalate / pair debug
RCA β†’ Triage12Re-evaluate original report
Verify β†’ RCA23Oracle deep review

Quick Reference

Tool Selection

NeedTool
Parse stack traceRead + mcpgkgget_definition
Find callersmcpgkgget_references
Recent changesgit log, git blame
Binary search commitsgit bisect
Reasoning about causeoracle
Validate fix approachSpike via MULTI_AGENT_WORKFLOW

Common Mistakes

  • Fixing symptom, not cause β†’ Leads to recurrence
  • Skipping reproduction β†’ Can't verify fix
  • No regression test β†’ Bug returns later
  • Ignoring impact β†’ Fix breaks other things
  • Not iterating β†’ Wrong diagnosis persists

What ships with it: 3 files

17.9 KB alongside SKILL.md

reference/

Gives 1 of the 12 instructions most debug triage skills give in ~2.9k tokens

Counted across 839 of the 1,149 authors here whose files we hold, read 2026-08-07

  • investigate root cause before proposing any fixhere, and in 102 of 839, across 67 files
  • read error messages completelyin 89 of 839, across 49 files
  • create a failing test case before fixingin 84 of 839, across 46 files
  • reproduce the issue consistentlyin 82 of 839, across 41 files
  • change one variable at a timein 82 of 839, across 42 files
  • check recent changesin 74 of 839, across 36 files
  • write the regression test before fixingin 74 of 839, across 40 files
  • fix the root cause not the symptomin 60 of 839, across 45 files
  • implement a single fix at a timein 59 of 839, across 20 files
  • trace data flow backward to the sourcein 50 of 839, across 20 files
  • remove all debug instrumentationin 49 of 839, across 13 files
  • form a single hypothesisin 48 of 839, across 18 files

Said here and by no other author read

  • assess the blast radius of the proposed fix
  • break complex fixes into multiple tasks
  • iterate through phases if initial fixes fail
  • escalate or pair debug at hard loop limits

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.