moai-foundation-context

moai-foundation-context is a skill for Claude Code, Codex from modu-ai/cc-plugins. It costs 68 tokens per session (2,299 once invoked), scanned A, original, no licence file.

A guide for managing the information and saved state used during multi-agent coding sessions, including context limits, token budgets, and handoffs between agents.

In plain words
What is it for?
Use it to plan token usage, preserve session state, handle context-window limits, and decide when to clear or hand off a session.
Why use it?
It helps prevent important details from being lost when a session becomes long or work moves from one agent to another.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/modu-ai/cc-plugins/moai-foundation-context
Any agent
npx skills add modu-ai/cc-plugins --skill moai-foundation-context
Clone the repo
git clone --depth 1 https://github.com/modu-ai/cc-plugins

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for moai-foundation-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/modu-ai/cc-plugins/moai-foundation-context.svg)](https://agentmods.dev/skills/modu-ai/cc-plugins/moai-foundation-context)
Your own site
<a href="https://agentmods.dev/skills/modu-ai/cc-plugins/moai-foundation-context"><img src="https://agentmods.dev/badge/skills/modu-ai/cc-plugins/moai-foundation-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.02299
Opus 5 $0.00034 $0.01149
Sonnet 5 $0.00014 $0.00460
Haiku 4.5 $0.00007 $0.00230

Measured 4d ago against content hash 91a7f75d98e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

moai-foundation-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/moai-foundation-context/SKILL.md · 253 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 253 lines · 68 tokens per session scan A 91a7f75d98e6

Subscribe to this mod's changes

moai-foundation-context is a skill published in the GitHub repository modu-ai/cc-plugins (67 stars, last pushed 6mo ago), with no licence file. It adds 68 tokens to every session and 2,299 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pick-a-pii-model

Select an on-device OpenMed PII model from the committed registry by language, runtime format, and size budget, then require recall validation before deployment. Use when an agent must choose a local PII detector for CPU, Apple Silicon, or a mobile export without relying on live model discovery.

maziyarpanahi/openmed · 64 tokens

context-fundamentals

This skill should be used when the user asks to "understand context", "explain context windows", "design agent architecture", "debug context issues", "optimize context usage", or discusses context components, attention mechanics, progressive disclosure, or context budgeting. Provides foundational understanding of…

foryourhealth111-pixel/Vibe-Skills · 69 tokens

letta-guide

Read the official Letta documentation (docs.letta.com) through its cached, ETag-checked fetch route. Load before ANY docs.letta.com retrieval — answering how Letta works, what Letta (or you) can do, setting up providers, models, channels, skills, memory, schedules, permissions, self-hosting, pricing, or billing, AND…

letta-ai/letta-code · 130 tokens

agents-build

Use to extend an existing agent project with memory, app integration, VPC, multi-agent, migration, model, browser, code interpreter, payments, or resource removal. Triggers: "add memory", "remember across sessions", "call agent from app", "invoke agent from code", "agent auth", "streaming", "VPC", "VPC connectivity"…

aws/agent-toolkit-for-aws · 239 tokens

moai-foundation-core

Provides MoAI-ADK foundational principles including TRUST 5 quality framework, SPEC-First DDD methodology, delegation patterns, progressive disclosure, agent catalog reference, and token budget management (absorbed from moai-foundation-context). Use when referencing TRUST 5 gates, SPEC workflow, or context window…

modu-ai/moai-adk · 68 tokens

tradememory

AI trading memory with outcome-weighted recall and autonomous strategy evolution. 17 MCP tools, 1,233 tests, works with any trading platform.

mnemox-ai/tradememory-protocol · 34 tokens