agentleFS
NemesLaszloNemesLaszlo/claude-code-harness/.claude/skills/finish-work/SKILL.md

finish-work

Skill1 starsChanged 7 days agoMITView on GitHub

Use before saying a change is done, and when asked to finish ("finish", "wrap up", "we're done", "is it ready", "commit this", "push it"). Checks the docs moved with the change, runs every repo's checks, makes sure review-code is clean for exactly this working tree, gathers the evidence, and reports per repo with proposed commit messages. Commits and pushes only when the owner asks, as the owner, without attribution.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    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:

    Docs in the same change: Check each moved with it: comments and XML docs on changed members, the sub-repo CLAUDE.md when a pattern, command …

    line 24
  2. Very specific:

    Write it to /unslop. Update HANDOFF.md and the plan's status.

    line 46
  3. Very specific:

    commit with the agreed message, as the owner: no Co-Authored-By, "Generated with" or session lines.

    line 49
  4. Very specific:

    Close: when the owner says the work is done, set the plan's status: done, and on their word move the folder to _Plans/_Done/.

    line 54
  5. Distinctive:

    Commit or push without being asked.

    line 68
  6. Distinctive:

    Add AI co-author trailers, "Generated with" lines or session links.

    line 69

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

Finish a change

Done is defined by passing checks, a clean review-code for the code as it stands, the docs moved with it and the evidence for every claim, not by the sense that the work is complete. Nothing is committed or pushed unless the owner asks (AGENTS.md, How a change lands).

Request: $ARGUMENTS

Repo state

!bash .claude/scripts/repos.sh 2>/dev/null || echo "run from the workspace root: .claude/scripts/repos.sh not found"

Touch points, in order

  1. Scope: list this change's files per repo, from the plan, the review pack or git status. Files in those repos that are not this change's stay out of everything below; say they exist.
  2. Docs in the same change. Check each moved with it: comments and XML docs on changed members, the sub-repo CLAUDE.md when a pattern, command or rule changed, AGENTS.md when a workspace rule or command changed, user docs, the changelog line (in <plan folder>/changelog.txt, written to the project's changelog rules), and the plan's Progress log when the work departed from it.
  3. Checks, from AGENTS.md, Commands and checks, for every repo the change touches, one at a time (builds in parallel collide): the build with its warning count, the tests with their pass count, then the contract steps the change calls for (a regenerated client, a migration for every provider). Fix every failure through the builder agent that owns the file; never weaken a test, a check or an analyzer to pass. Record the numbers.
  4. Review: review-code must be clean for exactly this working tree. If the last clean round's pack exists, run scope.sh next on it: an empty delta means the review still holds; anything else is another round. If there was no review yet, run it now.
  5. Evidence (AGENTS.md, Evidence): every behaviour claim in the report points at a test, a capture, a request and response pair or a measured number, saved under <plan folder>/evidence/ (or .local/evidence/<slug>/). Tick the plan's verification checklist only with its evidence. Say plainly what was not verified and why.
  6. Report, per repo:
    • what changed and why, in two or three lines;
    • the checks with their numbers, the review verdict with the findings fixed and any left with the reason;
    • what is not verified, and anything the owner must do (a migration to apply, a setting, a deploy step);
    • the proposed commit message(s): a subject in the imperative that says what changed (it can carry the reason: "Refuse a root with a dot segment, so no path reaches outside it"), a body that says why and what a reader of the history needs, no plan, task or finding ids, no attribution lines. One commit per coherent change, its tests and docs with it; split a repo's work into several commits only when the parts stand alone. Write it to /unslop. Update HANDOFF.md and the plan's status.
  7. Commit and push, only when asked:
    • stage exactly this change's files (git -C <repo> add -- <files>), never -A or .;
    • commit with the agreed message, as the owner: no Co-Authored-By, "Generated with" or session lines;
    • push only when asked: git -C <repo> pull --rebase first, rerun the checks if it brought changes, then git -C <repo> push. Never force-push. A conflict you cannot resolve confidently stops the push and is reported;
    • shared libraries and submodules go first, then the repos that bump them.
  8. Close: when the owner says the work is done, set the plan's status: done, and on their word move the folder to _Plans/_Done/. Copy captures the owner wants kept from .playwright-mcp/ into evidence/, then offer to delete the leftovers there (they can hold personal data). Work that turned up along the way goes into the report as follow-ups.

Done means

  • The checks passed with their numbers recorded, review-code is clean for this working tree, the docs moved, and the evidence backs every claim.
  • One of: the owner has the report and the proposed messages; or, when asked, the commits (and pushes) are made.

Never

  • Say done with a failing check, a review of different code, or a claim without evidence.
  • Commit or push without being asked; stage files that are not this change's; force-push; reset, stash or clean.
  • Add AI co-author trailers, "Generated with" lines or session links.

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.