Agent skill

Context Manager

by Mark393295827 in Mark393295827/third-brain-v7-skills

A skill your agent uses when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing.

MITAuto-check passedAI & LLM Engineering

Install Context Manager

skills CLI
$ npx skills add Mark393295827/third-brain-v7-skills --skill context-manager -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Mark393295827/third-brain-v7-skills context-manager --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Mark393295827/third-brain-v7-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/context-manager .claude/skills/context-manager && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
context-manager
GitHub stars
141
Token cost
~1.5k tokens
SKILL.md length
674 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing.

  • A long-running agent task needs context budgeting
  • SKILL.md covers Usage Template, Workflow, Failure Protocol and Output Contract, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Capability-based model routing

What it does

Context Manager is an agent skill from Mark393295827/third-brain-v7-skills. Use when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Autonomous loops, Budgeting and forecasting and Model routing and gateways. The repository describes itself as: agent wiki +engineering skills. The licence is MIT.

When your agent uses it

  • A long-running agent task needs context budgeting
  • Capability-based model routing

Example prompts

  • “/context-manager”

What it can do on your machine

Read from SKILL.md and the folder at commit 5a64514. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context Manager loads about 1.5k tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 674 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Mark393295827/third-brain-v7-skills at commit 5a64514, republished under its MIT licence (© Mark393295827). 674 words, ~1,482 tokens.

