moai-foundation-context
OfficialOptimize context & token budgets in Claude Code
System Documentation
What problem does it solve?
This Skill helps Claude Code manage large contexts, optimize a fixed token budget, persist session state, and coordinate multi-agent workflows to prevent context overflow and improve reliability.
Core Features & Use Cases
- Token budget awareness: Allocate and monitor a 200K token context window with smart reallocation.
- Session persistence: Maintain session state across interruptions for seamless resumption.
- Context optimization: Progressive loading and memory management to reduce token waste.
- Multi-agent handoffs: Handoff and forking protocols to enable parallel exploration without losing state.
- Memory discipline: Clear guidance on memory files and disciplined context retention.
Example: When working on a long-running SPEC, initialize a 200K budget, persist session state, and enable handoffs between agents to explore multiple design options without blowing the token window.
Quick Start
Activate moai-foundation-context with a 200K token budget and persistent session, then begin a long-running SPEC exploration.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: moai-foundation-context Download link: https://github.com/modu-ai/moai-adk/archive/main.zip#moai-foundation-context Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.