strategic-compact-skill

strategic-compact-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 25 tokens per session (808 once invoked), scanned A, original, Apache-2.0.

A guide for managing the context of an AI agent session by identifying essential information and suggesting what to summarize or discard.

In plain words
What is it for?
Use it to plan session breakpoints, compact a lengthy conversation, create an actionable summary, or decide what information can be dropped.
Why use it?
It helps preserve important decisions and instructions when a long session approaches its context limit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md; mentions OpenCode.

Good fit Use it to plan session breakpoints, compact a lengthy conversation, create an actionable summary, or decide what information can be dropped.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/strategic-compact-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/strategic-compact-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/strategic-compact-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/strategic-compact-skill/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-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/strategic-compact-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/strategic-compact-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 808 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00025 $0.00808
Opus 5.5 $0.00010 $0.00323
Sonnet 5.5 $0.00005 $0.00162
Haiku 4.5 $0.00003 $0.00081

Measured 2mo ago against content hash 53bb8acbc3b0, 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-skill 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 2mo 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.

skills/strategic-compact-skill/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

Analyze session context and compact it: classify content by retention priority, generate a session brief that preserves actionable state, and plan session breakpoints.

Trigger phrases: "compact context", "summarize session", "reduce context", "what can we drop", "session getting long", "preserve key decisions".

Retention Tiers

Tier Content Handling
1 — Must keep Current task + acceptance criteria; uncommitted changes and their purpose; active debugging state (hypothesis, what's been tried); blockers and dependencies; auth/security context Keep verbatim
2 — Should keep Architecture decisions + rationale; key file locations; API contracts/data models; test results; partial solutions with reasoning Keep, tighten
3 — Compressible Dead-end explorations ("tried X, failed because Y"); code-review findings (drop the back-and-forth); error resolutions (keep solution, drop the process); unchanged file contents (keep paths only) One line each
4 — Discard Greetings; redundant explanations; abandoned approaches with no learning value; intermediate iterations; content already in files (reference, don't inline) Drop

Workflow

  1. Assess: token estimate, open tasks, decisions made, files modified, errors resolved.
  2. Classify content into the four tiers.
  3. Strategy: list keep-full / summarize / discard items; present the plan before executing.
  4. Execute: generate the session brief; persist critical info to LEARNINGS/ or project config; update AGENTS.md if a project-level finding emerged; define the next session's starting point.
  5. Validate: all active tasks tracked, all decisions preserved with rationale, all error/solution pairs documented, next steps clear. If anything critical was lost — restore and re-compact.

Session Brief (output contract)

## Session Brief (Compacted)

### Active Task
[one line]

### State
- [x] Completed: …
- [ ] In Progress: …
- [ ] Remaining: …

### Key Decisions
1. [decision]: [why] → [impact]

### Files
| File | Status | Notes |
|------|--------|-------|
| path | Modified/Created/Unchanged | what + why |

### Blockers
- …

### Next Steps
1. …

Read the full file on GitHub · 76 lines

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. 2mo ago Changed · +2 lines 53bb8acbc3b0
  2. 2mo ago Changed · -174 lines c9f3050fcdf1
  3. 2mo ago Changed 83b3a983dbf9
  4. 3mo ago First seen · 248 lines · 25 tokens per session scan A ceed4af94554

Subscribe to this mod's changes

strategic-compact-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 808 once invoked, about $0.0001 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-09-03.

Related

strategic-compact-skill compared with skills from other repositories

strategic-compact-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
strategic-compact-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A25Claude Code, Codex
orbit-notionnexu-io/open-designSkill111ktodayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill120ktodayMITA30Claude Code, Codex
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill21k17d agoMITA184Claude Code
feishuHmbown/CodeWhaleSkill41k6d agoMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k11d agoMITA52Claude Code, Codex