agentleFS
Camarota-234Camarota-234/session-ritual/skills/session-end/SKILL.md

session-end

Skill0 starsChanged 41 days agoMITView on GitHub

End of the day, or of the week with --full: rewrites SESSION_STATE.md within its quotas, absorbs today's checkpoints into the SESSION_LOG.md entry, runs the personal extension, commits and pushes. Use when the user ends the session (\"we're done for today\", \"close the session\", \"/session-end\") or the week (\"close the week\", \"--full\"). Not for finishing one task (session-checkpoint) or a function.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use init, grilling and 2 more.

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.
  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • GoogleSkill

    grilling

    Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

    Also in 4 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 1 is distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Full: when the user asked ("close the week", --full) or when the STATE's last-full-end is missing or older than 7 days.

    line 19
  2. Very specific:

    If the user only meant a task, point to session-checkpoint and stop.

    line 21
  3. Very specific:

    Before writing, assemble: what was done, decisions (choices and trade-offs not obvious from the code), what is left, what comes next.

    line 25
  4. Very specific:

    Every line ends with (measured DD/MM) or (assumed).

    line 49
  5. Very specific:

    If today's entry exists (checkpoints, an earlier part), rewrite it absorbing the ### checkpoint sub-blocks.

    line 75
  6. Very specific:

    Month changed since the previous entry?: Do the monthly rotation (files.md): the previous month's entries move to docs/sessions/YYYY-MM.md, …

    line 78
  7. Very specific:

    If ~/.claude/ritual-extend.md exists: run ## End on a day's end, ## Full end on --full (../../references/extension.md).

    line 83
  8. Distinctive:

    Not part of the ritual: the test suite (the repo's own rules decide), the code graph, deploys.

    line 103

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

session-end

Two sizes, and the day is the default. --full runs on request or by date, never by reflex. Formats, quotas and rules: ../../references/files.md.

1. Confirm before writing

This skill fires on natural language, and "let's wrap up" may be about a task. Before touching any file or running git, confirm in one line, saying which size and why:

Closing the day — STATE rewritten, LOG entry, extension, push. OK? Closing the week (last full end on DD/MM, N days ago) — all of the day plus pruning. OK?

Full when the user asked ("close the week", --full) or when the STATE's last-full-end is missing or older than 7 days. Decide and say which trigger fired; do not ask "day or week?". If the user only meant a task, point to session-checkpoint and stop.

2. Synthesize

Before writing, assemble: what was done, decisions (choices and trade-offs not obvious from the code), what is left, what comes next. Today's ### checkpoint sub-blocks enter this synthesis.

Separate what was verified from what was only written. Committed code, a green test and a feature exercised in production are not the same thing. Each done item carries its evidence (test run, query checked, screen opened, execution id) or its absence, said in full: delivered, not exercised.

3. Rewrite SESSION_STATE.md

A photo of now, not a diary: if something is no longer true, it is gone. A 1.x STATE (no ## In progress; the start script flags it) is migrated first, with the table in ../../references/adoption.md, in the same commit; say so in the step 1 line. In this order:

  • ## In progress: keep only the blocks still in flight. For each block not touched today, ask in one batched question whether it stays. Blocks of tasks finished today are deleted.
  • ## Current state: what works, each with the pointer to its evidence. 12 bullets of up to 2 lines; a longer bullet becomes a pointer to the LOG.
  • ## To exercise: each **Done, not exercised:** item of today's entry becomes a line with its proof. A line whose proof happened today leaves, and its evidence goes to ## Current state as a pointer. 6 items; an empty section is left out.
  • Pending items, in the four sections, using the moves from files.md: a closed item disappears; "leave it for later" goes to ## Deferred with a reason; an unblocked item returns to ## Now where the user says; a new item is born in ## Now or ## Deferred. Every line ends with (measured DD/MM) or (assumed). ## Now is ordered and has up to 7.
  • Frontmatter: last-session = today; on --full, also last-full-end.
  • Check the limits (files.md): ## Now 7 and 120 lines in all are hard, cut now; the section targets are not: over one, say so in one line and move on.

On a feature branch, only this repo's ## In progress block and the LOG are written (../../references/branches.md; not when the files live elsewhere). With sibling repos, rewrite the STATE of each repo the session touched (../../references/multi-repo.md).

4. Prune (--full only)

One batched question per group, "delete these N?", and the deleted lines go to the day's entry under **Pruned:**:

  1. ## Deferred items older than 4 weeks with no return condition.
  2. ## Debt, all of it: what the user keeps, stays.
  3. ## Blocked items older than 4 weeks: still waiting?
  4. ## In progress blocks whose branch has no commit for 7 days.

Age counts only here; the daily briefing never nags by date.

5. The LOG entry

At the top of SESSION_LOG.md, today's entry: ## YYYY-MM-DD — <short title>, with **Summary:** (required, one sentence: it is what the next start reads), **Done:**, **Done, not exercised:**, **Decisions:**, **Pending:**, and **Pruned:** on --full. If today's entry exists (checkpoints, an earlier part), rewrite it absorbing the ### checkpoint sub-blocks. Never edit other days' entries.

Month changed since the previous entry? Do the monthly rotation (files.md): the previous month's entries move to docs/sessions/YYYY-MM.md, in this same commit.

6. Extension

If ~/.claude/ritual-extend.md exists: run ## End on a day's end, ## Full end on --full (../../references/extension.md). Missing file or section: nothing happens, nothing is said.

7. Commit and push

git add the session's files (code + the two docs, docs/sessions/ on rotation), commit first, then git pull --rebase --autostash (a conflict is resolved, never force-pushed):

<type>: <one-line summary of what was done>

<bullets of the main items, if more than one>

Push to the current branch. Confirm in one line that it went up. If the push fails, say the error; do not claim the session is closed.

Session files: declared (files.md): all of this happens in that folder; commit and push its repo (git -C; nothing to commit is fine). Leave the project repo alone.

Not part of the ritual: the test suite (the repo's own rules decide), the code graph, deploys.

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.