session-finish
Skill0 starsChanged 57 days agoMITView on GitHub
Closes a session with a usage report, a retro and a handover of what changed and what is open. Use when the user wraps up or a long run ends.
In this repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- best-practices-auditSkill
- catalog-authoringSkill
- cli-toolsSkill
- conventional-commitsSkill
- decompose-planSkill
- falsify-firstSkill
- find-skillsSkill
- harness-clientSkill
- harness-loopSkill
- interface-factsSkill
- no-commentsSkill
- nodeSkill
- plain-englishSkill
- pythonSkill
- release-processSkill
- repair-in-placeSkill
- retention-probeSkill
- root-causeSkill
- skill-creatorSkill
- test-disciplineSkill
- tier-injectionSkill
- validate-as-consumerSkill
- work-trackerSkill
- worktree-isolationSkill
- best-practices-auditSkill
- catalog-authoringSkill
- cli-toolsSkill
- conventional-commitsSkill
- decompose-planSkill
- falsify-firstSkill
- find-skillsSkill
- harness-clientSkill
- harness-loopSkill
- interface-factsSkill
- no-commentsSkill
- nodeSkill
- plain-englishSkill
- pythonSkill
- release-processSkill
- repair-in-placeSkill
- retention-probeSkill
- root-causeSkill
- session-finishSkill
- skill-creatorSkill
- test-disciplineSkill
- tier-injectionSkill
- validate-as-consumerSkill
- work-trackerSkill
- worktree-isolationSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
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
- Distinctive: line 18
Never invent a retro finding: When nothing concrete happened, skip the retro and say so.
- Distinctive: line 29
Do not cite the Unresolved heads table.
- Distinctive: line 30
When the report has no data, say so and continue.
- Distinctive: line 43
When a supervised pass kept lane transcripts, split the spend:
- Distinctive: line 51
Only Claude transcripts carry the event this command reads.
- Very specific: line 64
Run it only after a refused change or a mistake that the user corrected.
- Distinctive: line 70
Run git status. Remove partial edits, debug output and stray files.
- Very specific: line 71
Run basicly loop status <id> for each record you touched.
- Very specific: line 73
Before you restore a file from a backup, compare the backup with git show HEAD:<path>.
- Distinctive: line 74
Write the handover note on the root record of the session:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->Session Finish
Close a session in three steps: report what the session used, run the retro, and leave the repository clean for the next session. Run it after the work has landed. For commits, gates and record closure, use harness-loop, work-tracker and conventional-commits.
Rules
- Write the handover as a ledger note, never as a file.
basicly session startprints the newest note first, and nothing reads aHANDOVER.md. - Stop every background process before you summarise. A watcher that outlives the session reports a stale state.
- Keep every durable artifact in the repository. The host cleans the scratchpad without warning.
- Write scratch files to a subdirectory unique to your lane. A concurrent lane can overwrite a file at a shared path.
- Never apply a retro edit yourself. Present it for explicit approval.
- Never invent a retro finding. When nothing concrete happened, skip the retro and say so.
- Never reset or delete the usage counters. They accumulate across sessions.
1. Usage statistics
basicly usage report- The
tool-usagehook counts shell commands andSkillcalls into.basicly/usage/tool-usage.json. - The report lists tools and skills by count with the date of last use. It names the catalog skills that nothing used, which are the candidates for removal.
- Do not cite the Unresolved heads table. Its rows are recorder misses and tools that this machine does not have.
- When the report has no data, say so and continue. The hook may not be active in this repository.
Then check the settings of the factory:
basicly usage tuning- Each row is one governed parameter: the value in force, the outcomes under it, and a recommendation with its sample size.
- The command changes nothing. Report a recommendation worth an action. Never edit
basicly.tomlfrom it without the owner's approval. - A
seededrow has too few samples, so the declared prior stands. Do not cite it as a measurement. - A row with zero samples names a limit that nothing records. That is a finding.
When a supervised pass kept lane transcripts, split the spend:
basicly usage lane-split- Each lane shows the share of spend on context acquisition and the share on implementation. Read the shares, never the token counts. The counts use a different unit from the run record.
unclassifiablemeans the transcript has no tool-name field. It does not mean the lane read nothing. A lane with no transcript is missing, not zero.- Only Claude transcripts carry the event this command reads.
Then the denominator:
basicly usage outcomes- It shows how every recorded dispatch ended and the failure rate. Judge a run against this rate, not against your memory of it.
- These are dispatch outcomes: did the agent process finish. They do not show whether a lane found a result.
2. Retro
- Run it only after a refused change or a mistake that the user corrected. Use the
root-causeskill to find the cause. - Propose the exact fragment, skill or hook change that would have refused it.
- Record an environment, timing or platform trap as one bullet in a quirks fragment: the trap and the avoidance.
3. Clean handoff
- Run
git status. Remove partial edits, debug output and stray files. Name in the summary anything that you leave on purpose. - Run
basicly loop status <id>for each record you touched. Close each claimed record, or add a note with its true state. - List the running background processes and stop them.
- Before you restore a file from a backup, compare the backup with
git show HEAD:<path>. Write the handover note on the root record of the session:
basicly tracker write -- comments add <root-id> "[session handover $(date +%F)] STATE: ... NEXT: ..."- End with a summary: what changed (with record ids), what you verified (the gates and their results), what is still open, and the main usage figures from step 1.
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
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.