Download SKILL.mdSave it as .claude/skills/context-manager/SKILL.md (or your agent's skills folder).
name
context-manager
description
Use when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing.
metadata.version
8.1.0
metadata.updated
2026-08-18
metadata.profile
stateful
metadata.assumes
Runtime context limits, cost policy, and durable storage are available or can be bounded explicitly.
metadata.conflicts_with
Hard-coded vendor pricing, silent context loss, or retaining low-value history at the expense of execution state.

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.

Maintain one versioned shared-intent surface for objective, acceptance criteria, decisions, and non-code constraints. Give each worker a private context manifest containing only its required slice. Return summary, artifact locator/hash, decision, unknowns, and verifier receipt; do not treat chat replay as durable coordination. An independent critic receives the claim and raw artifact, not the builder's desired conclusion.

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, shared-intent hash, worker context manifests, decisions, permissions, normalized termination reason, active resources, completed work, rejected approaches, artifact/retrieval pointers, and budget telemetry. Version checkpoints; never replace the only recoverable state.

</state_contract>

Show full SKILL.md (234 more words)Show less

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.
  • A subagent summary omits a non-code constraint: reject the handoff, reload the versioned shared-intent slice, and regenerate the summary before integration.

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.
  • Shared intent and private worker contexts remain separated with bounded summary IPC.
  • Dropped content is duplicated, stale, or reconstructible.
  • Budget estimates cite current runtime data or explicit conservative assumptions.
  • Checkpoints are versioned and recoverable.

</skill_contract>

© Mark393295827, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/context-manager of Mark393295827/third-brain-v7-skills.

Open the folder on GitHubat commit 5a64514

Compare with similar skills

Context Manager next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context Manager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context Manager this skillMark393295827/third-brain-v7-skills141—~1.5kAutomated safety check: PassMIT
Openrouter Cost Controlsjeremylongshore/tons-of-skills-marketplace2.8k—~2.4kAutomated safety check: PassMIT
Openrouter Pricing Basicsjeremylongshore/tons-of-skills-marketplace2.8k—~2.1kAutomated safety check: PassMIT
Change Opensecret ProviderMaplePrivacyLabs/Maple100—~2.4kAutomated safety check: PassMIT
Anth Cost Tuningjeremylongshore/tons-of-skills-marketplace2.8k—~2.1kAutomated safety check: PassMIT
Cost Verification Auditorcuriositech/some_claude_skills2431 repos~1.4kAutomated safety check: NotesMIT

Similar skills

  • Openrouter Cost Controls

    jeremylongshore/tons-of-skills-marketplace

    Implement cost controls for OpenRouter API usage. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Openrouter Pricing Basics

    jeremylongshore/tons-of-skills-marketplace

    Understand OpenRouter pricing, calculate costs, and optimize spend.

    2.8k GitHub stars~2.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Change Opensecret Provider

    MaplePrivacyLabs/Maple

    Change or review OpenSecret inference and web-provider integrations.

    100 GitHub stars~2.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Anth Cost Tuning

    jeremylongshore/tons-of-skills-marketplace

    Optimize Anthropic Claude API costs with model routing, prompt caching, batching, and spend monitoring.

    2.8k GitHub stars~2.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Cost Verification Auditor

    curiositech/some_claude_skills

    Audit LLM token cost estimates against actual API usage. An agent skill from curiositech/some_claude_skills.

    243 GitHub starsUsed in 1 repo~1.4k tokens
    AI & LLM EngineeringAuto-check: notes
  • Agent Harness Design

    AnastasiyaW/codex-claude-code-config

    Designing agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against…

    154 GitHub stars~764 tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from Mark393295827/third-brain-v7-skills

All 21 skills in this repo
  • Loop Engineering

    Mark393295827/third-brain-v7-skills

    A skill your agent uses when a repeatable task must become a bounded Trigger - Execute - Verify - State loop, scheduled automation, goal agent, or metric-driven research cycle.

    141 GitHub stars~1.9k tokensUpdated 19 days ago
    Auto-check passed
  • Graph Engineering

    Mark393295827/third-brain-v7-skills

    A skill your agent uses when a workflow has explicit data dependencies, independently executable branches, typed joins, or node-local recovery needs that justify a bounded static dependency graph.

    141 GitHub stars~1.9k tokensUpdated 19 days ago
    Auto-check passed
  • Harness Engineering

    Mark393295827/third-brain-v7-skills

    A skill your agent uses when an agent workflow needs production-like runtime controls for context, tools, permissions, observability, scheduling, evaluation, recovery, or maintenance.

    141 GitHub stars~2.2k tokensUpdated 19 days ago
    Auto-check passed
  • Agent Teams Command

    Mark393295827/third-brain-v7-skills

    A skill your agent uses when work has genuinely independent streams or distinct builder, evaluator, domain, and integration roles that require bounded multi-agent command scaled from 5 to 100+ agents.

    141 GitHub stars~1.7k tokensUpdated 19 days ago
    Auto-check passed
  • AI Six Sigma Property Os

    Mark393295827/third-brain-v7-skills

    A skill your agent uses when property-service operations need an AI plus ontology plus DMAIC design for work orders, dispatch, quotes, evidence, CTQ metrics, and control dashboards.

    141 GitHub stars~1.4k tokensUpdated 19 days ago
    Auto-check passed
  • Anthropic Os

    Mark393295827/third-brain-v7-skills

    A skill your agent uses when a personal or team operating system needs a bounded redesign using Four-C, closed-loop controls, 70/30 allocation, 3B creativity, experiments, and prediction-error…

    141 GitHub stars~1.6k tokensUpdated 19 days ago
    Auto-check passed

Questions about Context Manager

What does Context Manager do?

A skill your agent uses when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing. Context Manager is an agent skill from Mark393295827/third-brain-v7-skills. Use when a long-running agent task needs context budgeting, checkpointing, compaction, retrieval, or capability-based model routing.

When should I use Context Manager?

Context Manager fits situations like: A long-running agent task needs context budgeting; capability-based model routing.

How do I install Context Manager in Claude Code?

Run `npx skills add Mark393295827/third-brain-v7-skills --skill context-manager -a claude-code`. Or copy the skill folder (skills/context-manager in Mark393295827/third-brain-v7-skills) into .claude/skills/context-manager in your project. Claude Code loads it when a task matches its description.

How do I install Context Manager in Codex?

Run `npx skills add Mark393295827/third-brain-v7-skills --skill context-manager -a codex`. Or copy the skill folder (skills/context-manager in Mark393295827/third-brain-v7-skills) into .agents/skills/context-manager in your project. Codex loads it when a task matches its description.

Can I use Context Manager in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Mark393295827/third-brain-v7-skills --skill context-manager -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-manager, .gemini/skills/context-manager, .github/skills/context-manager and .opencode/skills/context-manager in your project.

What does Context Manager need to run?

SKILL.md names no scripts, command-line tools or credentials: Context Manager is instructions for the agent only.

Does Context Manager access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Context Manager safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context Manager use?

Context Manager is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Context Manager use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context Manager?

Skills that share tags, products or a category with Context Manager: Openrouter Cost Controls (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Openrouter Pricing Basics (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Change Opensecret Provider (MaplePrivacyLabs/Maple, 100 stars) and Anth Cost Tuning (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context Manager?

Mark393295827 (a GitHub user) maintains it in Mark393295827/third-brain-v7-skills, which has 141 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on September 19, 2026.

Source: Mark393295827/third-brain-v7-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.