context-manager — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited context-manager (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Manage the scarcest resource in the LLM OS: context window (RAM).
Prompt
Use context-manager for this task. Estimate token budget, choose what to keep, what to summarize, and what to drop.Use Case
Expected Result
Output Example
Verification Case
Verified Effect
"When you're vague, you're almost always right. When you're concrete, you may be right or wrong. Either way is fine — we can discover that much more fast."
| Vague | Concrete | Savings |
|---|---|---|
| "Analyze this document" | "Extract 3 key metrics from earnings report, compare to last quarter" | ~60% |
| "Help with this code" | "Fix TypeScript error line 42: 'Property id does not exist on type User'" | ~70% |
| "Research this topic" | "Find 5 sources about Claude Code auto-mode security, focus on classifier" | ~50% |
Context Window = System Prompt + User Input + Retrieved Context + Tool Results + Agent Thoughts
Budget:
├─ System Prompt + Schema 10-15%
├─ User Request 5-10%
├─ Retrieved Context (RAG) 30-40%
├─ Tool Results 20-30%
└─ Agent Reasoning 10-15%Rule: Exceeds 80% → must truncate/compress.
Layer 1: Immutable Core (always injected)
├─ System prompt (persona + constraints)
├─ Schema/ontology
└─ Safety rules
Layer 2: Task Context (per-request)
├─ User request
├─ Relevant wiki pages (top-k)
└─ Recent session log
Layer 3: Ephemeral (auto-managed)
├─ Tool call history (trim old)
├─ Large outputs (summarize)
└─ Extended thinking (compact)| Strategy | When | How | Saved |
|---|---|---|---|
| Summarize | Output >500 tokens | summarize() | ~70% |
| Trim oldest | Loop >10 turns | Remove earliest | ~40% |
| Deduplicate | Repeated content | Keep one copy | ~20% |
| Drop results | Action complete | Keep calls + errors only | ~50% |
| Compact CoT | Thinking used | 1-sentence conclusion | ~80% |
| Cache prefix | Repeated prompt | Identical prefix first | ~90% latency |
| Model | Input/MTok | Output/MTok | Window |
|---|---|---|---|
| Opus 4.6 | $15.00 | $75.00 | 200K |
| Sonnet 4.6 | $3.00 | $15.00 | 200K |
| Haiku 3.5 | $0.80 | $4.00 | 200K |
Quick estimates:
Simple task (1-2 steps)?
├─ YES → Haiku, ~10K tokens
└─ NO → Analytical (research/compile)?
├─ YES → Opus, ~50-100K
└─ NO → Procedural (ingest/lint)?
├─ YES → Sonnet, ~20-50K
└─ NO → Sonnet defaultFor long tasks, compaction is not just shorter text. The summary must preserve the state needed to continue without drift:
Goal:
Current definition of done:
User constraints and denied actions:
Key files, sources, or artifacts:
Completed steps:
Failed paths and why:
Verification evidence:
Open risks:
Next action:Use compaction before context pressure becomes an emergency. After resuming from a compacted state, run one quick continuity check: confirm the goal, constraints, current step, and evidence before taking the next action.
"Token maxing is actually the coolest thing you can do now." — Gary Tan
| Strategy | When | Approach |
|---|---|---|
| Tokenmaxxing | Research, deep analysis | 20 sources, cross-reference everything |
| Efficiency | Production, cost-sensitive | Concrete prompts, caching, truncation |
Thin Harness, Fat Skills:
| Scenario | Approach | Quality Gain |
|---|---|---|
| Research synthesis | 20 sources, cross-reference | 3-5x |
| Code review | Full repo analysis | 2-3x fewer bugs |
| Creative writing | Multiple drafts, self-critique | Significantly better |
| Scenario | Approach | Savings |
|---|---|---|
| Routine linting | Haiku, minimal context | ~80% |
| Simple edits | Concrete prompt, no CoT | ~60% |
| Status checks | One-liner | ~90% |
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.