Saves the current workstream's state to disk. Trigger phrases: "save context", "save state", "save session", "persist context", "update context".
2 stars
0 votes
0 copies
0 views
Added November 20, 2026
ai-agents
Security analysis
A100/100
Scanned November 20, 2026
$npx -y skills add mattpollak/relay --skill save --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Save?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mattpollak-save)
---
name: save
description: >
Saves the current workstream's state to disk.
Trigger phrases: "save context", "save state", "save session", "persist context", "update context".
---
# Save Workstream State
Save the current session's context to the active workstream's state file.
## Steps
1. **Find active workstream.** Read the workstream name from the session context (injected by session-start or switch). Do NOT call `list_workstreams` — the name is already in context. If no workstream is attached, tell the user and suggest `/relay:new` or `/relay:switch`.
2. **Save.** Call `save_workstream` with the state content and session hint:
```
save_workstream(
name="<active workstream>",
state_content="<80-line state markdown>",
session_id="<from relay-session-id context>",
hint_summary=["<3-6 bullets>"],
hint_decisions=["<decisions if any>"]
)
```
3. **Confirm.** Tell the user the state was saved. Mention backup at `state.md.bak`.
## State File Content
The state file MUST stay under 80 lines. Include these sections:
```markdown
# <Workstream Name>
## Metadata
- **Description:** ...
- **Created:** YYYY-MM-DD
- **Project dir:** /path (if applicable)
## Current Status
2-3 sentences on what's happening right now.
## Key Decisions
- Bullet list of important choices made (accumulated across sessions)
## Next Steps
1. Numbered list of what to do next
## Recent Sessions (optional, if space permits)
- YYYY-MM-DD: One-line summary
```
**Priority if space is tight:** Current Status > Next Steps > Key Decisions > Recent Sessions.
## Hint Writing Guidelines
- Summary bullets should be **what changed**, not how much work happened
- Include specific outcomes: features, capabilities, fixes, design decisions
- If the session spanned multiple workstreams, write one hint per workstream segment
- Keep each bullet to one line, no sub-bullets
- Omit the `hint_decisions` parameter if no notable decisions were made