Agent skill

Strategic Compact

by cloudnative-co in cloudnative-co/claude-code-starter-kit

Guidance for compacting context manually at phase boundaries instead of waiting for auto-compaction mid-task.

MITAuto-check passed

Install Strategic Compact

skills CLI
$ npx skills add cloudnative-co/claude-code-starter-kit --skill strategic-compact -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cloudnative-co/claude-code-starter-kit strategic-compact --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cloudnative-co/claude-code-starter-kit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/strategic-compact .claude/skills/strategic-compact && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
strategic-compact
GitHub stars
151
Token cost
~310 tokens
SKILL.md length
124 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Guidance for compacting context manually at phase boundaries instead of waiting for auto-compaction mid-task.

  • Works in 4 steps: Compact after planning - Once plan is… → Compact after debugging - Clear… → Don't compact mid-implementation -… → …
  • SKILL.md covers When Compacting Pays Off and Best Practices
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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

Its SKILL.md is about 310 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: One-command setup of a complete Claude Code development environment with interactive wizard. The licence is MIT.

Example prompts

  • “/strategic-compact”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit f00e7ce. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Strategic Compact loads about 310 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 124 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~310

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cloudnative-co/claude-code-starter-kit at commit f00e7ce, republished under its MIT licence (© cloudnative-co). 124 words, ~310 tokens.

Download SKILL.mdSave it as .claude/skills/strategic-compact/SKILL.md (or your agent's skills folder).
name
strategic-compact
description
Guidance for compacting context manually at phase boundaries instead of waiting for auto-compaction mid-task.
when_to_use
Use when a session is getting long and the user is between phases, such as after exploration, before implementation, or before a handoff.

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

  • After exploration, before execution — Compact research context, keep the implementation plan
  • After completing a milestone — Fresh start for the next phase
  • Before major context shifts — Clear exploration context before a different task

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

© cloudnative-co, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/strategic-compact of cloudnative-co/claude-code-starter-kit.

Open the folder on GitHubat commit f00e7ce

Compare with similar skills

Strategic Compact next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Strategic Compact compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Strategic Compact this skillcloudnative-co/claude-code-starter-kit151—~310Automated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k1 repos~2.1kAutomated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k2 repos~434Automated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k2 repos~724Automated safety check: PassMIT
Strategic Compactaffaan-m/ECC274k3 repos~943Automated safety check: PassMIT
Cc Skill Strategic Compactsickn33/agentic-awesome-skills47k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Strategic Compact

    affaan-m/ECC

    Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

    274k GitHub starsUsed in 1 repo~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Strategic Compact

    affaan-m/ECC

    任意の自動コンパクションではなく、タスクフェーズを通じてコンテキストを保持するための論理的な間隔での手動コンパクションを提案します。

    274k GitHub starsUsed in 2 repos~434 tokens
    Auto-check passed
  • Strategic Compact

    affaan-m/ECC

    임의의 자동 컴팩션 대신 논리적 간격에서 수동 컨텍스트 압축을 제안하여 작업 단계를 통해 컨텍스트를 보존합니다.

    274k GitHub starsUsed in 2 repos~724 tokens
    Auto-check passed
  • Strategic Compact

    affaan-m/ECC

    建议在逻辑间隔处手动压缩上下文,以在任务阶段中保留上下文,而非任意的自动压缩。

    274k GitHub starsUsed in 3 repos~943 tokens
    Auto-check passed
  • Cc Skill Strategic Compact

    sickn33/agentic-awesome-skills

    Prepare a verified checkpoint before condensing an agent conversation at a phase boundary.

    47k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Strategic Compact

    xu-xiang/everything-claude-code-zh

    建议在逻辑间隔进行手动上下文压缩(Context Compaction),以便在任务阶段中保留上下文,而不是依赖任意的自动压缩。

    2k GitHub stars~570 tokensUpdated 7 mo ago
    Agent WorkflowsAuto-check passed

More from cloudnative-co/claude-code-starter-kit

All 8 skills in this repo
  • Eval Harness

    cloudnative-co/claude-code-starter-kit

    Formal evaluation framework for Claude Code sessions implementing eval-driven development (EDD) principles.

    151 GitHub starsUsed in 10 repos~1.3k tokens
    Auto-check passed
  • TDD Workflow

    cloudnative-co/claude-code-starter-kit

    A skill your agent uses when the user explicitly asks for TDD or a tests-first workflow, or when developing a new feature with a test coverage requirement.

    151 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Web Content Extraction

    cloudnative-co/claude-code-starter-kit

    Web取得の標準前処理レイヤー。URL・公式ドキュメント・ブログ・ニュース・OSSページを読むときは、原則として毎回このSkillでDefuddleを使い本文をMarkdown/JSON化してから読む。生HTMLのまま要約・分析・比較・レビューしない。トリガー例: URLを読む/Webページ要約/OSS調査/公式Doc確認/記事解析/競合サイト確認/Web一次情報確認。

    151 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Project Guidelines Example

    cloudnative-co/claude-code-starter-kit

    Example project-specific skill template. An agent skill from cloudnative-co/claude-code-starter-kit.

    151 GitHub stars~446 tokensUpdated today
    Auto-check passed
  • Prompt Patterns

    cloudnative-co/claude-code-starter-kit

    Practical prompt patterns and techniques for effective Claude Code usage.

    151 GitHub stars~887 tokensUpdated today
    Auto-check passed
  • Verification Loop

    cloudnative-co/claude-code-starter-kit

    Comprehensive verification system for Claude Code sessions. An agent skill from cloudnative-co/claude-code-starter-kit.

    151 GitHub stars~733 tokensUpdated today
    Auto-check passed

Questions about Strategic Compact

What does Strategic Compact do?

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

How do I install Strategic Compact in Claude Code?

Run `npx skills add cloudnative-co/claude-code-starter-kit --skill strategic-compact -a claude-code`. Or copy the skill folder (skills/strategic-compact in cloudnative-co/claude-code-starter-kit) into .claude/skills/strategic-compact in your project. Claude Code loads it when a task matches its description.

How do I install Strategic Compact in Codex?

Run `npx skills add cloudnative-co/claude-code-starter-kit --skill strategic-compact -a codex`. Or copy the skill folder (skills/strategic-compact in cloudnative-co/claude-code-starter-kit) into .agents/skills/strategic-compact in your project. Codex loads it when a task matches its description.

Can I use Strategic Compact in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cloudnative-co/claude-code-starter-kit --skill strategic-compact -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/strategic-compact, .gemini/skills/strategic-compact, .github/skills/strategic-compact and .opencode/skills/strategic-compact in your project.

What does Strategic Compact need to run?

SKILL.md names no scripts, command-line tools or credentials: Strategic Compact is instructions for the agent only.

Does Strategic Compact access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Strategic Compact safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Strategic Compact use?

Strategic Compact is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Strategic Compact use?

About 310 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Strategic Compact?

Skills that share tags, products or a category with Strategic Compact: Strategic Compact (affaan-m/ECC, 274k stars), Strategic Compact (affaan-m/ECC, 274k stars), Strategic Compact (affaan-m/ECC, 274k stars) and Strategic Compact (affaan-m/ECC, 274k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Strategic Compact?

cloudnative-co (a GitHub organization) maintains it in cloudnative-co/claude-code-starter-kit, which has 151 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 7, 2026.

Source: cloudnative-co/claude-code-starter-kit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.