session-management
БесплатноБез исполняемых скриптовНе проверенManages Claude Code sessions with naming, checkpointing, and resume strategies
от athola2 102 установки в других каталогахОб этом скилле
Night Market Skill: ported from claude-night-market/sanctum. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Session Management
When To Use
- Managing session checkpoints and state preservation
- Resuming work across Claude Code sessions
When NOT To Use
- Short sessions that do not need checkpoints
- Fresh starts where no prior session context exists
Overview
Claude Code supports named sessions for better workflow organization. Use this skill to manage complex, long-running work across multiple sessions.
Available Commands
| Command | Description |
|---|---|
/rename |
Name the current session (auto-generates name if no argument given, 2.1.41+) |
/resume |
Resume a previous session (REPL) |
claude --resume <name> |
Resume from terminal |
Workflow Patterns
1. Debugging Sessions
Name debug sessions for easy resumption:
# Start debugging
/rename debugging-auth-issue
# ... work on the issue ...
# If you need to pause, session is auto-saved
# Resume later:
claude --resume debugging-auth-issue
2. Feature Development Checkpoints
Create checkpoints during long feature work:
# After completing milestone 1
/rename feature-x-milestone-1
# Continue in new session
# Reference old session if needed
3. PR Review Sessions
For complex PR reviews that span multiple sittings:
# Start review
/rename pr-review-123
# Take breaks without losing context
# Resume:
claude --resume pr-review-123
4. PR-Linked Sessions (Claude Code 2.1.27+)
Sessions are automatically linked to PRs when created via gh pr create. Resume PR-specific sessions later:
# Resume session for a specific PR
claude --from-pr 156
claude --from-pr https://github.com/org/repo/pull/156
# Workflow: review → pause → resume with full context
/rename pr-review-156
# ... review work ...
# Later:
claude --from-pr 156
5. Investigation Sessions
When investigating issues that may require research:
# Start investigation
/rename investigate-memory-leak
# Pause to gather more info externally
# Resume with full context:
claude --resume investigate-memory-leak
Resume Screen Features
The /resume screen provides:
- Grouped forked sessions: See related sessions together
- Keyboard shortcuts (defaults, customizable via
/keybindings):- Preview session content
- Rename a session
- Recent sessions: Sorted by last activity
6. Resume Hint on Exit (Claude Code 2.1.31+)
Claude Code now shows a resume hint when you exit, displaying the command to continue your conversation. This makes session resumption more discoverable: users no longer need to know about --resume beforehand.
Best Practices
Naming Conventions
Use descriptive, hyphenated names:
| Pattern | Example | Use Case |
|---|---|---|
debugging-<issue> |
debugging-auth-401 |
Bug investigation |
feature-<name>-<milestone> |
feature-search-v2 |
Feature development |
pr-review-<number> |
pr-review-156 |
PR reviews |
investigate-<topic> |
investigate-perf |
Research |
refactor-<area> |
refactor-api-layer |
Refactoring work |
When to Name Sessions
Name sessions when:
- Work will span multiple days
- You might need to pause unexpectedly
- The session contains valuable context
- You want to reference it later
Session Cleanup
Unnamed sessions are eventually garbage collected. Named sessions persist longer. Periodically clean up old named sessions you no longer need.
Integration with Sanctum
Combine session management with other Sanctum skills:
- Before starting: Run
Skill(sanctum:git-workspace-review)to capture context - Name the session:
/rename <descriptive-name> - Work: Use appropriate skills for the task
- Resume if needed:
claude --resume <name>
Troubleshooting
Session Not Found
If a named session isn't appearing in /resume:
- Check for typos in the name
- Sessions may expire after extended inactivity
- Use
/resumescreen to browse available sessions
Duplicate Sessions in VS Code
If you see duplicate session entries when resuming in VS Code:
- Claude Code 2.1.38+: Fixed: resume now correctly reuses the existing session without creating duplicates
- Older versions: Ignore the duplicate entries; they point to the same underlying session
Lost Context After Resume
If context seems incomplete or resume is slow:
- Claude Code 2.1.30+: 68% memory reduction for
--resumevia stat-based session loading with progressive enrichment, especially impactful for users with many sessions. Also fixes hangs when resuming sessions with corrupted transcript files (parentUuid cycles). - Claude Code 2.1.29+: Fixed slow startup when resuming sessions with many
once: truehooks:saved_hook_contextloading is now optimized
Установить session-management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл session-management?
Manages Claude Code sessions with naming, checkpointing, and resume strategies
Как установить скилл session-management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл session-management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic