agentleFS
REPOZYREPOZY/superpowers-optimized/skills/error-recovery/SKILL.md

error-recovery

Skill146 starsChanged 7 months agoMITView on GitHub

Maintains a project-specific known-issues.md mapping recurring errors to their solutions. Consulted automatically by systematic-debugging before investigation. Saves time by avoiding rediscovery of known problems across sessions. Triggers on: "save this fix", "remember this error", "known issues", or automatically when systematic-debugging resolves a recurring error.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use squad-commands, architectural-proposals 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.
  • Microsoft AzureSkill

    squad-commands

    Categorized catalog of common Squad operations. Coordinator reads this file and presents it as an interactive menu when the user asks for available commands or help.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    architectural-proposals

    How to write comprehensive architectural proposals that drive alignment before code is written

    Also in 3 projects that use this

  • +10 more from Azure

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting any debugging investigation:

    line 22
  2. Very specific:

    Check if known-issues.md exists.

    line 23
  3. Distinctive:

    Search it for the error message, error code, or failing test name.

    line 24
  4. Distinctive:

    If a match is found, try the documented solution first before full investigation.

    line 25
  5. Distinctive:

    After resolving a bug that is likely to recur:

    line 29
  6. Distinctive:

    Test failures caused by external state (database needs seeding, service needs starting)

    line 32
  7. Very specific:

    Keep known-issues.md under 50 entries.

    line 59
  8. Distinctive:

    After resolving a debugging session, offer to add the error→solution mapping if it meets the "When to Update" criteria.

    line 69

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

Error Recovery Intelligence

Maintain a project-level error→solution mapping to avoid rediscovering known problems.

File Location

known-issues.md at the project root (same level as package.json, Cargo.toml, etc.).

When to Consult

Before starting any debugging investigation:

  1. Check if known-issues.md exists.
  2. Search it for the error message, error code, or failing test name.
  3. If a match is found, try the documented solution first before full investigation.

When to Update

After resolving a bug that is likely to recur:

  • Environment-dependent errors (missing services, port conflicts, env vars)
  • Configuration errors (wrong versions, missing dependencies, build flags)
  • Test failures caused by external state (database needs seeding, service needs starting)
  • Platform-specific issues (Windows vs. Unix path handling, line endings)
  • Errors that took significant investigation to diagnose

Do NOT record:

  • One-off logic bugs (the fix is in the code; the commit message has the context)
  • Errors already documented in the project's README or docs
  • Transient network/API failures

Entry Format

Each entry must be concise and actionable:

## [Short description]

**Error:** `exact error message or pattern`
**Cause:** One sentence explaining why this happens.
**Fix:**
```bash
exact command or steps to resolve

Context: When this typically occurs (e.g., "after fresh clone", "on Windows", "when DB is not running").


## File Management

- Keep `known-issues.md` under 50 entries. If it grows beyond that, prune entries that haven't been relevant in months.
- Group entries by category (Environment, Dependencies, Tests, Build, Platform).
- **When an issue is fixed, strike the heading — do not delete the entry.** Change `## Some error` to `## ~~Some error~~ ✅ Fixed in vX.Y.Z` and leave the body in place.

  The session-start hook and the keyword-recall hook both skip headings that begin with `## ~~`, so a struck entry costs nothing at injection time while remaining greppable. Deleting it throws away the diagnosis — and a "fixed" error that regresses is exactly the case where the old root-cause analysis is worth most. Delete only when the entire subsystem the entry describes no longer exists.

## Integration

- `systematic-debugging` consults this file in Phase 1 (Investigate) before generating hypotheses.
- `using-superpowers` reads this file during the entry sequence when it exists.
- After resolving a debugging session, offer to add the error→solution mapping if it meets the "When to Update" criteria.

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.