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.
npx skills add darellchua2/opencode-config-template --skill strategic-compact-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote 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.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/strategic-compact-skill)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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
- Assess: token estimate, open tasks, decisions made, files modified, errors resolved.
- Classify content into the four tiers.
- Strategy: list keep-full / summarize / discard items; present the plan before executing.
- 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. - 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. …
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.
- 2mo ago Changed · +2 lines 53bb8acbc3b0
- 2mo ago Changed · -174 lines c9f3050fcdf1
- 2mo ago Changed 83b3a983dbf9
- 3mo ago First seen · 248 lines · 25 tokens per session scan A ceed4af94554
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.
strategic-compact-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| strategic-compact-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| orbit-notionnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 120k | today | MIT | A | 30 | Claude Code, Codex |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 21k | 17d ago | MIT | A | 184 | Claude Code |
| feishuHmbown/CodeWhale | Skill | 41k | 6d ago | MIT | A | 33 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 11d ago | MIT | A | 52 | Claude Code, Codex |