agentleFS
alabenkhlifaalabenkhlifa/dayjob/skills/fix-bug/SKILL.md

fix-bug

Skill1 starsChanged 29 days agoMITView on GitHub

Use when the user reports a bug, error, exception, stack trace, failing test, or broken behavior and wants it fixed.

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use improvement, build-feature and 9 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.
  • kiminmonacoSkill

    improvement

    Guide for making improvements to existing ClaudeBar functionality using TDD. Use this skill when: (1) Enhancing existing features (not adding new ones) (2) Improving UX, performance, or code quality (3) User asks "improve X", "make Y better", or "enhance Z" (4) Small enhancements that don't require full architecture design For NEW features, use implement-feature skill instead.

    Also in 4 projects that use this

  • sirakinbSkill

    build-feature

    Autonomous task loop that picks ready tasks, implements them, updates progress.txt, commits, and repeats. Use when asked to 'build feature', 'run the loop', or 'implement these tasks'.

    Also in 5 projects that use this

  • kiminmonacoSkill

    implement-feature

    Guide for implementing features in ClaudeBar following architecture-first design, TDD, rich domain models, and Swift 6.2 patterns. Use this skill when: (1) Adding new functionality to the app (2) Creating domain models that follow user's mental model (3) Building SwiftUI views that consume domain models directly (4) User asks "how do I implement X" or "add feature Y" (5) Implementing any feature that spans Domain, Infrastructure, and App layers

    Also in 7 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 6 projects that use this

  • JetBrainsSkill

    create-plan

    Research the codebase and create an implementation plan with architecture notes, design document, and track decomposition. Use when starting a new feature or large change.

    Also in 4 projects that use this

  • JasonPaffSkill

    implement-plan

    Execute implementation plan with structured tracking and validation using subagent architecture

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 40 edited versions we read keep these.

  • 4

    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:

    Run the failing test or the reproduction steps and capture the exact failure.

    line 16
  2. Distinctive:

    Do not move on until you can point to the line.

    line 28
  3. Distinctive:

    Never: catch-and-ignore, special-case the failing input, weaken or delete a test, disable a check.

    line 34
  4. Distinctive:

    Never say it is fixed without a passing run.

    line 53

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

Fix bug

Find the root cause, fix it there, and prove nothing else broke. No workarounds.

1. Understand

Restate expected vs actual behavior, how to reproduce, and the exact error. Ask only if you cannot reproduce or the expected behavior is unclear.

2. Reproduce

Run the failing test or the reproduction steps and capture the exact failure. If it does not reproduce, say so and ask for more detail. Never fix blind.

3. Find the root cause

Trace from the symptom to its origin: read the code path, check git log -L or git blame on suspect lines and recent changes (git log --since=<date> -- <path>). Write it down before changing anything:

Root cause:    <what is wrong, at path:line>
Evidence:      <the line, log, or test output that proves it>
Introduced by: <commit, if found>

Do not move on until you can point to the line.

4. Design the fix

Fix the cause, not the symptom. Before editing, grep for other callers so the fix does not break them. If the fix changes behavior other code relies on, tell the user first.

Never: catch-and-ignore, special-case the failing input, weaken or delete a test, disable a check.

5. Implement

Make the smallest change at the root cause, in the surrounding code's style. Add a regression test if nothing covers the bug.

6. Verify

Re-run the failing test, then the full test suite, and the build if there is one. Report:

Root cause: <one line, path:line>
Fix:        <one line>
Tests:      <command> — <result>

Rules

  • The test is the spec. Change a test only if the user confirms the test itself is wrong.
  • Never say it is fixed without a passing run.

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.