← スキル一覧に戻る

moai-alfred-context-budget
by kivo360
A claude code hooks library where it's very easy to create and test hooks of any kind
⭐ 0🍴 0📅 2026年1月24日
SKILL.md
name: moai-alfred-context-budget description: "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." allowed-tools: "Read, Grep"
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
- Metadata (always): Skill name, description, triggers
- Content (on-demand): Full SKILL.md when invoked
- Supporting (JIT): Examples, templates when referenced
JIT Retrieval Principles
- Pull only what you need for immediate step
- Prefer
Exploreover 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
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です