The skill recommends when to compact during long or multi-phase sessions, with a decision guide for phase transitions and advice on saving a checkpoint first. It also describes an optional Claude Code hook that can provide configurable reminders, including periodic reminders after a call threshold.
63%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/strategic-compact/SKILL.mdChoose a useful phase boundary for manual compaction. Use /compact in clients that support it.
Auto-compaction triggers at arbitrary points:
Strategic compaction at logical boundaries:
When the client reports context usage, judge pressure relative to the active model’s context window. A tool-call count can prompt a review, but it does not measure remaining context.
The optional local helper counts calls when configured as a Claude Code PreToolUse hook for Edit and Write. It:
Manual use requires no hook. Configure the helper through the user’s existing agent configuration workflow if they request an automatic reminder.
Environment variables:
COMPACT_THRESHOLD — Tool calls before first suggestion (default: 50)Use this table to decide when to compact:
| Phase Transition | Compact? | Why |
|---|---|---|
| Research → Planning | Yes | Research context is bulky; plan is the distilled output |
| Planning → Implementation | Yes | The implementation plan is saved in a task file |
| Implementation → Testing | Maybe | Keep if tests reference recent code; compact if switching focus |
| Debugging → Next feature | Yes | Debug traces pollute context for unrelated work |
| Mid-implementation | No | Losing variable names, file paths, and partial state is costly |
| After a failed approach | Yes | Clear the dead-end reasoning before trying a new approach |
Persistence varies by client and session. Save a checkpoint to an authorized task file before compaction, with the goal, decisions, pending work, and verification evidence.
| Persists | Lost |
|---|---|
| Project instructions loaded from disk | Intermediate reasoning and analysis |
| Task list, when the client exposes and preserves one | File contents you previously read |
| Authorized notes written to disk | Multi-step conversation context |
| Git state (commits, branches) | Tool call history and counts |
| Files on disk | Nuanced user preferences stated verbally |
/compact with a summary — Add a custom message: /compact Focus on implementing auth middleware nextsaski/arnesto
927d3ae
compactCanonical home
since Feb 12, 2026
Also appears in
last in sync Mar 28, 2026
on Oct 16, 2026
on Sep 2, 2026
last in sync Mar 28, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.