Install
openclaw skills install @highnoonoffice/session-closerStructured end-of-session protocol for OpenClaw agents. Produces a complete, consistent journal entry at session close — summary, full file surface (read/written/external APIs), one self-caught failure delta, one behavioral fingerprint. Also runs pattern-update for any tracked behavioral patterns that fired this session. Use when a session ends, a task completes, or the user says 'log this,' 'log the session,' 'close out,' or 'write the journal.'
openclaw skills install @highnoonoffice/session-closerForces a complete, consistent session close. No skipping fields. No half-baked logs.
/new resetBefore writing anything, collect:
Do not sample. All of them.
Manual write is the default — write directly to
memory/journal/YYYY-MM-DD.md (or your workspace's equivalent journal path) with
these required fields:
See references/journal-format.md for the full format, all required sections, and a
worked example.
If your workspace has scripts/journal-writer.js, you can use it to write the same
fields from the CLI instead of writing the file by hand:
node scripts/journal-writer.js --summary "..." --delta "..." --fingerprint "..."
This is acceleration, not a requirement. The manual path always works and needs nothing beyond a text editor — treat the script as a shortcut for workspaces that have it, not as infrastructure the close sequence depends on.
Pattern tracking is a system where you define recurring behaviors you want to catch, assign them keys, and score them pass/fail each session. Over time the scores tell you whether you're actually improving or just claiming you are. If your workspace doesn't track patterns yet, skip this step entirely — it's an optional layer, not a requirement for a valid close.
If your workspace tracks recurring behavioral patterns and has
scripts/pattern-update.js, run it after the journal is written:
node scripts/pattern-update.js --passed "key1,key2" --failed "key3" \
--session-summary memory/journal/YYYY-MM-DD.md
Only include keys for patterns that actually fired this session. See
references/pattern-keys.md for an example key set and how to define your own.
If you don't track behavioral patterns, skip this step entirely — it's an optional layer on top of the core close sequence, not a requirement for a valid session close.
If any version-controlled files were touched this session, commit and push before closing:
git add -A && git commit -m "session close sync YYYY-MM-DD" && git push
Substitute your own repo path, branch, and credentials.
Session closed: [one-line summary]
Files Read: [count] | Written: [count] | External: [list]
Delta: [self-caught failure]
Send this to whatever channel you use to hear from your agent — a chat platform, a push notification, a log the user checks. The content is fixed; the destination is whatever your setup already uses.
Same framework, different file surface shape:
SKILL.mds, any reference material loaded into
the sessionDelta = one specific thing the coding agent got wrong or had to correct mid-session. Fingerprint: one sentence on how the session went — not what was built, but how the agent showed up. Held to spec, needed re-prompting, drifted from the brief. Same compounding value as the orchestrator fingerprint.
No setup required beyond a folder and a file.
memory/journal/ in your vault rootYYYY-MM-DD.mdreferences/journal-format.mdThat's all you need. The skill works from there.
references/pattern-keys.md — example set of tracked pattern-update keys and what
each tracks, plus how to define your own.references/journal-format.md — full journal format, all required sections with
field definitions, and a worked example.