os-savelisted
Install: claude install-skill simonconway1979/os-intelligence
# /os-save — Session Save
Records what happened in this session, creates a searchable context snapshot, updates the sessions index, updates projects.md, and optionally commits and pushes to git.
---
## Opening notification
Print this before doing anything:
```
Saving session for [active project name]...
```
---
## Step 1 — Identify the active project
Read `[workspace-root]/.sessions/<session-id>` (your Claude Code session ID is injected into your context by the SessionStart hook). If that file doesn't exist or you don't have a session ID, fall back to `[workspace-root]/.current-session`.
- If the value contains ` / ` (e.g. `Job Opportunities / Acme Corp — Senior PM`): this is a portfolio item session. Go to Step 1b.
- If it's a single name (e.g. `PM-OS`): look it up in `projects.md` to find the folder path. Use that as the project root.
- If neither file exists or both are empty: ask the user which project this session belongs to.
### Step 1b — Portfolio item session
Parse the text:
- **Portfolio name** = text before ` / ` (e.g. `Job Opportunities`)
- **Item display name** = text after ` / ` (e.g. `Acme Corp — Senior PM`)
Look up the portfolio name in `projects.md` to get the portfolio folder (e.g. `projects/job-opportunities/`).
Read the portfolio's `CLAUDE.md` to find `**Items folder:**` (e.g. `opportunities/`).
Find the item folder: read `[portfolio-folder]/TRACKER.md`. Find the row where the link text matches the item display name. Extract the relative path