Skill for closing a working session with an owner-approved durable record. It is manually invoked.
Use any clear manual request:
/wrap-sessionwrap sessionclose sessionend sessioncreate a durable handoff before leaving
Use it after work that leaves code, decisions, documents, operational changes, or unfinished work for a later session. Skip it for chitchat with nothing durable.
Install this skill directory under your agent's skill directory. For Hermes:
cp -R /path/to/wrap-session ~/.hermes/skills/wrap-sessionUse the directory that contains SKILL.md, bin/, and tests/. No project-specific layout is required after installation.
/wrap-session first inspects session residue and drafts a wrap plan. It does not write persistent files or run Git actions before owner approval.
Owner approves, edits, selects, or cancels proposed:
- decision, deferred-work, and memory writes;
- Git action: leave changes, commit, or commit and push;
- wrap-plan edits.
all, selected numbers, free-text edits, and cancel are valid responses. cancel writes nothing.
After approved actions complete, it writes one receipt per session at:
~/.local/state/session-wrap/<session_id>.md
Receipt records completed work, decisions, written artifacts, Git state, deferred work, and one next action. Re-wrapping same session ID replaces that receipt.
Optional Hermes companion: from installed skill directory, check recent receipts and likely unwrapped sessions:
bin/wrap-status.shInitialize its rollout baseline once, explicitly:
bin/wrap-status.sh initStatus is read-only. init creates receipt directory and .enabled-at baseline marker. Environment overrides are available for WRAP_DIR, WRAP_HOURS, and HERMES_DB.
The detector counts a receipt only when all required metadata and nonempty
Done, Decisions, Written, Git, Deferred, and Next sections are present. cwd
must be absolute and wrapped_at must parse as an ISO timestamp. Invalid
receipts remain on disk and appear under INVALID RECEIPTS; they do not suppress
unwrapped-session findings. This validates the record's structure, not whether
the recorded work actually happened.
Exit 1 means invalid receipts or failed database inspection; exit 2 means bad arguments. Likely unwrapped sessions alone retain exit 0. A missing Hermes DB keeps receipt-only mode; an existing DB that cannot be read is a coverage error.
bash tests/run-tests.shPlain Bash tests; no test framework dependency.
MIT. See LICENSE.