strategic-compact

strategic-compact is a skill for Claude Code, Codex from frankxai/claude-skills-library. It costs 52 tokens per session (406 once invoked), scanned A, original, MIT.

A session handoff practice that records what worked, what failed, and what remains open before compressing a long working session.

In plain words
What is it for?
Use it to create compact notes at major phase boundaries in a coding or research session.
Why use it?
It preserves useful context when moving between research and editing or between completed milestones and new work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to create compact notes at major phase boundaries in a coding or research session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frankxai/claude-skills-library/strategic-compact
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add frankxai/claude-skills-library --skill strategic-compact
Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-skills-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for strategic-compact

README.md
[![agentmods](https://agentmods.dev/badge/skills/frankxai/claude-skills-library/strategic-compact/github.svg)](https://agentmods.dev/skills/frankxai/claude-skills-library/strategic-compact)
Your own site
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/strategic-compact"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/strategic-compact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for strategic-compact

Your own site · 80×15
<a href="https://agentmods.dev/skills/frankxai/claude-skills-library/strategic-compact"><img src="https://agentmods.dev/badge/skills/frankxai/claude-skills-library/strategic-compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00406
Opus 5.5 $0.00021 $0.00162
Sonnet 5.5 $0.00010 $0.00081
Haiku 4.5 $0.00005 $0.00041

Measured 14d ago against content hash a4ebd6eea38b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

strategic-compact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

absorbed/harness/strategic-compact/SKILL.md · 39 lines

What it actually says

Compact on a phase boundary

Auto-compact fires when the window is full. That often cuts a multi-file edit in half. Compact when a phase is actually done, and only after the next phase can be resumed from disk.

Write this file first

Use ~/.claude/sessions/ecc-YYYY-MM-DD.md, or the handover file the repo already uses. The note needs these three headings:

  • What worked, with the command output or the commit that proves it.
  • What failed, including the command that failed.
  • What is still open, as the next concrete action.

If a heading is missing, add it. Do not paste an untrusted transcript into starlight-memory.

When to compact

  • Research is done and the plan is a file.
  • A milestone is committed and the next task is different.
  • A failed approach is recorded and you are starting a different one.

When to keep the window

  • You are mid-edit across several files.
  • The next step needs a path, a diff, or an error you have not written down.

The todo list may not survive compaction on current Claude models. The file is the record. The estate already runs pre-compact.js. Do not add a second compact hook that double-fires.

Where this came from

The phase-boundary idea follows affaan-m/ECC skills/strategic-compact at 4eb71d92a39cab44ad40ac9d8a6a5ccb4029d6c2 (MIT). The three buckets, the session path, and the ban on a second hook are estate choices.

Built on SIP.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago First seen · 39 lines · 52 tokens per session scan A a4ebd6eea38b

Subscribe to this mod's changes

strategic-compact is a skill published in the GitHub repository frankxai/claude-skills-library (47 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 406 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

Other skills, from other repositories

session-memory-manager

Manages the entire session lifecycle: from context loading (PRD, Tech Stack) at startup, to maintaining project memory during active sessions, and creating ultra-compact checkpoints for handoff. / Mengelola siklus hidup sesi: dari pemuatan konteks awal, pemeliharaan memori proyek, hingga pembuatan checkpoint ringkas…

roedyrustam/vibes-plug · 77 tokens

nav-compact

Clear conversation context while preserving knowledge via context marker. Use when user says "clear context", "start fresh", "done with this task", or when approaching token limits.

qf-studio/navigator · 38 tokens

fresh-start

Continue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use whenever the user wants to move to a new chat or conversation, hits usage limits, says replies got slow or Claude forgets earlier details, or the conversation has grown long.

egorfedorov/claude-context-optimizer · 60 tokens

token-check

Estimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too large to send.

egorfedorov/claude-context-optimizer · 66 tokens

add-new-entry-from-temp-md

Format new entries from temp.md into tempentries.md, ready to insert into the section files. USE FOR: adding new resources to the knowledge base. DO NOT USE FOR: editing existing entries or restructuring sections.

kimtth/azure-openai-llm-notes · 49 tokens

shipkit-work-memory

Log session progress and save resume state. Infers from conversation and git. Triggers: 'log progress', 'session summary', 'checkpoint', 'save progress', 'end session'.

stefan-stepzero/shipkit · 42 tokens