agentleFS
joshsegattjoshsegatt/SeniorOS/skills/senior-finish/SKILL.md

senior-finish

Skill2 starsChanged 16 days agoApache-2.0View on GitHub

Use right before saying a substantive change is done, fixed, passing or ready, and before committing, opening a pull request or handing it off. Not for low-risk edits such as copy, labels, comments or an obvious one-file fix, where running the affected tests is the whole proof.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    Core rule: do not call it done until the proof ran in this session and you read its result.

    line 8
  2. Very specific:

    Check for unrelated edits, accidental generated files, debug statements, new TODO/FIXME, dependency changes, and migrations or …

    line 16
  3. Distinctive:

    Add task-specific evidence the baseline cannot give: the original bug reproduction, a browser flow, an API call, a migration dry run, a …

    line 21
  4. Distinctive:

    Read the output itself: exit code, number of failures, warnings.

    line 23
  5. Very specific:

    Never report a SKIP as a pass.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Finish / Ship Gate

Core rule: do not call it done until the proof ran in this session and you read its result.

1. Re-read the goal

List the acceptance criteria that should now be true, in terms of user- or system-visible outcomes, not implementation steps. If a plan was written before the first edit, use its criteria and failure cases, and report any planned step that was not done or was changed.

2. Inspect the final change set

Check for unrelated edits, accidental generated files, debug statements, new TODO/FIXME, dependency changes, and migrations or configuration that need special handling. senior risk --base <base> lists everything since the branch started.

3. Run the proof

  • senior finish (or senior finish --json) runs the standard baseline: the package scripts (typecheck, lint, test, build) and the Python, Go and Rust checks of the projects you changed. It shows how many tests ran; a test command that ran none is SKIP, not a pass. --record keeps the result in .senior/evidence/.
  • Add task-specific evidence the baseline cannot give: the original bug reproduction, a browser flow, an API call, a migration dry run, a security check, a benchmark.
  • For a bug fix, the regression test must have been seen failing without the fix: senior prove --regression --test "<command>" gives a PROVEN / NOT PROVEN verdict with evidence. Report NOT PROVEN (test-misses-bug) as a gap, not as a pass.
  • Read the output itself: exit code, number of failures, warnings. A summary from a subagent or an earlier run is not proof.

4. Name what would still make it wrong

Passing checks show the cases they cover. Before choosing a status, name the two most likely ways the change is still wrong: a case the tests do not reach, a caller or copy you did not update, an environment difference (timezone, OS, a fresh database), behavior the change removed. For each, give the evidence that rules it out — a command and its result, or the code that handles it.

One you cannot rule out is residual risk or a reason for NOT PROVEN, not a footnote to READY.

5. Apply the risk gate

High-risk work is not ready because unit tests pass; it also needs review and a rollback or recovery answer. Destructive or external steps still need the user's approval.

6. Report with explicit states

  • PASS — ran and succeeded;
  • FAIL — ran and failed;
  • SKIP — not available or intentionally not run;
  • BLOCKED — an external condition or approval prevents it.

Never report a SKIP as a pass.

Words that signal an unproven claim

"should work", "probably", "looks good", "seems fixed", "all set" — and any of them before a check ran in this session. Replace them with the check and its result ("npm test: 34 passed, 0 failed").

If you notice yourself thinking…Do this instead
"I ran it a few edits ago"Run it again on the final state
"The subagent said everything passed"Check the diff and run the proof yourself
"Lint passed, so it builds"Run the build; each check proves only its own thing
"There are no tests, so there's nothing to run"Report SKIP and give another form of evidence

Ship status

Return exactly one:

  • READY — the acceptance criteria are supported by evidence and no blocker remains;
  • READY WITH RESIDUAL RISK — no blocker, but a named risk is accepted and visible;
  • NOT PROVEN — the implementation may be complete, but the evidence is insufficient;
  • BLOCKED — completion depends on an unresolved external condition or 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.