Strategic compact

From cloudnative-co/claude-code-starter-kit · View interactive version

Strategic compact is an AI agent skill from the GitHub repository cloudnative-co/claude-code-starter-kit. Guidance for compacting context manually at phase boundaries instead of waiting for auto-compaction mid-task.

How to use this skill

Skill file

Strategic Compact Skill

Compact at logical boundaries of your workflow when context has gone stale.

Check the statusline for actual context usage before deciding — do not guess

from tool-call counts or elapsed time.

When Compacting Pays Off

Best Practices

  1. Compact after planning - Once plan is finalized, compact to start fresh
  2. Compact after debugging - Clear error-resolution context before continuing
  3. Don't compact mid-implementation - Preserve context for related changes
  4. Trust the harness - Auto-compaction and the statusline context meter are

reliable; manual /compact is an optimization at phase boundaries, not a

requirement

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.