agentleFS
bricerisingbricerising/enterprise-software-playbook/skills/finish/SKILL.md

finish

Skill8 starsChanged 10 months agoApache-2.0View on GitHub

Run a final "definition of done" check before shipping: verify correctness, tighten contracts/docs, and produce a change summary. Use at the end of non-trivial work to confirm nothing was missed before merge/release. NOT for writing tests (use testing); NOT for adversarial code review (use review); NOT for initial planning (use plan).

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use implement.

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

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 13

    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
  1. Distinctive:

    Security-sensitive change: add security spot-check (authn/authz, input validation, safe logging) even for normal scope.

    line 19
  2. Distinctive:

    Inputs: All prior skill outputs from the current workflow.

    line 23
  3. Very specific:

    if contracts/semantics changed: specs/contracts are updated (spec)

    line 29
  4. Very specific:

    if shared primitives were added/changed: API surface + adoption notes are clear (platform)

    line 30
  5. Distinctive:

    if 2+ viable approaches existed: decision table includes assumptions (facts vs assumptions) and opportunity costs

    line 32
  6. Distinctive:

    Run verification (prefer narrow → broad):

    line 33
  7. Distinctive:

    remove dead code, debug logs, commented-out blocks

    line 45
  8. Distinctive:

    ensure errors are actionable and don’t leak secrets/PII

    line 46
  9. Distinctive:

    update quickstarts or runbooks if needed

    line 47
  10. Distinctive:

    write an executive packet (decision bandwidth)

    line 51
  11. Distinctive:

    write an engineer packet (implementation bandwidth)

    line 52
  12. Distinctive:

    use clear framing: recommendation, evidence, remaining risks, and explicit owner/date for next action (this is sufficient for most cases)

    line 53
  13. Distinctive:

    if expectations diverged (rollback, incident, surprise scope, or assumption failure):

    line 58
  14. Very specific:

    if divergence is significant, flag a follow-up using the Retrospective / Postmortem template …

    line 60
  15. Distinctive:

    When context or time is constrained, these are the load-bearing steps:

    line 64
  16. Distinctive:

    Prefer explicit commands and outputs over vague statements (“tests passed”).

    line 76

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

Overview

Turn “it works on my machine” into “this is ready to ship” by running verification, checking boundary discipline, and reporting changes in a consistent format.

Chooser (What To Verify By Change Type)

  • Tiny change (typo, copy, rename): lint/format + typecheck. No spec/contract check needed.
  • Normal change (behavior/feature): unit tests + typecheck + lint + boundary spot-check (resilience/security/observability where touched) + cleanup.
  • Big change (cross-service, migration): full verification (tests + typecheck + lint + build + dependency scan) + spec/contract alignment check + executive + engineer packets.
  • Refactor (no behavior change): characterization tests pass before and after + typecheck + lint. No new spec artifacts unless contracts changed.
  • Security-sensitive change: add security spot-check (authn/authz, input validation, safe logging) even for normal scope.

Inputs / Outputs

Inputs: All prior skill outputs from the current workflow; verification commands (tests, typecheck, lint, build); archobs baseline (for regression check). Outputs: Executive packet (decision bandwidth), engineer packet (implementation bandwidth), learning loop. Terminal skill — nothing consumes its output downstream.

Workflow

  1. Re-check intent artifacts:
    • if contracts/semantics changed: specs/contracts are updated (spec)
    • if shared primitives were added/changed: API surface + adoption notes are clear (platform)
    • for non-trivial work: objective function, measurement ladder, and kill criteria are documented
    • if 2+ viable approaches existed: decision table includes assumptions (facts vs assumptions) and opportunity costs
  2. Run verification (prefer narrow → broad):
    • unit tests / focused tests
    • typecheck
    • lint/format (if configured)
    • dependency/security scan (if configured)
    • build (if relevant)
  3. Boundary discipline spot-check (only where the change touched boundaries):
    • timeouts/cancellation/retry safety (resilience)
    • authn/authz + input validation + safe logging (security)
    • logs/traces/metrics correlation + low-cardinality labels (observability)
    • architecture health regression (skip for tiny changes — typo, copy, single-file rename): run archobs report --suggestions-provider rules and wait for the report to complete — then run archobs show summary --format json and archobs show risks --top 5 --format json to verify that top file risk scores and cluster leakage did not increase compared to the previous run; if no prior .archobs/ baseline exists, create one now so future runs can detect regressions (archobs)
  4. Cleanup:
    • remove dead code, debug logs, commented-out blocks
    • ensure errors are actionable and don’t leak secrets/PII
    • update quickstarts or runbooks if needed

