moai-foundation-context

Manage enterprise context and token budgets for Claude Code sessions.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/windysky/claude_notification_wsl2 --skill moai-foundation-context-windysky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-foundation-context
Source: https://github.com/windysky/claude_notification_wsl2/tree/main/.claude/skills/moai-foundation-context
Command: npx skills add https://github.com/windysky/claude_notification_wsl2 --skill moai-foundation-context-windysky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides enterprise-grade context management and token budget optimization for Claude Code workflows, ensuring reliable session persistence and seamless multi-agent coordination.

Core Features & Use Cases

  • Token budget optimization with a 200K window and automatic warning/clear triggers.
  • Robust session state persistence and resumable workflows across interruptions.
  • Lightweight multi-agent handoffs with minimal context transfer and integrity checks.
  • Progressive disclosure and memory optimization to preserve critical context.

Quick Start

Initialize a new foundation context session, configure budget rules, and persist the initial state. Then trigger a /clear as needed and resume from the saved session.

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 in Claude Code workflows?

To manage token budget limits in Claude Code workflows, configure automatic warning and clear triggers to optimize a 200K token window. This proactively preserves critical context and prevents session interruptions caused by exceeding token constraints during long-running tasks.

How does session persistence work for long-running Claude Code tasks?

Session persistence for long-running Claude Code tasks works by saving the foundation context state and allowing resumption after interruptions. You initialize a session, configure budget rules, and resume workflows seamlessly from the saved state following a /clear command.

What is the best way to handle multi-agent handoffs without losing context?

The best way to handle multi-agent handoffs without losing context is using lightweight context transfers with integrity checks. This approach minimizes token overhead while ensuring critical state is preserved and validated during multi-agent orchestration.

Does progressive disclosure help with memory optimization in Claude Code?

Yes, progressive disclosure helps with memory optimization in Claude Code by systematically preserving critical context while managing the overall token budget. This technique ensures essential information is retained without overwhelming the 200K token window during complex workflows.

When do I need enterprise context management for Claude Code?

You need enterprise context management for Claude Code when working on stateful tasks requiring reliable resumption, multi-agent orchestration, or long-running sessions. It provides token budget optimization and handoff validation necessary for complex, interrupted workflows.

Why should I use token-aware context management instead of manual clearing?

You should use token-aware context management instead of manual clearing to automate warning triggers and ensure session state persistence. It prevents data loss during multi-agent handoffs and optimizes the 200K token window without requiring constant manual intervention.