strategic-compaction

strategic-compaction is a skill for Claude Code, Codex from buiphucminhtam/forgewright. It costs 80 tokens per session (1,715 once invoked), scanned A, original, no licence file.

A conversation-management skill that identifies natural points to shorten or reorganize the working context. It can react to milestones, repeated failures, large changes, and architecture decisions.

In plain words
What is it for?
It is for managing context during research, debugging, architecture work, and changes that span many files.
Why use it?
Long conversations can make an agent lose track of important details or spend too much context on finished work. This helps identify when the context should be compacted.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit It is for managing context during research, debugging, architecture work, and changes that span many files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/buiphucminhtam/forgewright/strategic-compaction
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 buiphucminhtam/forgewright --skill strategic-compaction
Clone the repo
git clone --depth 1 https://github.com/buiphucminhtam/forgewright

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-compaction

README.md
[![agentmods](https://agentmods.dev/badge/skills/buiphucminhtam/forgewright/strategic-compaction/github.svg)](https://agentmods.dev/skills/buiphucminhtam/forgewright/strategic-compaction)
Your own site
<a href="https://agentmods.dev/skills/buiphucminhtam/forgewright/strategic-compaction"><img src="https://agentmods.dev/badge/skills/buiphucminhtam/forgewright/strategic-compaction/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-compaction

Your own site · 80×15
<a href="https://agentmods.dev/skills/buiphucminhtam/forgewright/strategic-compaction"><img src="https://agentmods.dev/badge/skills/buiphucminhtam/forgewright/strategic-compaction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,715 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 unknown 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.00080 $0.01715
Opus 5 $0.00040 $0.00857
Sonnet 5 $0.00016 $0.00343
Haiku 4.5 $0.00008 $0.00171

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

Security

Grade A, and why

strategic-compaction 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (evals/run-tests.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/strategic-compaction/SKILL.md · 238 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

3 files 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. 7d ago First seen · 238 lines · 80 tokens per session scan A c7a12e0ffe7b

Subscribe to this mod's changes

strategic-compaction is a skill published in the GitHub repository buiphucminhtam/forgewright (48 stars, last pushed 5d ago), with no licence file. It adds 80 tokens to every session and 1,715 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

kn-init

Use at the start of a new session to read project docs, understand context, and see current state.

knowns-dev/knowns · 23 tokens

kn-extract

Use when extracting reusable patterns, decisions, failures, or knowledge into documentation.

knowns-dev/knowns · 18 tokens

mnemo-cortex

Installs and wires Mnemo Cortex (local-first persistent memory) into OpenClaw and other MCP-capable agents. Use for cross-session recall, decision history, or multi-agent shared memory.

GuyMannDude/mnemo-cortex · 44 tokens

alive:save

The human wants to checkpoint. Or: the stash has grown heavy — 5+ items, 30+ minutes, a natural pause in the work. The squirrel doesn't decide when to save. It surfaces the need and lets the human pull the trigger. Runs the full save protocol: confirms stash, writes log, updates state, generates projections…

alivecontext/alive · 78 tokens

alive:session-history

Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…

alivecontext/alive · 76 tokens

alive:load-context

The human mentions a walnut to work on, asks about a specific venture/experiment/project, or wants to check status — not just explicit 'load X'. Load the brief pack (3 files), resolve the people involved, check the active bundle — then surface one observation and ask what to work on. Context loads in tiers: walnut and…

alivecontext/alive · 81 tokens