agentleFS
MagicJoshMagicJosh/ras/skills/finalize/SKILL.md

finalize

Skill1 starsChanged 54 days agoMITView on GitHub

Use when the implementation of an approved spec is done and you are about to report the result. Runs the done step. Find defects, cut excess code, run fresh checks, write an honest report, archive the spec.

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use simplify and debug.

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.
  • Hugging FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

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 14 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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Do these five steps in order.

    line 8
  2. Distinctive:

    Read your own diff.

    line 12
  3. Distinctive:

    Run git status --short. Name every changed file that the blast radius did not list.

    line 16
  4. Distinctive:

    Delete from this change's own diff:

    line 23
  5. Distinctive:

    Run every acceptance check now, after the last change.

    line 33
  6. Distinctive:

    Put no secrets in the report.

    line 46
  7. Distinctive:

    Run this Bash command, with today's date and a short slug.

    line 50

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

Finalize

Do these five steps in order. Do not skip one.

1. Defects

Read your own diff.

  • Spec compliance first: does each criterion and non-goal hold?
  • Then quality, and the risk to every caller in the blast radius.
  • Run git status --short. Name every changed file that the blast radius did not list. Say why it changed, or revert it.
  • A weakened, skipped or deleted test, assertion or guard is a defect. Restore it, unless the spec asked for the change.

Fix what you find.

2. Cuts

Delete from this change's own diff:

  • dead code
  • flexibility nobody asked for
  • hand-written code that the standard library already provides

A cut outside the diff is not an edit. Offer it as a suggestion for a new spec.

3. Verify, fresh

Run every acceptance check now, after the last change. Old results do not count. Also run the real scenario once, with at least one failure or recovery path, not only the happy path.

For each check, report pass or fail, the command, and what it printed. Say "checks pass". Never say "correct" or "works".

4. Report

Keep it short:

  • Result: what changed, in a few lines.
  • Evidence: the commands and results from step 3.
  • Unrun checks: what you did not run, and why.
  • Limits: what the change does not cover.

Put no secrets in the report. Do not commit, push, deploy or delete unless the user said so.

5. Archive and release

Run this Bash command, with today's date and a short slug. Moving the spec ends the approval.

mv specs/current.md specs/<date>-<slug>.md
ls -t specs/2*.md | tail -n +6 | xargs rm -f

The second line keeps the 5 newest archived specs. Git is the rollback, not the specs. The next change needs a new spec and a new approval.

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.