agentleFS
BipBop-LabsBipBop-Labs/bipbop-skills/skills/fix/SKILL.md

fix

Skill3 starsChanged 5 days agoMITView on GitHub

Fix a bug at its root cause, with a failing repro first and proof on the same surface. Use for /fix, or when the user reports a bug, an error, a crash, a regression, or a failing test, or asks to fix, debug, or \"arregla\" something.

97 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use genie-hacks, workfly 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.
  • automagik-devSkill

    genie-hacks

    Browse, search, and contribute community hacks — real-world patterns for provider switching, teams, skills, hooks, cost optimization, and more.

    Also in 3 projects that use this

  • automagik-devSkill

    workfly

    Discover a procedure and build its saved workflow — dynamic discovery, drafted script, adversarial verification, landed in the catalog.

    Also in 3 projects that use this

  • VulnesisSkill

    container-scan

    Dockerfile / Containerfile / compose analysis plus optional Trivy / Grype / Syft composition when those binaries are present. Use when reviewing a Dockerfile PR, gating `docker build`, building an image SBOM, evaluating base-image risk, or auditing a registry image for CVEs.

    Also in 3 projects that use this

  • VulnesisSkill

    dep-resolve

    Dependency-conflict resolution when a `fix` version bump fails — diagnose the peer-dep tree, find a compatible safe version set, propose package-manager overrides (`overrides`/`resolutions`/`replace`/`[patch]`), fall back to safe-harbour inline patching. Use when an upgrade is blocked by transitive constraints, a peer-dep conflict surfaces, or you need to override a vulnerable transitive without bumping the parent.

    Also in 3 projects that use this

  • bamlabSkill

    eol-check

    Compare the versions of the platform dependencies this repo runs on (Node, React, React Native, Expo, Next.js, Docusaurus, TypeScript, Firebase Functions runtime) against endoflife.date and npm, and say what to upgrade. Use for an EOL / maintenance / "are we up to date" check, or from the factory's weekly run.

    Also in 3 projects that use this

  • +7 more from Vulnesis

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 88 edited versions we read keep these.

  • 7

    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:

    Every line you ship must come from runtime evidence.

    line 8
  2. Distinctive:

    If the state that triggered the bug is legitimate, handle it where the code broke.

    line 15
  3. Distinctive:

    If the state must never exist, find the code that produced it.

    line 16
  4. Distinctive:

    Fix the pattern: Search for every place with the same fault and fix them all.

    line 17
  5. Distinctive:

    Test first: When the bug has a cheap local test, write a test that fails on the bug.

    line 19
  6. Distinctive:

    Verify on the same surface: Run the original repro again on the surface from step 1.

    line 20
  7. Distinctive:

    If the cause took a deep search to find, propose the cheap, always-on signal (a log, a metric, an assertion) that would have shown it at …

    line 21

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

Every line you ship must come from runtime evidence. A change that "might help" is a hypothesis, not a fix: do not ship it. If the evidence refutes a hypothesis, revert the changes it caused.

Procedure

  1. Reproduce. Reproduce the bug yourself, on the surface where it happens (browser, API, CLI, worker, test). If it does not reproduce, make the trigger: tighten the conditions, build the input, or add logging until it fires. Ask the user only when you cannot reach that surface, and say why.
  2. Find the cause. Write the candidate hypotheses. Each pass, pick the check that removes the most hypotheses, run it, and read the real state (logs, values, queries, git history of the code). Do not guess. Stop when one mechanism is left and runtime evidence confirms it.
  3. Decide what is wrong. The root cause is the first place where the system does something it must not do, or does not handle a state it must handle.
    • If the state that triggered the bug is legitimate, handle it where the code broke.
    • If the state must never exist, find the code that produced it. A guard, retry, swallowed error, or default at the symptom only hides the bug.
  4. Fix the pattern. Search for every place with the same fault and fix them all.
  5. Leave it better. If the design of the section caused the bug (a decision in two places, booleans that must stay in sync, a wrapper that hides state), refactor that section in the same change, with code-principles. Keep the refactor inside the code the bug touches. Ship the smallest change that fixes the cause.
  6. Test first. When the bug has a cheap local test, write a test that fails on the bug. Commit it before the fix, so the history shows it failing and then passing. Skip the test when it would be expensive or unclear, and say why.
  7. Verify on the same surface. Run the original repro again on the surface from step 1. "Inconclusive" or a different surface is not a pass. Unit tests show branch behavior, not that the bug is gone.
  8. If the cause took a deep search to find, propose the cheap, always-on signal (a log, a metric, an assertion) that would have shown it at once.

Reply

What was broken, the root cause, the fix, what you refactored and why, and how you verified. Paste the repro output before and after the fix, as it is.

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.