agentleFS
silvioventresilvioventre/lovable-skills/skills/troubleshooting/debug/SKILL.md

debug

Skill4 starsChanged 4 months agoMITView on GitHub

Use when something in the project is broken, failing, or behaving unexpectedly — a build error, a red error message, a blank or white preview, a feature that stopped working, a component that disappeared, data that will not load, an edge function or permission failure, an error that keeps coming back after repeated fix attempts, or an app that runs but does the wrong thing. Also use when the user says "it's broken", "not working", "fix this error", "the screen is blank", "it worked before", "I'm stuck in a loop", or pastes a console error, stack trace, or log. Routes the symptom to the matching diagnostic playbook, finds the root cause, and fixes that rather than the symptom. Not for adding new features, and not for performance tuning unless something is actually failing.

144 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-ollama-tool, add-slack 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.
  • MicrosoftSkill

    add-ollama-tool

    Add Ollama MCP server so the container agent can call local models and optionally manage the Ollama model library.

    Also in 6 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 6 projects that use this

  • sskarzSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 5 projects that use this

  • +9 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 127 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the user's description and any pasted error, then load the one playbook that owns it.

    line 12
  2. Distinctive:

    If the symptom does not match a row, start at reference/triage.md and classify it there.

    line 33
  3. Distinctive:

    Treat working features as locked: Do not modify a functioning component to fix a broken neighbour without saying why it must change.

    line 45
  4. Distinctive:

    State the cause before the fix: Every report says what was wrong, why it produced this symptom, and what the change does about it.

    line 49
  5. Distinctive:

    If the cause could not be isolated, say that instead of shipping a speculative fix, and give the next concrete step.

    line 59

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

Debug

Find the root cause, then fix that. A change that makes the error message disappear without explaining why the error happened is not a fix — it relocates the bug.

Route the symptom

Read the user's description and any pasted error, then load the one playbook that owns it. Do not load more than one to start; the playbook will tell you if the trail leads elsewhere.

SymptomPlaybook
Build fails, red error banner, syntax or type errorreference/build-and-preview.md
Blank page, white screen, nothing rendersreference/build-and-preview.md
Preview not found, sandbox stuck spinning upreference/build-and-preview.md
"File exceeds the 10 MB per-file commit limit"reference/build-and-preview.md
No error, but the app does the wrong thingreference/behavior.md
A component or whole section vanishedreference/behavior.md
Worked before the last change, broken nowreference/behavior.md
State stale, UI not updating after an actionreference/behavior.md
Data will not load, empty list, wrong rowsreference/backend.md
Edge function failing or not deployingreference/backend.md
"Permission denied", RLS, user sees nothing or too muchreference/backend.md
Login, session, or role check misbehavingreference/backend.md
Same error keeps returning, or a new one each fixreference/loops.md
Two or more fix attempts with no progressreference/loops.md
The project feels too tangled to repairreference/loops.md
A monitoring check reported a findingreference/triage.md

If the symptom does not match a row, start at reference/triage.md and classify it there. If the user gave no symptom at all — "it's broken", "fix it" — do not guess: ask what they expected to happen and what happened instead, then route.

reference/prompts.md holds the reusable investigation recipes: investigate-without-editing, fragile-area change, codebase audit, performance audit. Pull from it whenever a playbook calls for one.

The rules that override everything

Gather evidence before editing. The exact error text, the console output, the last change that worked, and what the user expected. A fix built on a guessed cause is how one bug becomes three. reference/triage.md is the evidence checklist.

Two failed attempts means stop fixing and start investigating. Repeating a fix with small variations is the single most expensive failure mode here. After the second attempt, switch to reference/loops.md.

Change only what the diagnosis names. No "while I'm here" refactors, no defensive edits to unrelated files, no reformatting. Every extra file touched is a file that can regress, and it destroys the signal about what actually caused the fix to work.

Treat working features as locked. Do not modify a functioning component to fix a broken neighbour without saying why it must change. If a shared component has to change, name every feature that depends on it and confirm each still works.

Never silence a symptom. A null check that hides a null, an empty catch, a suppressed type error, an any cast — each converts a visible bug into an invisible one. If the real fix is out of scope, say so plainly instead of muting the evidence.

State the cause before the fix. Every report says what was wrong, why it produced this symptom, and what the change does about it. If you cannot explain why the symptom happened, you have not found the cause yet.

Report

  1. Symptom — as observed, with the error text.
  2. Root cause — what was actually wrong, and why it produced this symptom.
  3. Fix — the change, and the files touched.
  4. Verification — what you exercised to confirm it, and at what point it would have failed before.
  5. Left alone — anything you found but did not fix, and why.

If the cause could not be isolated, say that instead of shipping a speculative fix, and give the next concrete step.

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.