moai-foundation-context

Manage Claude Code contexts with token budgets and session persistence.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enterprise teams often struggle to manage long Claude Code sessions across multiple agents, leading to token budget overflows, lost context, and fragmented workflows. This Skill provides unified context management, token-budget optimization, and session persistence to keep workflows coherent and recoverable.

Core Features & Use Cases

  • Token budget tracking and enforcement for up to 200K tokens with thresholds and automatic actions.
  • Session state persistence and resumable progress across interruptions.
  • Multi-agent handoff coordination with minimal context transfer and integrity checks.
  • Progressive memory management and context loading tiers to optimize token usage.

Quick Start

Initialize a new session to start token budget tracking and context persistence.

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 Claude Code context and prevent token budget overflows in long sessions?

Manage Claude Code context by tracking token budgets up to 200K tokens with automatic threshold actions. This prevents token budget overflows during long sessions by enforcing limits and applying progressive disclosure to optimize context loading.

Can I resume a multi-agent Claude Code workflow after an interruption?

Yes, you can resume a multi-agent Claude Code workflow after an interruption using session state persistence. It saves resumable progress and recovers fragmented workflows across interruptions without losing critical context.

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

The best way to handle multi-agent handoffs is using multi-agent handoff coordination with minimal context transfer and integrity checks. This ensures coherent context management and preserves workflow integrity when switching between agents.

How does progressive disclosure optimize token usage for enterprise context loading?

Progressive disclosure optimizes token usage by implementing context loading tiers within a 200K token budget. It progressively loads memory management data only when needed, reducing unnecessary token consumption during enterprise context management.

Does this session management approach work for long-running SPEC workflows?

Yes, this session management approach explicitly supports long-running SPEC workflows. It applies unified context management, token budget tracking, and session persistence APIs to keep enterprise SPEC workflows coherent and recoverable across multiple agents.