cf-close-session
Skill10 starsChanged 7 days agoMITView on GitHub
Closes the workday - writes the diary (vault/memory/diary/) and one briefing per session, collects pains from the user's own words, opens a task in vault/tasks/ for what is pending, runs the verifiers. New skills or projects only as proposals. Never pushes. TRIGGERS - "fecha a sessão", "summarize the day". Do NOT trigger for a short chat, opening a session (cf-open-session) or process review (cf-task-observer).
- Commits and pushes
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- vault/CLAUDE.mdCLAUDE.md
- cf-adapt-skillSkill
- cf-adoptSkill
- cf-askSkill
- cf-brainstormSkill
- cf-brandSkill
- cf-claude-cornerSkill
- cf-extract-routineSkill
- cf-helpSkill
- cf-import-knowledgeSkill
- cf-know-my-productSkill
- cf-new-projectSkill
- cf-new-ruleSkill
- cf-onboardSkill
- cf-open-sessionSkill
- cf-studySkill
- cf-task-observerSkill
- cf-whats-realSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
The source is what happened, not what I remember: Every number or fact in the briefing comes from a command run in this session (git log, …
- Very specific: line 20
Link only if the file exists: Check with test -f before writing the wikilink.
- Distinctive: line 25
No order, no commit; never push: Ask before committing. This skill pushes nothing.
- Very specific: line 39
If git log shows nothing (repo with no commits), say "not measured: no commits" and go by the conversation.
- Distinctive: line 78
If the file does not exist, do not create it: say it belongs to the workbench structure and leave the pains in the briefing, in the section …
- Distinctive: line 110
If one fails, show the output and fix only what is yours (the briefing you just wrote).
- Distinctive: line 142
Run git push, or commit without the user's order.
- Very specific: line 143
Put my words in _pains.md.
- Very specific: line 144
Write to profile.md, patterns.md, decisions.md or vault/notes/.
- Distinctive: line 145
Create a skill or project: only propose.
- Distinctive: line 146
Delete or rewrite a diary that already exists.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
cf-close-session: what is left of the day, written down before it is forgotten
Why it exists
Work ends and the context vanishes: in the next session nobody knows what was left pending, what annoyance came up, what decision was made. Closing from memory records what you remember, not what happened. Closing with a method turns the session into four things: diary, briefing, pains, tasks.
The rules
- The source is what happened, not what I remember. Every number or fact in the briefing comes from a
command run in this session (
git log,git diff --stat,ls). With no command, I write "not measured". - A pain only with the user's words.
_pains.mdgets the phrase the user wrote, in quotation marks. My phrase, or the label of a menu option they clicked, is not their words: it does not go in. - Link only if the file exists. Check with
test -fbefore writing the wikilink. Full path fromvault/, in the middle of the argument. Never a## Connectionsblock at the bottom. - A section with no content is omitted. A weak session produces a short briefing. "No pain today" is a valid answer.
- I propose, I do not assert. A new skill, a new project, a change to
profile.md,patterns.mdordecisions.md: they come out as a proposal in the briefing. The user is the one who writes there. - No order, no commit; never push. Ask before committing. This skill pushes nothing.
Talk to the user and write prose (notes, briefings, profile lines) in the language the user writes in. Never translate a quote: verbatim quotes stay in the original language. Fixed tokens (frontmatter keys, status values, paths, enums) stay exactly as written.
The steps
1. Gather what happened (you, Claude)
git log --since=midnight --oneline --stat 2>/dev/null | head -40 || true
git status --short
ls -t vault/tasks/ | head -10If git log shows nothing (repo with no commits), say "not measured: no commits" and go by the conversation.
Cross it with what was said in it. Find the project(s) touched: each one must have
vault/projects/<name>/instructions.md. If it does not, say so and ask which it is.
2. Write the briefing, one per session (you)
File vault/memory/briefings/YYYY-MM-DD-<slug>.md, a short slug of the subject:
---
type: session-briefing
date: YYYY-MM-DD
projects: [<name>]
---Title: a statement of up to 10 words about what the session produced. Sections, in this order, omitting
the empty ones: What happened (2-3 paragraphs) · What was measured (command and number) · What the user
corrected (the quoted words) · What is still standing (pending item with next step) · What could be born
(proposal, with "why now"). The link to the root goes in the body, for example:
... moved forward on [[projects/<name>/instructions|<name>]] up to point X.
3. Write or append the diary (you)
vault/memory/diary/YYYY-MM-DD.md. In shared mode (vault/roles.txt exists) it is
vault/people/<handle>/diary/YYYY-MM-DD.md, with <handle> found by matching git config user.email in roles.txt;
never write in another person's folder. If it already exists, append a section; never rewrite what is
there. Three to five lines per project: what moved, what got stuck, a full-path link to the briefing
(memory/briefings/...).
4. Collect pains (you)
Reread what the user typed in the session: complaint, workaround, something done by hand, "this again".
Append to the end of vault/memory/ideas/_pains.md, one per line, in this format:
YYYY-MM-DD | "verbatim quote from the user" | <briefing or project it came from>If the file does not exist, do not create it: say it belongs to the workbench structure and leave the pains in the briefing, in the section What is still standing. If the quote is not verbatim, do not write it.
5. Open a task for whatever is left pending (you)
A pending item with a concrete next step becomes a task in the TaskNotes plugin format, in
vault/tasks/<slug>.md (the slug comes from the title; if the file already exists, add -2). No ID in the name:
the plugin recognizes a task by the task tag, not by the file name. status is open, in-progress or
done; priority is none, low, normal or high. Ask for the priority if it is not obvious.
---
tags:
- task
title: <verb in the infinitive + what>
status: open
priority: normal
projects:
- "[[projects/<name>/instructions|<name>]]"
---The link in projects is a full path (the gate checks it). Body: one line on what to do and one
on "done when".
6. Run the verifiers, if they exist (one command each)
test -f core/gate.py && python3 core/gate.py || echo "gate.py does not exist yet: skipped"
test -f core/ring.py && python3 core/ring.py --gate || echo "ring.py does not exist yet: skipped"If one fails, show the output and fix only what is yours (the briefing you just wrote). Do not hide a failure: report it.
7. Show what sits still (one command)
python3 tools/usage.py idle --project <name> --top 3For each project touched today, up to 3 of its notes that no project file and no answer ever used. In the
briefing, under What is still standing, one line each with the link and its age, and the question
"does any of these belong in what you did today?". If the user says one does, the connection is made
in the target file (a link in the middle of the text), never in a block at the bottom. If the command prints
NOT_VERIFIED, say so; if it finds nothing, omit the line.
8. Show what went stale in the memory (one command)
python3 tools/stale.pyShow the findings to the user as they are (dead path, moved, aged, expired, superseded). Only show: do not edit
the memory without their "yes". If it prints NOT_VERIFIED, say so.
9. Deliver and ask (you)
Chat, at most 8 lines: paths of the files created, how many pains collected, tasks opened,
result of the verifiers (or "skipped: they do not exist"). Ask: "do you want me to commit?" Only with a yes,
commit the files of this skill, and no git push.
Never
- Run
git push, or commit without the user's order. - Put my words in
_pains.md. - Write to
profile.md,patterns.md,decisions.mdorvault/notes/. - Create a skill or project: only propose.
- Delete or rewrite a diary that already exists.
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.

