SKILL

context-budget

エージェント、スキル、MCPサーバー、ルールにわたってClaude Codeのコンテキストウィンドウ消費を監査します。肥大化、冗長なコンポーネントを特定し、優先順位付けされたトークン節約の推奨事項を生成します。

Original · translation is not supported for this source language

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original Japanese text

Topics in the source

  • コンテキストバジェット
  • 使用時期
  • 動作方法
  • フェーズ1: インベントリ
  • フェーズ2: 分類
  • フェーズ3: 問題の検出
  • フェーズ4: レポート
  • 例

Claude Codeセッションで読み込まれたすべてのコンポーネントのトークンオーバーヘッドを分析し、コンテキストスペースを取り戻すための実用的な最適化を表示します。 セッションのパフォーマンスが低下しているか、出力品質が低下している場合 多くのスキル、エージェント、またはMCPサーバーを追加した後 実際に持っているコンテキストのヘッドルームを確認したい場合 コンポーネントを追加する計画があり、スペースがあるか確認したい場合 /context-budgetコマンドを実行する場合(このスキルがそれをサポートします) すべてのコンポーネントディレクトリをスキャンしてトークン消費を推定します: エージェント (agents/.md) ファイルごとの行数とトークンをカウント(単語数 × 1.3) descriptionフロントマターの長さを抽出 フラグ: 200行超のファイル(重い)、30単語超のdescription(肥大化したフロントマター) スキル (skills//SKILL.md) SKILL.mdごとのトークンをカウント フラグ: 400行超のファイル .agents/skills/の重複コピーを確認 — 二重カウントを避けるために同一コピーをスキップ ルール (rules//.md) ファイルごとのトークンをカウント フラグ: 100行超のファイル 同一言語モジュール内のルールファイル間のコンテンツの重複を検出 MCPサーバー (.mcp.jsonまたはアクティブなMCP設定) 設定されたサーバー数と合計ツール数をカウント スキーマオーバーヘッドをツールあたり約500トークンと推定 フラグ: 20以上のツールを持つサーバー、シンプルなCLIコマンド(gh、git、npm、supabase、vercel)をラップするサーバー CLAUDE.md (プロジェクト + ユーザーレベル) CLAUDE.mdチェーンのファイルごとのトークンをカウント フラグ: 合計300行超 すべてのコンポーネントをバケットに分類します: | バケット | 基準 | アクション | |--------|----------|--------| | 常に必要 | CLAUDE.mdで参照されている、アクティブなコマンドをサポート、または現在のプロジェクトタイプに一致 | 保持 | | 時々必要 | ドメイン固有(例:言語パターン)、CLAUDE.mdで未参照 | オンデマンドアクティベーションを検討 | | めったに必要でない | コマンド参照なし、コンテンツ重複、または明らかなプロジェクト一致なし | 削除または遅延ロード | 以下の問題パターンを特定します: 肥大化したエージェントdescription — フロントマターに30単語超のdescriptionはすべてのTask

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
docs/ja-JP/skills/context-budget/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.047Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.