← スキル一覧に戻る

optimizing-context
by jxucoder
agentic meta skills (claude / cursor)
⭐ 0🍴 0📅 2026年1月9日
SKILL.md
name: optimizing-context description: Audits and optimizes context, memory, and skill use for projects. Reviews CLAUDE.md files, .claude/rules/, and skill configurations for efficiency. Use when context feels bloated, skills aren't triggering correctly, or memory needs organization. allowed-tools: Read, Glob, WebFetch, Write
Optimizing Context
Audit and optimize how context, memory, and skills are configured.
When to Use
- Context window feels cluttered or inefficient
- Skills aren't triggering as expected
- CLAUDE.md or rules need review
- Starting a new project and setting up memory
- Periodic maintenance of existing configurations
Audit Process
- Inventory - List all memory files and skills
- Review - Check each for conciseness and relevance
- Identify - Find redundancy, verbosity, or gaps
- Recommend - Suggest specific optimizations
- Implement - Apply changes with user approval
What to Check
| Component | Location | Look For |
|---|---|---|
| Project memory | CLAUDE.md | Verbosity, outdated info, missing essentials |
| Local memory | CLAUDE.local.md | Personal prefs that should be global |
| Rules | .claude/rules/*.md | Overlap, poor organization, missing globs |
| Skills | .claude/skills/*/SKILL.md | Unclear descriptions, excessive content |
| User memory | ~/.claude/CLAUDE.md | Project-specific content that doesn't belong |
Key Principles
- Concise is key - Every token competes for context space
- Progressive disclosure - Link to details, don't inline everything
- One level deep - Avoid nested file references
- Specific descriptions - Skills need clear triggers in descriptions
Reference Documentation
For detailed guidance, visit these pages:
- Memory management: https://code.claude.com/docs/en/memory
- Skill authoring: https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices
- Claude Code best practices: https://www.anthropic.com/engineering/claude-code-best-practices
Audit Report Format
Context Audit: [project name]
Date: [date]
Memory Files:
- [file]: [status] - [notes]
Skills:
- [skill]: [status] - [notes]
Issues Found:
1. [issue] → [recommendation]
Optimizations Applied:
- [change made]
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です