Context Tax Auditのロゴ

Context Tax Audit

組織
MiniMax-AI
context-tax-audit

ユーザーのメッセージ以外に、エージェントが各リクエストへ注入する情報をすべて洗い出します。システムプロンプト、環境情報、スキル一覧、ツール定義、ターンごとのコンテキストブロックやリマインダーなどが対象です。それぞれの必要性、頻度、精度、配置、プロンプトキャッシュへの影響を確認します。エージェントのプロンプト組み立てを見直す場合、キャッシュヒット率の低さの原因を調べる場合、またはターンごとのオーバーヘッドを減らす場合に使います。

Add to TypingMind

概要

公開者MiniMax-AI
リポジトリmcode-stack
スキル名context-tax-audit
スター
464
フォーク
36
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    MiniMax-AIがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Context Tax Audit」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/context-tax-audit
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiniMax-AI/mcode-stack.git /tmp/mcode-stack
mkdir -p .claude/skills
cp -r /tmp/mcode-stack/stacks/ronny/skills/context-tax-audit .claude/skills/context-tax-audit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでContext Tax Auditを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にContext Tax Auditを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Context Tax Auditは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Context Tax Audit

Every request carries more than the user's sentence: system prompt, environment info, the skill list, tool definitions, per-turn context blocks, reminders. Most of it is worth paying for. The audit finds what is not, and what is placed so that it breaks the prompt cache.

Companion to MCode Engineering Notes 05 (how the agent learns the current time — and why stuffing date into the system prompt breaks the prefix cache). Plain-text checklist: checklists/context-tax.md.

1. Inventory one real request

Capture an actual request the agent sends (debug log, proxy, or the code that assembles it). List every part except the user's message:

PartWhere it sitsHow often it changesTokens

Count tokens with a tokenizer and name it; treat the counts as relative. Do a fresh-session first request and a later turn, since they often differ.

2. Necessity - what breaks if you delete it?

For each part, write one sentence: "without this, the model would ...". Typical answers: without environment info it guesses the OS and shell; without the current time it assumes its training year; without a time budget it does not wrap up before a deadline. If you cannot write the sentence, the part is a candidate for removal.

3. Prompt-cache placement

Caches match on prefix. One changed byte invalidates everything after it.

  1. Content that is at the front and changes every request is the most expensive. Move it later.
  2. Content written into history and never edited costs once and then stays cacheable.
  3. Content attached only to the current request is never cached and is paid at full price every time. Control its frequency.

Rules of thumb:

  • Stable first, volatile last. Keep # Environment free of current time; put time in per-turn <agent-context> (or the equivalent user-message block).
  • Never rewrite reminders already in history; change only future turns.
  • Use only the precision you need. A timestamp to the second guarantees every copy differs once placement is already right.
  • Request-only reminders never enter the cache — control how often they fire, but do not confuse that thrift with protecting the prefix.

4. Run the checklist

ItemQuestion
Prefix awarenessCan you point to the stable prefix vs what changes every turn?
NecessityFor each part, where does the model go wrong without it?
PositionIs anything volatile inside the system prompt or tool definitions? (e.g. time in # Environment)
FrequencyDoes a changing field need every turn / request, or only at the start, key points, or on change?
PrecisionDoes it need seconds, exact counts? Higher precision means more turn-to-turn variation.
HistoryAre reminders already in history ever rewritten later?
Recovery pathsIf you remove something, does it vanish entirely on compaction, session resume or subagents? Who restores it?
MeasurementBefore and after a change, do you look at cache hit rate, cost per turn and task quality, not just token count?

Output

The inventory table, a list of parts to cut, move, reduce in frequency or reduce in precision (each with the reason), and what to measure to confirm the change helped.

よくある質問

AIスキル「Context Tax Audit」では何ができますか?

ユーザーのメッセージ以外に、エージェントが各リクエストへ注入する情報をすべて洗い出します。システムプロンプト、環境情報、スキル一覧、ツール定義、ターンごとのコンテキストブロックやリマインダーなどが対象です。それぞれの必要性、頻度、精度、配置、プロンプトキャッシュへの影響を確認します。エージェントのプロンプト組み立てを見直す場合、キャッシュヒット率の低さの原因を調べる場合、またはターンごとのオーバーヘッドを減らす場合に使います。

TypingMindでContext Tax Auditを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Context Tax Auditはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにContext Tax Auditをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/context-tax-auditを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Context Tax Auditを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Context Tax Auditで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもContext Tax Auditを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Context Tax Audit」は無料ですか?

はい。MiniMax-AIがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