strategic-compact
БесплатноБез исполняемых скриптовНе проверенManual context compaction at logical workflow boundaries rather than arbitrary auto-compaction. Use after completing exploration phases, before switching…
от djc00p1 147 установок в других каталогахОб этом скилле
Strategic Compact Skill
Manual /compact at logical workflow boundaries, not arbitrary auto-compaction points.
When to Activate
- Running long sessions approaching context limits (200K+ tokens)
- Multi-phase tasks (research → plan → implement → test)
- Switching between unrelated tasks within the same session
- After completing a major milestone before starting new work
Quick Start
- Identify logical phase boundaries in your work
- Save important findings to files before compacting
- Use
/compactwith a context message (e.g., "/compact Now implementing auth") - Continue work referencing saved files, not conversation history
Key Concepts
- Auto-compaction problem — Triggers at arbitrary points, often mid-task
- Strategic compaction — Compact after exploration/planning, before execution
- Persistence — Project instructions, git state, and files on disk survive; conversation history and intermediate reasoning don't
- Checkpoint discipline — Save learnings to files; use git commits to mark progress
- Token awareness — 150K → consider; 180K → plan; 200K+ → should have already compacted
Common Usage
Most frequent patterns:
- Research → build (compact after documentation phase)
- Exploration → execution (compact after CLAUDE.md is written)
- Debug → next feature (compact after fix is committed)
- Failed approach → new strategy (compact to clear dead-end reasoning)
References
references/compaction-guide.md— Decision table, what survives, patterns, token budgeting, optimization strategiesreferences/tool-integration.md— Script documentation, configuration, integration methods- Compaction command —
/compact [optional message] - Status check — Check session context size before major operations
- Memory files — Save to disk (survives compaction)
- Git commits — Mark progress (persists across compaction)
Установить strategic-compact в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл strategic-compact?
Manual context compaction at logical workflow boundaries rather than arbitrary auto-compaction. Use after completing exploration phases, before switching major tasks, or when context approaches limits. Preserves context through task phases. Trigger phrases: context limit, compact, memory pressure, save context, phase transition. Adapted from everything-claude-code by @affaan-m (MIT)
Как установить скилл strategic-compact?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл strategic-compact запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic