agentleFS
matheusPavanelimatheusPavaneli/workbench/skills/implement-change/SKILL.md

implement-change

Skill1 starsChanged 44 days agoMITView on GitHub

Executes an audited plan from .workflow/<KEY>/sdd.json, holding the diff to the files it lists, then verifies it into .workflow/<KEY>/evidence.md. Use to carry out a plan, after plan-change.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit-test-suite, change-data-safely 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.
  • yaohuangguanSkill

    audit-test-suite

    Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.

    Also in 3 projects that use this

  • yaohuangguanSkill

    change-data-safely

    Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.

    Also in 3 projects that use this

  • SauravSrivastavSkill

    debug-failure

    Diagnose a failing test, command, or runtime behavior using evidence and produce a minimal verified fix.

    Also in 3 projects that use this

  • MicrosoftSkill

    fix-flaky-test

    Reproduces and fixes flaky or quarantined tests. Tries local reproduction first (fast), then falls back to CI reproduce workflow (reproduce-flaky-tests.yml). Use this when asked to investigate, reproduce, debug, or fix a flaky test, a quarantined test, or an intermittently failing test.

    Also in 3 projects that use this

  • srclightSkill

    refactor-safely

    This skill should be used when the user asks to "refactor", "rename", "move", "change a function signature", "extract a method", "delete unused code", "clean up", or any modification that could break callers or dependents. Provides a pre-change safety checklist using srclight's graph tools to assess blast radius before touching code.

    Also in 5 projects that use this

  • +6 more from yaohuangguan

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the repo's existing patterns.

    line 28
  2. Distinctive:

    Report honestly: If verification fails, say so with the failing line.

    line 50
  3. Very specific:

    Do not re-run sdd audit to confirm your work: it checks the plan, not the code.

    line 53
  4. Distinctive:

    Smallest diff that satisfies the step: No opportunistic refactors.

    line 70
  5. Very specific:

    A file outside the plan stops the work: Not a warning — impl check exits non-zero, and the critical zones it names raise the bar further.

    line 71
  6. Distinctive:

    Never weaken a test to make it pass: If an existing test now fails, either the change is wrong or the test encoded the old behaviour.

    line 73

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

implement-change

wb <args>    # wb not on PATH: python <this skill's directory>/../../lib/wb.py <args>

Steps

  1. Read the plan's own slices, not the whole document: sdd get <KEY> --section steps and --section files. No sdd.json? Run plan-change first. A failed audit blocks every command here by design — fix the plan, do not work around it.

    Picking work back up mid-way? status <KEY> says which planned files are already changed and what is left, without re-reading the plan.

  2. Check where you are. flow show reports the branch this work starts from, whether the current branch is protected, and any validation branch the commits will later be carried onto. flow start <KEY> --title "..." prints the branch name and base to use.
  3. Implement one step at a time, in order, touching only the listed files. Follow the repo's existing patterns. Nothing tidied, renamed or upgraded along the way: the plan's file list is the scope, and it was reviewed.
  4. Write the tests the plan named. sdd get <KEY> --section tests. Each entry says what must hold — assert that, not that a function was called. impl verify fails, naming it, on any target the branch never changed.
  5. Check the scope. impl check <KEY> after each step or two: planned files ok/pending, companion (a test, lockfile or generated file tied to a planned one), other (another plan's), overlap. It fails on a file nothing accounts for; with hooks on, that edit is refused before it lands.
  6. Verify. impl verify <KEY> runs the plan's verify commands and writes .workflow/<KEY>/evidence.md. It refuses anything that is not a known test, build or lint runner — run those yourself and say so. The first time a command appears in a checkout nothing runs: approve <KEY> then shows the commands and a token. Show it to the user; never approve on their behalf. The evidence is bound to the tree it saw, so verify last, then commit. For a bug fix, impl verify <KEY> --regression: each regression target runs on the commit the branch left, with the new tests carried in, and must fail there, then pass here. Report the result either way.
  7. Report honestly. If verification fails, say so with the failing line. Fix the code, never the evidence.

Do not re-run sdd audit to confirm your work: it checks the plan, not the code. Re-run it when you change the plan — that now passes, reporting which citations have drifted. impl check and impl verify are the checks for this stage.

When the plan is wrong

It happens, and it is not a reason to improvise. Stop, say what the plan assumed and what the code actually does, update sdd.json, re-run sdd audit <KEY>, then continue. A deviation that goes through the plan is a correction; one that does not is an unreviewed change wearing a reviewed plan's name.

A missed file: sdd amend <KEY> <path> --why "..." --lines N (--new to create it) re-audits in place; if the tier rises, add what the audit asks.

Rules

  • Smallest diff that satisfies the step. No opportunistic refactors.
  • A file outside the plan stops the work. Not a warning — impl check exits non-zero, and the critical zones it names raise the bar further.
  • Never weaken a test to make it pass. If an existing test now fails, either the change is wrong or the test encoded the old behaviour; say which, with the file and line.

Next: write-commit, then draft-pr. If the flow has a validation branch, flow carry <KEY> --to <branch> lists the commits to cherry-pick, oldest first, measured against origin/<source> after a fetch. It prints the commands; pass --execute only when the user asked you to run them.

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.