agentleFS
niksavisniksavis/basicly/.agents/skills/session-finish/SKILL.md

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.

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

    Never invent a retro finding: When nothing concrete happened, skip the retro and say so.

    line 18
  2. Distinctive:

    Do not cite the Unresolved heads table.

    line 29
  3. Distinctive:

    When the report has no data, say so and continue.

    line 30
  4. Distinctive:

    When a supervised pass kept lane transcripts, split the spend:

    line 43
  5. Distinctive:

    Only Claude transcripts carry the event this command reads.

    line 51
  6. Very specific:

    Run it only after a refused change or a mistake that the user corrected.

    line 64
  7. Distinctive:

    Run git status. Remove partial edits, debug output and stray files.

    line 70
  8. Very specific:

    Run basicly loop status <id> for each record you touched.

    line 71
  9. Very specific:

    Before you restore a file from a backup, compare the backup with git show HEAD:<path>.

    line 73
  10. Distinctive:

    Write the handover note on the root record of the session:

    line 74

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- 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 start prints the newest note first, and nothing reads a HANDOVER.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-usage hook counts shell commands and Skill calls 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.toml from it without the owner's approval.
  • A seeded row 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.
  • unclassifiable means 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-cause skill 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

  1. Run git status. Remove partial edits, debug output and stray files. Name in the summary anything that you leave on purpose.
  2. Run basicly loop status <id> for each record you touched. Close each claimed record, or add a note with its true state.
  3. List the running background processes and stop them.
  4. Before you restore a file from a backup, compare the backup with git show HEAD:<path>.
  5. Write the handover note on the root record of the session:

    basicly tracker write -- comments add <root-id> "[session handover $(date +%F)] STATE: ... NEXT: ..."
  6. 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.

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.