save
2
总安装量
2
周安装量
#75458
全站排名
安装命令
npx skills add https://github.com/cerico/macfair --skill save
Agent 安装分布
trae
2
gemini-cli
2
claude-code
2
github-copilot
2
windsurf
2
codex
2
Skill 文档
Save
Save session context and exit cleanly.
Steps
-
Review the conversation to understand what was worked on, decisions made, and what’s next.
-
Write
tmp/handoff.md(createtmp/if needed):
# Handoff
**Date**: [today's date]
**Branch**: [current git branch, or "n/a"]
## Summary
[1-2 sentences: what we worked on this session]
## Decisions
- [key decisions made]
## Next
- [what to do next session]
## Blockers
- [any blockers, or "none"]
-
If the current directory is a hub, run
/hub next <action>with the most important next step. -
Print:
Session saved. -
Exit the session by running this Bash command:
kill -INT $CLAUDE_WRAPPER_PID 2>/dev/null || echo "Type /exit to close."
If CLAUDE_WRAPPER_PID is not set (session started without the wrapper), the fallback message tells the user to type /exit.
Rules
- Fill in ALL sections from conversation context. Never leave placeholders.
- Keep it concise. The next session needs orientation, not a transcript.
- If there are no blockers, write “none”.
- If there’s no git branch, write “n/a”.
- The kill command MUST be the very last thing executed. Nothing after it.