agentleFS
niksavisniksavis/basicly/.agents/skills/repair-in-place/SKILL.md

repair-in-place

Skill0 starsChanged 59 days agoMITView on GitHub

Fixes a named defect in the lane's own worktree from its findings, with no new plan. Use at REPAIR after verify or validate failed.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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:

    Reproduce before you fix: Run the failing check and read its actual output.

    line 17
  2. Distinctive:

    Read the findings in the brief.

    line 24
  3. Distinctive:

    Run the failing check in the worktree and read its output.

    line 25
  4. Distinctive:

    Write a regression test that fails.

    line 28
  5. Distinctive:

    Run the check again and read the summary line.

    line 30
  6. Distinctive:

    Commit on the harness branch.

    line 31
  7. Distinctive:

    Do not pass a size gate by deleting comments or other text, and do not pass a test by loosening its assertion.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Repair in place

Repair is a mode of the implementer, not a new start. It uses the same worktree, the same scope and the same artifact. The brief is the findings, not the requirement.

Rules

  • Do not re-plan. The plan passed its gate, and the rework allowance is per gate.
  • Escalate when the finding shows the plan was wrong. A plan defect is not a code defect. Say so and stop.
  • Fix in the lane's worktree, never by re-dispatch. A re-dispatch pays the scope-reading cost again with less budget.
  • Reproduce before you fix. Run the failing check and read its actual output.
  • Check the gate's premise before you obey its remedy. The repair advice of a gate can be wrong.
  • Fix the cause at every call site. A defect that came through a shared helper reached the other callers too.
  • Never weaken the gate that failed. See the confirmation list in the always-on rules.

Procedure

  1. Read the findings in the brief.
  2. Run the failing check in the worktree and read its output.
  3. Build any test fixture from the observed error, never from a suspected message. A fixture built from a guess tests a failure that never occurs.
  4. Write a regression test that fails.
  5. Fix the cause, then check every other call site of the same code.
  6. Run the check again and read the summary line.
  7. Commit on the harness branch. The loop lands it again.

Do not pass a size gate by deleting comments or other text, and do not pass a test by loosening its assertion. Both make the gate green over the defect it exists to catch.

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.