agentsclimarketplace

Strategic compact

Skill RhythmMittal19/claude-config/skills/strategic-compact

Ultimate Claude Code configuration — 9 agents, 19 skills, 13 templates. Researched from 850+ repos.

Install
npx -y skills add RhythmMittal19/claude-config --skill strategic-compact

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Intelligent context compaction advisor. Use when context exceeds 50% or when switching between major tasks. Guides when and how to compact for maximum context preservation.

SKILL.md

1.5 KB, 296 tokens by cl100k_base, as published. Nobody here has run it

Strategic Compact Skill

When This Activates

You should consider compaction when:

  • Context usage exceeds 50% (check /cost)
  • Switching between unrelated tasks
  • After completing a major milestone
  • Before starting a complex new investigation

Decision Tree

At 50% context:

  • If current task is nearly done → finish first, then compact
  • If starting new task → compact NOW with summary of completed work
  • If in middle of debugging → save current hypotheses, then compact

At 70% context:

  • MANDATORY compact. No exceptions.
  • Before compacting, dump current state to a TODO or scratchpad file

At 85%+ context:

  • /clear and restart. Compaction at this point loses too much.
  • Use session handoff file for continuity

Compact Instructions Template

When running /compact, use this format:

/compact Preserve: [list key files modified], [current task and progress], [decisions made], [test commands used], [any error messages being investigated]. Discard: [exploration tangents], [rejected approaches], [file contents already committed].

Recovery After Compact

After compaction, immediately:

  1. Re-read the 2-3 most important files for current task
  2. Check git status to see what was changed
  3. Run tests to confirm current state
  4. Resume from where compaction happened

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.