/dev-vitals:strategic-context-compactionfrom dev-vitals
Decides when to compact agent context at logical boundaries (phase transitions, failed approaches) to preserve high-value state while clearing noise.
Ships in dev-vitals. 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.
Compact at logical boundaries to preserve high-value context while clearing noise. Arbitrary or mid-task compaction loses critical state -- file paths, variable names, partial reasoning -- that is expensive to reconstruct.
Decide whether to compact by transition. Use the boundary table; default to NOT compacting mid-work.
| Transition | Compact? | Reason |
|---|---|---|
| Research -- Planning | Yes | Research context is bulky; the plan is the distilled output |
| Planning -- Implementation | Yes | Plan is saved in tasks/files; context is free to reset |
| Implementation -- Testing | Maybe | Keep if tests reference recent code; compact if switching focus area |
| Debugging -- Next feature | Yes | Debug traces pollute unrelated work |
| Mid-implementation | No | Losing file paths, variable names, partial state is costly |
| After a failed approach | Yes | Clear dead-end reasoning before trying a new approach |
Save anything you cannot reconstruct cheaply before compacting.
Know what survives versus what is lost. Anything in the Lost column must be persisted in step 2 first.
| Survives | Lost |
|---|---|
| CLAUDE.md / AGENTS.md instructions | Intermediate reasoning |
| Task list (TodoWrite) | File contents read in session |
| Files on disk | Tool call history |
| Git state | Verbally stated preferences |
| Memory files | Multi-step conversation context |
Compact with an intent-carrying summary prompt, then restore.
/compact -- now implementing auth middleware per plan/compact with no intent summary, so the cleared session has no direction and re-derives the goal.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yeaight7/agent-powerups --plugin dev-vitals16 skills in this plugin
/agent-harness-designUse when designing tool definitions for a new agent or subagent, an agent shows high retry rates, ambiguous tool invocations, or silent failures, or an existing agent harness needs a quality review./agent-runtime-patternsUse when optimizing agent runtime loops, card packs, MCP session lifecycle, tool-call count, or multi-agent orchestration patterns./agent-session-forensicsUse when diagnosing agent session history, interrupted tool loops, missing tool results, timing bottlenecks, or subagent trace correlation./brainstormingUse when starting any creative work — creating features, building components, adding functionality, or modifying behavior — before any implementation begins./context-compressionUse when conversation context is bloated, constraints are being forgotten, or a compact handoff is needed before continuing work./context-minimizationUse when a task runs long and the context window is filling -- large files are being read whole, command output is flooding the transcript, or responses are getting verbose and slow.Other plugins' skills for the same job