Finishes a lot following the Belayline harness: local checks, LESSONS self-review, adversarial review by another model, PR (draft then Ready) with issue line, `Claim:`, lot, problem/cause/change/tests, closing comments. Use when the code of a lot is written.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Lot Finish?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/francoisgn-lot-finish)
---
name: lot-finish
description: Finishes a lot following the Belayline harness: local checks, LESSONS self-review, adversarial review by another model, PR (draft then Ready) with issue line, `Claim:`, lot, problem/cause/change/tests, closing comments. Use when the code of a lot is written.
argument-hint: "[issue number…]"
---
# Finish a lot
Issues of the lot: $ARGUMENTS (otherwise those claimed on the current branch).
References: `.harness/docs/CONVENTIONS.md` (§Pull requests, §Ledger, §GitHub comments), `.harness/docs/ORCHESTRATION.md`
§3 (adversarial review), `.harness/docs/CI-BUDGET.md` §2 (otherwise the same files under
`${CLAUDE_PLUGIN_ROOT}/docs/`).
1. **Local checks**: the project's local check, `scripts/local-check.sh` (or the command `CLAUDE.md` › Build and
tests names; none: `/local-check`). FAILED: fix. INCOMPLETE: the lot is **not** called verified; the PR's
**Tests** says which steps did not run and why (from the summary). `git status`: no tracked file forgotten, no artefact.
Each new test seen **failing** without the change. App code not compilable here (Linux cloud): reread with compiler rigour, noted. **Binary artefacts**:
`python3 .harness/scripts/archive-artifact.py --check` (1: rebuild, archive; 2: say it in the PR).
2. **Self-review**: skill `/lessons-check` (or by hand against `LESSONS.md`). Docs, plan, regulation updated in the
same commits; **README**: `/readme-update` (the lot's row in the progress table, badges, architecture diagram if
the modules or flows changed; `.harness/docs/README-STANDARD.md`). Version and ledger files (CHANGELOG, What's
New…) **not** touched.
3. **Adversarial review** (the intent review: "does the change do what the issue asks?"): a fresh subagent,
**of another model** than the author (the model that wrote the code; pass `model` explicitly, the agent pins none), read-only, **isolated from your context**, receives only the diff
(`git diff origin/<integration>...HEAD`), the spec, `ESSENTIALS.md`, `LESSONS.md`, with the instruction from
ORCHESTRATION.md §3. Never your conclusions. If it cannot be isolated it gives no verdict and the PR is not
Ready. Post its verdict on the PR. Fix each High/Medium finding in **one** commit, have it rechecked: a round
with no finding on the current head ends the loop (one clean round, within 3 cycles); list settled findings in
the PR with their outcome tag (`[fixed]`, `[declined: false positive]`, `[declined: not worth it]`, `[deferred: #n]`), not reopened
without new evidence. A lot that stays big says why in one line of the PR. The code review (diff only) is the
review service's, on the ready PR; without one, the AI review workflow or a human does it and the PR says which.
4. **Commits**: atomic per issue, in the project's language and style (`git log`), session attribution at the end of
the message, trailer `Agent: <identifier>`.
5. **Push and PR**: the work has already been pushed often to the draft PR (otherwise: push and open it as a draft to
the integration branch). Title in the style of previous PRs. **Body**, short, in this order:
````text
LOT-XXX ← only for a lot of the plan
Closes #n ← one line per issue; partial work: Refs #n — left: …
Claim: <identifier> ← equal to the issue's active /claim
**Problem** … **Cause** … **Change** (and why this wide, no wider) …
**Tests**: names, what they check, seen failing without the change; commands run; not tested / to validate
on the device.
### Ledger ← only if .harness/config.json → ledger.enabled is true and there is an entry
```<entry type>
…
```
Author model: … (<identifier>) · reviewer: … (<reviewer's identifier>)
<generation line>
````
Ledger (`CONVENTIONS.md` §Ledger): the section is the entry; entries go in the blocks of `### Ledger`, in the
project's script format; no entry → `None (<reason>)`; no label to set.
No ledger: no section. `pr_kpis` on: a `kpis` block (FINOPS §4), `pr-kpis.py --check`.
6. **Ready for review** when everything is finished and reviewed: this is when the costly CI runs. After that, one
commit and one push per review round (`/review-round`); never a push "to see" on a ready PR.
7. **Closing comments** on each issue: done, PR link, what is left, decisions made (simplest option chosen when
ambiguous), to validate on the device; footer `---` / `_Generated by [Claude Code](https://claude.ai/code)_`.
Update the PR column of the umbrella issue's table; close it if all its points are closed. Work stopped before
the end: say so, then `/release`.
8. **Discovered work**: one labelled issue per subject (never only a note).
9. Merge only according to the project's policy (otherwise the operator's approval), after `merge-gate.py <pr>`
says "may merge", with the head sha it prints (CONVENTIONS.md §Pull requests). After a merge that does not
close the issue: "Done in #PR (merged at `<sha>`)", then check that it is closed;
then `python3 .harness/scripts/issue-reconcile.py --apply` (status labels). `post_merge_verification` on:
`Refs #n`, closed by the checks of METHODOLOGY.md §2 bis. Report: PR link, what is left,
what must be checked on the Mac (`/review-round` for what follows).