agentleFS
aemerson-commitsaemerson-commits/shareable-skills/skills/persistent-issue/SKILL.md

persistent-issue

Skill1 starsChanged 8 months agoMITView on GitHub

Escalating diagnostic router for persistent issues. Classifies, dispatches Team A-E, auto-escalates in cascade mode. Triggers: 'not fixed', 'still broken', 'same error'.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    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:

    Read conversation history for:

    line 24
  2. Distinctive:

    Run git log --oneline -15 for recent commits related to the area

    line 28
  3. Distinctive:

    Check memory/ for prior encounters with this issue

    line 29
  4. Distinctive:

    Start with classified team

    line 66
  5. Distinctive:

    If unresolved -> try next in priority: A -> B -> D -> C -> E

    line 67
  6. Distinctive:

    After the diagnostic team identifies the root cause:

    line 74
  7. Very specific:

    If --cascade, implement the fix and verify

    line 77
  8. Distinctive:

    Update the Evidence Document with the resolution

    line 78
  9. Distinctive:

    If fix works: done. If not: escalate to next team (cascade) or report back (default)

    line 79
  10. Distinctive:

    NEVER re-try the same approach that already failed — the Evidence Document tracks prior attempts

    line 82
  11. Distinctive:

    NEVER skip triage — even if you think you know the category, verify against evidence

    line 83
  12. Distinctive:

    NEVER diagnose AND fix in the same agent — separate concerns (Pattern 2 from /cascade-orchestration)

    line 84
  13. Distinctive:

    If all 3 cascade teams fail, STOP and present findings to user — don't loop

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Persistent Issue — Diagnostic Escalation Router

Triggers when a fix attempt fails and the user reports the issue persists. Classifies the issue, dispatches the right diagnostic team, and optionally auto-escalates through all teams.

Arguments

  • --cascade: Auto-escalate through all diagnostic teams without stopping (default: stop after each team and report)
  • First argument (optional): Issue description or "same" to reference the current conversation

Trigger Words

Activate PROACTIVELY when the user says: "not fixed", "still happening", "still broken", "same error", "tried that", "didn't work", "nope still there", "happening again"

Phase 1: Triage (single agent, model: "opus")

Dispatch one triage agent to classify the issue:

Agent: Issue Classifier

  1. Read conversation history for:
    • Original symptom description
    • Fix attempts made (code changes, deploys, config changes)
    • How the symptom changed (or didn't) after each attempt
  2. Run git log --oneline -15 for recent commits related to the area
  3. Check memory/ for prior encounters with this issue
  4. Classify into exactly ONE primary category:
CategorySignalRoute To
A: Wrong Root CauseFix applied, symptom persists identically/deep-root-cause
B: Wrong LayerFix applied, behavior changed but still broken/full-stack-trace
C: Multiple FactorsFix partially works, or works inconsistently/isolation-test
D: IntermittentIssue comes and goes, seemed fixed then returned/temporal-forensics
E: Regression"This used to work" / broke after a recent change/regression-bisect
  1. Build the Evidence Document:
## Persistent Issue: [title]
### Symptom
[exact description]
### Prior Attempts
1. [what was tried] -> [what happened]
2. [what was tried] -> [what happened]
### Classification: [A/B/C/D/E] — [reason]
### What We Know For Certain
- [verified fact 1]
- [verified fact 2]
### What We Assumed But Haven't Verified
- [assumption 1]
- [assumption 2]

Phase 2: Dispatch

Present the Evidence Document and classification to the user.

Default mode: Report classification and invoke the appropriate diagnostic skill. Wait for user feedback after each team.

Cascade mode (--cascade): Invoke the classified skill first. If it doesn't resolve the issue (agent reports "no root cause found" or fix doesn't work), automatically escalate to the next team in order: A -> B -> D -> C -> E. Skip the team already tried. Continue until resolved or all teams exhausted.

Escalation Order (cascade mode)

  1. Start with classified team
  2. If unresolved -> try next in priority: A -> B -> D -> C -> E
  3. Between each team, update the Evidence Document with new findings
  4. Pass the accumulated Evidence Document to each subsequent team
  5. Max 3 teams per cascade (context budget protection)

Phase 3: Resolution

After the diagnostic team identifies the root cause:

  1. Present the finding with specific file:line references
  2. Propose the fix
  3. If --cascade, implement the fix and verify
  4. Update the Evidence Document with the resolution
  5. If fix works: done. If not: escalate to next team (cascade) or report back (default)

Anti-Patterns

  • NEVER re-try the same approach that already failed — the Evidence Document tracks prior attempts
  • NEVER skip triage — even if you think you know the category, verify against evidence
  • NEVER diagnose AND fix in the same agent — separate concerns (Pattern 2 from /cascade-orchestration)
  • If all 3 cascade teams fail, STOP and present findings to user — don't loop

Integration

  • Reads from: /debug-collaborate findings (if previously run)
  • Feeds into: project-specific troubleshooting skill (add new patterns discovered)
  • Updates: memory/ with persistent issue patterns for future sessions

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.