GATE: Verification (step 2) must have actually been executed — commands run with results captured. "Tests pass" without showing which commands ran and their output does not satisfy this gate. If verification could not be run, report "not run" and why.

  1. Translation check:
    • write an executive packet (decision bandwidth)
    • write an engineer packet (implementation bandwidth)
    • use clear framing: recommendation, evidence, remaining risks, and explicit owner/date for next action (this is sufficient for most cases)
    • for formal hand-offs needing extra rigor (multi-stakeholder PRs, ADR recommendations), optionally use Recommendation Brief from ../references/structured-thinking-templates.md
  2. Micro-retrospective (non-trivial work):
    • what happened vs what was expected?
    • key assumption confirmed or updated (one sentence — always include this, even when expectations were met)
    • if expectations diverged (rollback, incident, surprise scope, or assumption failure):
      • what one process/control change would reduce repeat risk? (flag for human to assign owner)
      • if divergence is significant, flag a follow-up using the Retrospective / Postmortem template (../references/structured-thinking-templates.md) — do not run it inline during the finish pass

Minimum viable execution

When context or time is constrained, these are the load-bearing steps:

  1. Run verification commands (step 2) — tests, typecheck, lint at minimum.
  2. Boundary spot-check (step 3) — only where the change touched boundaries.
  3. Write engineer packet (step 5) — what changed, files touched, verification results.
  4. Key assumption update (step 6) — one sentence: confirmed or updated.

Steps that can be cut under pressure: executive packet (step 5), archobs regression check (step 3), full micro-retrospective (step 6 depth).

Guardrails

  • Don’t claim verification you didn’t run; report “not run” and why.
  • Prefer explicit commands and outputs over vague statements (“tests passed”).
  • Don’t expand scope; if you find unrelated issues, list as follow-ups.
  • Close the loop for non-trivial work: include at least one explicit learning update and flag owner assignment for human review.

Common failure modes

  • Reports "all tests pass" without actually running them — or runs tests but doesn't capture the output.
  • Skips the micro-retrospective (step 6) — the learning loop is the most commonly skipped step, but it's what prevents repeat failures.
  • Produces an engineer packet without an executive packet for non-trivial changes — the decision-maker audience is left uninformed.
  • Doesn't check whether archobs health regressed — new coupling or increased leakage goes undetected.

References

  • Architecture health regression checks: archobs
  • CI quality workflow template: ../../specs/templates/ci/github-actions-quality.yml
  • Change workflow: ../../specs/004-change-process.md
  • Structured-thinking references (learning loop, retrospective, recommendation brief): ../references/

Output Template

Return:

  • Executive packet (non-trivial changes):
    • goal and decision/bet
    • primary trade-off and risk
    • success/failure signals + review ritual owner/cadence
    • kill criteria / reversal trigger
    • immediate next step
  • Engineer packet:
    • what changed (3–7 bullets; behavior + contract impact)
    • files touched (key paths only)
    • verification (commands run + results, or why not run)
    • risks/follow-ups (including rollout watchpoints)
  • Learning loop (non-trivial changes):
    • outcome vs expectation
    • key assumption confirmed or updated (always — even when expectations were met)
    • one process/control change to reduce repeat risk (only when expectations diverged; flag for human to assign owner)
    • Examples:
      • Good: "Assumption: Redis cache would reduce p99 by 40%. Confirmed: p99 dropped 38%. No action needed."
      • Good: "Assumption: existing auth middleware handles multi-tenant isolation. Updated: it doesn't check tenant on write paths. Action: add tenant-scoped write guard (owner: @backend-team, by 03-01)."
      • Bad: "Things went as expected. No changes."

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.