/dev-vitals:context-compressionfrom dev-vitals
Compresses bloated conversation context into a compact handoff artifact to preserve continuity and avoid repeating mistakes when starting a new session.
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.
Read when SKILL.md points to them.
Use when context approaches limits or response quality degrades (repeated mistakes, forgotten constraints, lost-in-the-middle effects) — typically after many turns of debugging or complex planning.
Diagnose bloat — identify: redundant outputs (same file read multiple times), contradictory instructions that accumulated over turns, constraint forgetting (earlier requirements no longer respected).
Draft summary — synthesize the current valid state of the code or plan in 3–5 sentences.
Extract anti-patterns — list what failed and why: "Attempted X → failed because Y". These are critical to prevent the next session from looping on the same mistakes.
Generate handoff artifact — write the following template to disk:
## Goal
[One-sentence objective]
## Current state
[What is working / what is in place right now]
## Blocker / next step
[The exact next action to take]
## Anti-patterns (do not repeat)
- Tried X → failed because Y
- Tried A → blocked by B
## Key files
- `path/to/file.ts` — [what it does / why it matters]
## Open risks
- [Anything uncertain or requiring verification]
## Decisions made
- [Key tradeoffs and why alternatives were rejected]
Restart — tell the user to start a new chat session and attach the handoff file as the first message.
Before finalizing, verify the handoff can answer:
references/compression-quality-probes.mdWhat 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.Other plugins' skills for the same job