claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Manages Claude Code sessions with naming, checkpointing, and resume strategies. Use when organizing long-running work or resuming across sessions.
$ npx -y skills add athola/claude-night-market --skill session-management --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/session-managementContext preview
The summary Claude sees to decide when to auto-load this skill.
Manages Claude Code sessions with naming, checkpointing, and resume strategies. Use when organizing long-running work or resuming across sessions.
name: session-management description: Manages Claude Code sessions with naming, checkpointing, and resume strategies. Use when organizing long-running work or resuming across sessions. alwaysApply: false category: workflow tags: - session - resume - checkpoint - debugging tools: [] complexity: low model_hint: fast estimated_tokens: 400
Claude Code supports named sessions for better workflow organization. Use this skill to manage complex, long-running work across multiple sessions.
| 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 |
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
Create checkpoints during long feature work:
# After completing milestone 1 /rename feature-x-milestone-1 # Continue in new session # Reference old session if needed
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
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
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
The `/resume` screen provides:
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.
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 |
Name sessions when:
Unnamed sessions are eventually garbage collected. Named sessions persist longer. Periodically clean up old named sessions you no longer need.
Combine session management with other Sanctum skills:
1. **Before starting**: Run `Skill(sanctum:git-workspace-review)` to capture context 2. **Name the session**: `/rename <descriptive-name>` 3. **Work**: Use appropriate skills for the task 4. **Resume if needed**: `claude --resume <name>`
If a named session isn't appearing in `/resume`:
If you see duplicate session entries when resuming in VS Code:
If context seems incomplete or resume is slow:
Previously, disconnecting from a terminal on macOS could leave orphaned Claude Code processes running. This is now fixed in 2.1.46+. If you encounter stale CC processes on older versions, manually check and kill them:
# Find orphaned claude processes ps
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.