/pm-productivity:strategic-compactfrom pm-productivity
Monitors context usage and suggests compaction at logical milestones to prevent degraded performance in long sessions.
Ships in pm-productivity. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Proactively manage context window to prevent degraded performance in long sessions.
Assess Context State
Identify Compaction Point Suggest compaction at natural milestones:
Preserve Key State
Before suggesting /clear, ensure these are persisted:
tasks/todo.mdtasks/lessons.mdSuggest Compaction Output:
Context check: ~{percent}% used
Milestone: {what was just completed}
Recommendation: {compact now / safe to continue / approaching limit}
Before /clear:
- [ ] Handoff doc written
- [ ] Work committed
- [ ] Todo updated
Post-Compaction Recovery
After /clear, use session-init skill to restore context.
Context check: ~65% used
Milestone: Implementation phase complete
Recommendation: Good time to compact before code review
Before /clear:
- [ ] Handoff doc written
- [ ] Work committed (3 files)
- [ ] Todo updated
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mshadmanrahman/pm-pilot --plugin pm-productivity6 skills in this plugin
/handoff-docCreate portable handoff document when switching sessions/manifest-readerRead and summarize sub-agent manifest files/meta-observerTrack skill performance and emerging patterns/orchestratorWave-based parallel task execution with sub-agents/session-initLightweight session initialization with context recoveryOther plugins' skills for the same job