endlisted
Install: claude install-skill conorbronsdon/agent-workspace
# /end — Close Session
Capture the session and leave state ready for the next one: a session log, state updates,
a decision-log append, memory proposals, and a git safety check.
**Invocation:** user-only (`disable-model-invocation: true`) — session close is timed by
you, and the flag keeps this skill out of ambient context.
## Configuration
Read the optional `workspace.yaml` at the project root. Below, `<state_dir>` and
`<sessions_dir>` are its resolved values; defaults are `state/` and `sessions/`. Full
reference: `docs/state-model.md`, including the `Last Updated` chain protocol and the
decision-log schema used in steps 3–4.
## Instructions
1. **Auto-extract session summary.** Scan the full conversation and extract:
- **Topics covered** — what was worked on
- **Decisions made** — anything concluded or chosen, with rationale
- **Rejected alternatives** — for each meaningful decision, what else was considered and
why it lost. If a bug was fixed, note the wrong theory tried first. If an approach
changed mid-session, capture the pivot. This is the failed-hypothesis record that
keeps a future session from repeating the same wrong starting point.
- **State changes** — priorities that shifted, threads that opened or closed
- **Open threads** — unfinished items or things waiting on someone
- **Next actions** — what needs to happen next session
Present the summary for quick confirmation before writing.
2. **Write session log.** Append to `