context-budget SKILL.md skillA

context-budget from affaan-m/ecc is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add affaan-m/ecc/context-budget@git:20260517.ec9ace9

Pins git:20260517.ec9ace9 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
affaan-m/ecc
Path
docs/ja-JP/skills/context-budget/SKILL.md
Versions recorded
1
Latest version
git:20260517.ec9ace9, committed May 17, 2026
Size
7,373 bytes
Repository stars
299,696
License
MIT

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

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# コンテキストバジェット

Claude Codeセッションで読み込まれたすべてのコンポーネントのトークンオーバーヘッドを分析し、コンテキストスペースを取り戻すための実用的な最適化を表示します。

## 使用時期

- セッションのパフォーマンスが低下しているか、出力品質が低下している場合
- 多くのスキル、エージェント、またはMCPサーバーを追加した後
- 実際に持っているコンテキストのヘッドルームを確認したい場合
- コンポーネントを追加する計画があり、スペースがあるか確認したい場合
- `/context-budget`コマンドを実行する場合(このスキルがそれをサポートします)

## 動作方法

### フェーズ1: インベントリ

すべてのコンポーネントディレクトリをスキャンしてトークン消費を推定します:

**エージェント** (`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行超

### フェーズ2: 分類

すべてのコンポーネントをバケットに分類します:

| バケット | 基準 | アクション |
|--------|----------|--------|
| **常に必要** | CLAUDE.mdで参照されている、アクティブなコマンドをサポート、または現在のプロジェクトタイプに一致 | 保持 |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add affaan-m/ecc/context-budget@sha256:bbfb018957357170

The line at the top of this page pins the label git:20260517.ec9ace9, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_pfkowumkv7nkd4p7.svg)](https://markdownregistry.com/a/art_pfkowumkv7nkd4p7)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on May 17, 2026.

versioncommittedcommitsizeaudit
git:20260517.ec9ace9 latest2026-05-17 ec9ace9 7,373 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7373 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

affaan-m/ecc · 299,696 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_pfkowumkv7nkd4p7
GET https://markdownregistry.com/api/v1/resolve?ref=affaan-m/ecc/context-budget
GET https://markdownregistry.com/api/v1/blob/bbfb01895735717031538fc1b6684eada20e32a39c2f6355fee23313d8c04446

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from affaan-m/ecc

agent-introspection-debugging SKILL.md skill
affaan-m/ecc · .agents/skills/agent-introspection-debugging/SKILL.md · Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and…
git:20260918.c752aac · audit A · 299,696 stars
agent-sort SKILL.md skill
affaan-m/ecc · .agents/skills/agent-sort/SKILL.md · Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras…
git:20260918.c752aac · audit A · 299,696 stars
api-design SKILL.md skill
affaan-m/ecc · .agents/skills/api-design/SKILL.md · REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning…
git:20260918.c752aac · audit A · 299,696 stars
article-writing SKILL.md skill
affaan-m/ecc · .agents/skills/article-writing/SKILL.md · Write articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice…
git:20260918.c752aac · audit A · 299,696 stars
backend-patterns SKILL.md skill
affaan-m/ecc · .agents/skills/backend-patterns/SKILL.md · Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express…
git:20260918.c752aac · audit A · 299,696 stars
benchmark-methodology SKILL.md skill
affaan-m/ecc · .agents/skills/benchmark-methodology/SKILL.md · Use after competitive-platform-analysis has produced a tiered competitor set. Scores each competitor across nine…
git:20260918.c752aac · audit A · 299,696 stars
brand-discovery SKILL.md skill
affaan-m/ecc · .agents/skills/brand-discovery/SKILL.md · Use when a brand needs to discover or articulate its identity through structured multi-session interviews. Covers…
git:20260918.c752aac · audit A · 299,696 stars
brand-voice SKILL.md skill
affaan-m/ecc · .agents/skills/brand-voice/SKILL.md · Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that…
git:20260918.c752aac · audit A · 299,696 stars
bun-runtime SKILL.md skill
affaan-m/ecc · .agents/skills/bun-runtime/SKILL.md · Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel…
git:20260928.48decd0 · audit B · 299,696 stars
change-impact SKILL.md skill
affaan-m/ecc · .agents/skills/change-impact/SKILL.md · Perform evidence-backed impact analysis before changing code, data, interfaces, or governance documents, then compare…
git:20261002.4f08958 · audit A · 299,696 stars
coding-standards SKILL.md skill
affaan-m/ecc · .agents/skills/coding-standards/SKILL.md · Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed…
git:20260918.c752aac · audit A · 299,696 stars
competitive-platform-analysis SKILL.md skill
affaan-m/ecc · .agents/skills/competitive-platform-analysis/SKILL.md · Use when scoping a competitive landscape — identifying, categorising, and score-filtering a competitor set before any…
git:20260918.c752aac · audit A · 299,696 stars

Every file in affaan-m/ecc

Other files named context-budget

context-budget SKILL.md skill
coco-research/coco · skills/context-budget/SKILL.md · Audit token consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and…
v0.1.0 · audit A · 629 stars
context-budget SKILL.md skill
ericrisco/rsc-harness · skills/context-budget/SKILL.md · Use when a long-horizon task is filling the context window and you must decide what to keep, offload, drop, or hand off…
git:20260729.3ecb845 · audit A · 505 stars
context-budget SKILL.md skill
onewave-ai/claude-skills · context-budget/SKILL.md · Use when a coding session is burning context fast, output is drowning in noise, the model keeps forgetting earlier…
git:20260920.97b5147 · audit A · 421 stars
context-budget SKILL.md skill
frankxai/claude-skills-library · absorbed/harness/context-budget/SKILL.md · Count what a session loads before adding another skill or MCP server. Use when the default prompt is heavy, a new…
git:20261010.682b2ce · audit A · 47 stars
context-budget SKILL.md skill
drayline/rootnode-skills · plugins/rootnode-projects/skills/context-budget/SKILL.md · Analyzes Claude Project context budget under the automatic-RAG-by-window model: knowledge files vs. threshold-exempt…
v6.0.0 · audit A · 40 stars
context-budget SKILL.md skill
felvieira/claude-skills-fv · skills/49-context-budget/SKILL.md · Mede e reduz o peso de contexto carregado pelo agente. Trigger em: "contexto inchado", "context overflow", "quanto…
v1.0.0 · audit A · 28 stars
context-budget SKILL.md skill
univers42/claude-deal-with-the-devil · skills/context-budget/SKILL.md · Measure and cut what a config costs in context every session: always-on rules, invocable descriptions, skills that…
git:20261017.fcaf2cc · audit A · 4 stars
context-budget SKILL.md skill
andrewdongminyoo/cc-agents-kit · plugins/context-handoff/skills/context-budget/SKILL.md · Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat…
git:20261028.f3bf4f5 · audit A · 3 stars

Browse by kind, by grade A, or by owner.