Mpm Session Management
БесплатноБез исполняемых скриптовНе проверенPM session management framework for context limits and session resume
от bobmatnyc★ 160 звёзд на GitHubОб этом скилле
PM Session Management
Type: Framework Applies To: Project Manager Agent Load Priority: On-demand (context limit or session resume)
Umbrella skill. This skill covers the concepts of PM session lifecycle: the auto-pause threshold system, git-based continuity, and how session management fits the PM workflow. The concrete, user-invocable procedures live in two dedicated skills — use them for the actual steps:
mpm-session-pause— pause and persist current work state.mpm-session-resume— load context from a paused session.Do not duplicate their step-by-step instructions here; this skill points at them.
Purpose
This skill provides the conceptual model for PM session pause/resume when
context limits are approaching or when resuming from a previous session. These
protocols are only needed when hitting token limits or starting a session with
existing pause state. For the operational steps, invoke mpm-session-pause /
mpm-session-resume.
When This Skill Is Loaded
- Context usage reaches 70%+ thresholds (informational warnings only)
- Session starts with
.claude-mpm/sessions/LATEST-SESSION.txt - User runs
/mpm-session-resume
Context Usage Monitoring
The MPM framework continuously tracks context usage and provides informational warnings as usage approaches limits. Context-usage auto-pause (which used to abort sessions at 90% usage) was disabled in commit da5166603 (PR #646) to preserve legitimate active work.
Threshold Levels and Warnings
| Level | Usage | Behavior |
|---|---|---|
| Caution | 70% | Informational warning: "Context usage at 70%. Consider wrapping up current work." |
| Warning | 85% | Informational warning: "Context usage at 85%. Session nearing capacity." |
| Auto-Pause Disabled | 90% | Informational warning: "Context usage at 90%. Consider wrapping up or running /compact (auto-pause is disabled)." |
| Critical | 95% | Informational warning: "Context usage at 95%. Consider wrapping up or running /compact (auto-pause is disabled)." |
Crossing these thresholds only produces informational warnings. No session pause is triggered, no ACTIVE-PAUSE.jsonl file is created. Sessions continue normally.
Manual Session Pause
To save session state before context limits:
- Use the
/mpm-session-pauseskill to explicitly create a session snapshot - This captures git state, todos, task list, and accomplishments into
.claude-mpm/sessions/session-{timestamp}.*files - Sessions are stored in project-local
.claude-mpm/sessions/directory (not synced across machines)
Session Resume Protocol
Procedure. The step-by-step resume flow now lives in
mpm-session-resume. Invoke that skill to load and display context from a paused session.
When resuming work:
- Use
/mpm-session-resumeto load the most recent paused session - The skill detects
.claude-mpm/sessions/LATEST-SESSION.txtand loads the associated snapshot - Session accomplishments, pending tasks, and git context are displayed
- PM can continue work with full prior context
PM Response to Context Warnings
When PM sees context warnings (70%+), follow this protocol:
Immediate Actions
Wrap up current work phase
- Complete the current delegation cycle
- Don't start new major tasks
Document all in-progress tasks
- Ensure all todos are updated with current status
- Mark BLOCKED todos with specific blockers
- Add context to in_progress todos
Delegate remaining work with clear handoff
- Provide detailed context to agents
- Include acceptance criteria
- Reference relevant files and commits
Create summary
- What was completed
- What remains to be done
- Any blockers or important context
Example Wrap-Up Sequence
Context at 85% - wrapping up current phase
Completed:
- ✅ OAuth2 implementation (commit abc123)
- ✅ Staging deployment verified
In Progress:
- 🔄 QA verification (api-qa testing login flow)
Remaining:
- Documentation update (auth flow docs)
- Production deployment
Creating session snapshot for clean resume...
Git-Based Session Continuity
Git history provides additional session context that complements session snapshots:
Useful Git Commands
# Recent commits (what was delivered)
git log --oneline -10
# Uncommitted changes (work in progress)
git status
# Recent work (last 24 hours)
git log --since="24 hours ago" --pretty=format:"%h %s"
# Files changed recently
git log --name-status --since="24 hours ago"
Integration with Session Resume
When resuming a session, PM should:
- Load session snapshot (if available)
- Check git log for additional context
- Verify git status for uncommitted work
- Reconcile session state with git state
Example:
Resuming session...
Session snapshot: Work on OAuth2 authentication
Git log: Last commit "feat: add OAuth2 provider" (2 hours ago)
Git status: Uncommitted
Установить Mpm Session Management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Mpm Session Management?
PM session management framework for context limits and session resume
Как установить скилл Mpm Session Management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Mpm 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