Skip to content
moai-alfred-context-budget logo

Moai Alfred Context Budget

moai-alfred-context-budget

Claude Code context window optimization strategies, JIT retrieval, progressive loading, memory file patterns, and cleanup practices. Use when optimizing context usage, managing large projects, or implementing efficient workflows.

SKILL.md

Full skill instructions

What It Does

Claude Code context budget (100K-200K tokens)의 효율적 관리 전략, progressive disclosure, JIT retrieval, memory file 구조화 방법을 제공합니다.

When to Use

  • ✅ Context limit 도달 위험성 있을 때
  • ✅ 대규모 프로젝트의 context 관리 필요
  • ✅ Session handoff 준비
  • ✅ Memory file 구조 설계/정리

Context Budget Overview

Total: 100K-200K tokens
├── System Prompt: ~2K
├── Tools & Instructions: ~5K
├── Session History: ~30K
├── Project Context: ~40K
└── Available for Response: ~23K

Progressive Disclosure Pattern

  1. Metadata (always): Skill name, description, triggers
  2. Content (on-demand): Full SKILL.md when invoked
  3. Supporting (JIT): Examples, templates when referenced

JIT Retrieval Principles

  • Pull only what you need for immediate step
  • Prefer Explore over manual file hunting
  • Cache critical insights for reuse
  • Remove unnecessary files regularly

Best Practices

✅ DO:

  • Use Explore for large searches
  • Cache results in memory files
  • Keep memory files < 500 lines each
  • Update session-summary.md before task switches
  • Archive completed work

❌ DON'T:

  • Load entire src/ directory upfront
  • Duplicate context between files
  • Store memory files outside .moai/​memory/
  • Leave stale session notes (archive or delete)
  • Cache raw code (summarize instead)

Learn more in reference.md for detailed JIT strategy, memory patterns, context budget calculations, and management practices.

Related Skills: moai-alfred-practices, moai-cc-memory

More Finance & Trading skills

ponytail-debt logo
Finance & Trading

ponytail-debt

Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.

155.5K 27.9K
View
stripe-integration logo
Finance & Trading

stripe-integration

Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.

40.2K 12.9K
View

Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...

40.2K 12K
View
stock-analysis logo
Finance & Trading

stock-analysis

Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.

46 11.9K
View
coinglass logo
Finance & Trading

coinglass

Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.

27 11.5K
View

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

40.2K 10.5K
View

Finance AI tools

C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Finalle.ai logo
Finance

Finalle.ai

Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform

Free
View

AI-powered Pine Script code generator for TradingView

Paid
View
TradeUI logo
Finance

TradeUI

Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.

Paid
View
D
Finance

Danelfin

Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.

Freemium
View
E
Finance

Ellisense

A software for comprehensive market sentiment analysis.

Paid
View

'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends

Free
View