context-manager
Skill4 starsChanged 4 months agoMITView on GitHub
Use when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- tturupapa-stack/agent-company-v5.1their own version, first seen Nov 8, 2026
- shino369/claude-code-personal-workspacetheir own version, first seen Nov 8, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
- felvieira/claude-skills-fvtheir own version, first seen Sep 2, 2026
- valsecchi75/project-scaffoldertheir own version, first seen Aug 3, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- gaoziman/claude-context-manager★ 87same name
- jshsakura/awesome-opencode-skills★ 30same name
- felvieira/claude-skills-fv★ 27same name
- belokonm/claude-supercode-skills★ 11same name
- valsecchi75/project-scaffolder★ 9same name
- xfstudio/skills★ 9same name
- nicolasestrem/antigravity-gemini-skills★ 8same name
- shino369/claude-code-personal-workspace★ 4same name
- ai4brands-design/claude-skills★ 2same name
- RockaRhymeLLC/claude-code-skills★ 1same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentic-engineeringSkill
- agent-teams-commandSkill
- graph-engineeringSkill
- harness-engineeringSkill
- loop-engineeringSkill
- verify-before-claimSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Treat context as RAM, durable storage as disk, and tools as retrieval.
- Very specific: line 36
If runtime limits or durable state are unavailable, choose a conservative explicit budget or return NEEDS_INPUT.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Manager
<skill_contract>
<input>An active objective, runtime context limits, decision-critical state, evidence, budgets, and durable storage.</input>
<output>A bounded context manifest, checkpoint, compaction decision, and capability-routing receipt.</output>
<done>The next decision can be resumed without losing constraints, permissions, provenance, or failure history.</done>
<non_goals>Task orchestration, vendor-specific routing, hidden truncation, or retaining history that cannot change a decision.</non_goals>
Treat context as RAM, durable storage as disk, and tools as retrieval. Pay only for information that changes the next decision or prevents an execution error.
Usage Template
Provide: objective, phase, runtime context limit, token/cost budget, active constraints, current evidence, durable state location, and expected next decisions.
Workflow
<intake>Measure available budget from runtime data; do not infer limits or prices from model names. Partition context into objective, constraints, active state, evidence, open unknowns, and history. Identify the next irreversible or high-cost decision.
</intake><unknowns_gate>
If runtime limits or durable state are unavailable, choose a conservative explicit budget or return NEEDS_INPUT. Never silently drop constraints, approvals, source provenance, failed attempts, or user decisions.
</unknowns_gate>
<execute>Apply KEEP / SUMMARIZE / DROP / RETRIEVE:
- KEEP: objective, acceptance criteria, permissions, active files, current state, fresh evidence, blockers.
- SUMMARIZE: completed exploration, superseded plans, verbose tool output; retain decisions and locators.
- DROP: duplicated prose, stale speculation, irrelevant logs, and reconstructible boilerplate.
- RETRIEVE: load detailed references only when the next action needs them.
Checkpoint at phase boundaries or before compaction. Route work by capability requirements such as reasoning depth, tool use, latency, cost, multimodality, and context capacity; runtime policy selects the implementation. Keep stable prompt prefixes unchanged when caching is available.
For Graph workflows, treat each node context as private RAM and each typed edge payload as a bounded transfer contract. Pass artifact locators, schemas, decisions, and verifier receipts; do not concatenate all branch histories into every successor. A join loads only the declared inputs needed for its decision.
</execute><evaluate>Simulate the next action using only the checkpoint. It must recover objective, constraints, state, evidence, unknowns, last error, and next action without consulting lost chat. Compare estimated budget with runtime telemetry and correct drift.
</evaluate><state_contract>
Persist {run_id, status, attempt, budget, evidence, unknowns, last_error, next_action} plus phase, decisions, permissions, active resources, completed work, rejected approaches, retrieval pointers, and budget telemetry. Version checkpoints; never replace the only recoverable state.
</state_contract>
Failure Protocol
NEEDS_INPUT: no reliable limit or cost policy exists and the choice changes execution.INSUFFICIENT_EVIDENCE: a proposed summary cannot preserve a material decision or locator; keep the source segment.VERIFY_FAILED: checkpoint replay loses required state; restore the prior version and recompact.BUDGET_STOP: reserve enough capacity for receipt and handoff, persist state, then stop.
Output Contract
Return status, result (budget plan or checkpoint), evidence (runtime telemetry and replay check), unknowns, and next_action with required retrieval pointers.
Edge Cases
- Runtime pricing changes mid-project: recompute from current policy; preserve earlier estimates as historical evidence.
- A long log contains one decisive error: keep the error signature and locator, summarize the surrounding output, and retain retrieval access.
- A Graph join receives three branch transcripts: retrieve the declared output artifacts and receipts, not the full private context of every branch.
Success Metrics
- A fresh agent can resume from the checkpoint without material context loss.
- Context use stays within the declared runtime budget.
- Routing depends on capabilities and policy, not fixed model names.
Quality Gates
- Objective, constraints, permissions, evidence, and next action survive replay.
- Dropped content is duplicated, stale, or reconstructible.
- Budget estimates cite current runtime data or explicit conservative assumptions.
- Checkpoints are versioned and recoverable.
</skill_contract>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

