agentleFS
DROOdotFOODROOdotFOO/agent-skills/skills/focused-fix/SKILL.md

focused-fix

Skill1 starsChanged 3 months agoMITView on GitHub

Structured 5-phase bug fix methodology with root cause verification. TRIGGER when: user wants to fix a bug, debug an issue, investigate a failure, or says "focused fix". Also when a fix attempt has failed and the user wants a systematic approach. DO NOT TRIGGER when: user wants architecture analysis (use architect), QA triage (use qa), or code review (use code-review).

6 other projects use a version of this.

Adopted by

Most recently taken up by

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 6 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:

    If you jump to a fix before completing the first three phases, you will:

    line 24
  2. Distinctive:

    Before starting any fix, check if the bug reveals an architectural problem:

    line 41
  3. Distinctive:

    If yes, the feature boundary is wrong.

    line 48
  4. Distinctive:

    If any strike hits, note the architectural issue.

    line 50
  5. Distinctive:

    All tests passing after the fix, including downstream consumers, with a follow-up issue filed for any architectural problems discovered.

    line 57

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

focused-fix

Structured 5-phase bug fix methodology. No shortcuts.

The Iron Law

NO FIXES WITHOUT COMPLETING SCOPE -> TRACE -> DIAGNOSE FIRST.

If you jump to a fix before completing the first three phases, you will:

  • Fix symptoms, not causes
  • Break something downstream
  • Waste more time than you saved

5 Phases Overview

PhaseNamePurpose
1SCOPEMap the feature boundary -- what is this code supposed to do?
2TRACEMap all dependencies flowing in and out of the scoped area
3DIAGNOSESystematically find every issue in the scoped area
4FIXRepair in strict order: deps -> types -> logic -> tests -> integration
5VERIFYAll tests pass, including downstream consumers

3-Strike Architecture Check

Before starting any fix, check if the bug reveals an architectural problem:

  1. Strike 1: Is this the same kind of bug you have fixed before in this codebase? If yes, the architecture is inviting this bug class.
  2. Strike 2: Would this bug be impossible if a dependency were inverted or an interface existed? If yes, note the architectural improvement.
  3. Strike 3: Does fixing this bug require changing more than 3 files? If yes, the feature boundary is wrong.

If any strike hits, note the architectural issue. Fix the bug first (do not refactor mid-fix), then file a follow-up issue for the architectural problem.

What You Get

  • A verified bug fix produced through five sequential phases: scope, trace, diagnose, fix, verify.
  • Root cause identification with an architectural strike assessment noting whether the bug class is systemic.
  • All tests passing after the fix, including downstream consumers, with a follow-up issue filed for any architectural problems discovered.

Reading guide

Working onRead
Executing the 5 phases, risk labels, red flags, anti-patternsfive-phases

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.