context-manager

Solid

Manage the LLM's context window — token budgeting, prompt assembly, truncation strategies. Use when approaching context limits or optimizing prompt costs.

AI & Automation 108 stars 16 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
68
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Context Manager Manage the scarcest resource in the LLM OS: **context window (RAM)**. ## Usage Template **Prompt** ```text Use context-manager for this task. Estimate token budget, choose what to keep, what to summarize, and what to drop. ``` **Use Case** - Preparing a long task, large document set, or multi-step agent workflow without overrunning context. **Expected Result** - The agent produces a context budget, priority order, truncation plan, and cost-aware prompt assembly. **Output Example** - A table of keep/summarize/drop decisions with estimated tokens and retrieval priority. **Verification Case** - The final context plan names included sources, excluded sources, and the reason for each exclusion. **Verified Effect** - Long or messy context becomes a scoped prompt plan with lower token waste and clearer retrieval priorities. ## Success Metrics - Output includes an estimated token budget and a keep/summarize/drop table. - Each excluded source has a reason, and critical context has a retrieval path. - Final prompt plan fits the target context window with margin. ## When to Use - "Context is full", "too many tokens", "slow responses" - Before complex multi-step tasks - Designing prompt templates with variable-length content - "Optimize my prompts" or "reduce token cost" - Before ingesting large documents --- ## Core Principles ### 0. Concrete Ideas Buy Speed (Andrew Ng) > "When you're vague, you're almost always right. When you're concrete, you may be r...

Details

Author
Mark393295827
Repository
Mark393295827/third-brain-v5-skills
Created
4 weeks ago
Last Updated
today
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

context-optimizer

Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget.

2,259 Updated 4 days ago
rohitg00
AI & Automation Listed

context-window

Use when allocating context-window budget across system, skill-injection, working, and output zones; monitoring context health; deciding when to compact; preserving state before compaction; recovering after compaction; or choosing strategies for 1M, 200K, or 128K context windows. Covers zone budgets, practical model-budget tables, the 80% compaction rule, pre/post-compact protocols, persistence hierarchy, operation token costs, and token-reduction techniques. Do NOT use for deciding what information belongs in the working set (use `context-management`), prompt design (use `prompt-craft`), graph architecture (use `context-graph`), or memory curation.

0 Updated 6 days ago
jacob-balslev
AI & Automation Listed

context-window

Use when allocating context-window budget across system, skill-injection, working, and output zones; monitoring context health; deciding when to compact; preserving state before compaction; recovering after compaction; or choosing strategies for 1M, 200K, or 128K context windows. Covers zone budgets, practical model-budget tables, the 80% compaction rule, pre/post-compact protocols, persistence hierarchy, operation token costs, and token-reduction techniques. Do NOT use for deciding what information belongs in the working set (use `context-management`), prompt design (use `prompt-craft`), graph architecture (use `context-graph`), or memory curation.

0 Updated 6 days ago
jacob-balslev
AI & Automation Solid

moai-foundation-context

Manages context window optimization, session state persistence, and token budget allocation for multi-agent workflows. Use for token budget management, context limits, or session handoff across agents.

1,050 Updated today
modu-ai
AI & Automation Listed

context-engineering

Engineer what goes into the LLM context window — system prompts, retrieved docs, tool schemas, conversation history, memory, examples. Apply the four operations write/select/compress/isolate to manage context as a finite resource. Enforce the 40% rule on context utilization. Use whenever the user is designing system prompts, debugging quality degradation in long conversations, hitting context limits, managing per-step retrieval, dealing with sub-agent context isolation, or asking about "context engineering" / "prompt engineering" / CLAUDE.md / AGENTS.md / instruction files.

5 Updated today
AlexDuchDev