moai-foundation-context

Manage token budgets, session state, and context windows for multi-agent workflows.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/CJ-1981/excel-processor --skill moai-foundation-context-cj-1981
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-foundation-context
Source: https://github.com/CJ-1981/excel-processor/tree/main/.claude/skills/moai-foundation-context
Command: npx skills add https://github.com/CJ-1981/excel-processor --skill moai-foundation-context-cj-1981

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill manages token budgets, session state, and context window limits to ensure efficient and continuous operation of multi-agent AI systems, preventing performance degradation and data loss.

Core Features & Use Cases

  • Token Budget Management: Allocates and monitors the 200K token context window, triggering optimizations and warnings.
  • Session State Persistence: Saves and restores session state across interruptions or /clear commands, allowing for resumable workflows.
  • Multi-Agent Handoffs: Facilitates seamless context transfer between agents with validation and minimal token overhead.
  • Progressive Disclosure: Loads context progressively based on relevance, optimizing memory usage.
  • Use Case: In a long-running, multi-agent development project, this Skill ensures that critical context is preserved across agent handoffs and session resets, preventing the need to re-explain project status or re-load large codebases.

Quick Start

Use the moai-foundation-context skill to manage token budget and session state for long-running workflows.

Frequently Asked Questions about moai-foundation-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage token budget limits for multi-agent workflows?

Token budget management allocates and monitors the 200K context window, triggering optimizations and warnings to ensure efficient operation. This prevents performance degradation by tracking token usage across multiple agents.

How does session state persistence work when clearing context in multi-agent systems?

Session state persistence saves and restores workflow states across interruptions or clear commands, enabling resumable operations. It allows critical context to survive resets without re-loading large codebases or re-explaining project status.

What is the best way to transfer context between agents without losing data?

Multi-agent handoffs facilitate seamless context transfer between agents with validation and minimal token overhead. This ensures critical information is preserved across agent transitions while optimizing memory usage through progressive disclosure.

Can I use context window optimization for long-running development projects with Claude Code?

Context window optimization is designed for Claude Code compatibility and integrates with library resolution and documentation retrieval tools. It supports long-running, multi-agent development projects by preserving context across handoffs and session resets.

Why does my multi-agent workflow lose context after a session reset?

Context loss occurs when session state persistence is not configured to save workflow data across interruptions. Implementing progressive disclosure and state persistence ensures critical context survives resets and agent handoffs without requiring re-initialization.