session-manager
管理当前分支的Claude Code会话。在以下情况下使用此技能:- 用户询问"接下来是什么?"或"我在哪里?"- 用户在没有会话的情况下在新分支上开始工作 - 在提交前(以更新会话日志)- 在休息后恢复工作时
📖 中文导读:管理当前分支的Claude Code会话。在以下情况下使用此技能:- 用户询问"接下来是什么?"或"我在哪里?"- 用户在没有会话的情况下在新分支上开始工作 - 在提交前(以更新会话日志)- 在休息后恢复工作时 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: session-manager description: | Manage Claude Code sessions for the current branch. Use this skill when: - User asks "what's next?" or "where was I?" - User starts work on a new branch without a session - Before committing (to update session log) - When resuming work after a break
Session Manager
Manage work sessions that persist context across conversation resets.
When to Use This Skill
Proactively invoke when user:
- Asks about current work context
- Switches branches and needs session context
- Wants to create or update a session
- Is resuming work or asking "what's next?"
Context Files (Auto-Injected)
- rules/sessions.md: Rules for session workflow (BLOCKING requirements)
- context/sessions.md: Detailed examples and patterns
Read these files for complete guidance. This skill provides quick reference only.
Quick Reference
Check Session Status
git branch --show-current
# Sanitize: replace / with -
# Read: .claude/branches/<sanitized>
# Read: .claude/sessions/<session>.md → focus on Next Steps
Create Session
Use /memento:session create command.
Update Session
Edit session file directly. Update triggers:
- Beginning work
- After milestone
- Before pause
- Before commit (atomic with code)
Key Rules (from rules/sessions.md)
- Never guess current branch — always
git branch --show-current - Session = Branch = Issue (1:1:1 mapping)
- Atomic commits — session + code together
- BLOCKING: No source edits without active session
What This Skill Does NOT Do
- Define session file format (see context/sessions.md)
- Define workflow patterns (see rules/sessions.md)
- Handle git operations (see rules/git.md, context/git.md via onus)