Tokenのロゴ

Token

組織
WebitroHQ
token

Save tokens with a project code map. Builds/updates a code map of the current project (graphify, local AST, no LLM calls), writes an 'ask the map first' rule into the project, and stops Claude from re-scanning the whole project. Triggers: /token, 'map the project', 'build a code map', 'reduce tokens', 'save tokens', 'project map', 'install graphify', when starting code exploration in a new project, or when the user complains 'you keep re-reading the whole project'. Installs graphify itself if missing; the same folder works on any machine.

概要

公開者WebitroHQ
リポジトリtoken-skill
スキル名token
スター
30
フォーク
3
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

token — fewer tokens with a project map

Everything runs through scripts/token.sh (deterministic, no LLM calls). The script produces the numbers; you interpret them.

Flow (every invocation, in order)

  1. Install/verify — bash ~/.claude/skills/token/scripts/token.sh ensure Exit code 3 means graphify could not be installed: give the user the install lines the script printed, verbatim, and stop.
  2. Status — bash ~/.claude/skills/token/scripts/token.sh status <project-root> Exit 2 (no map) or 4 (stale) → go to step 3; exit 0 → skip to step 4.
  3. Build/update — bash ~/.claude/skills/token/scripts/token.sh build <project-root> The script first writes code-extension files with an XML body (Tiled tilesets etc.) to .graphifyignore, then runs graphify update, then prints the status. If the user says "from scratch", add --force.
  4. Write the project rule (first time, or if missing) — bash ~/.claude/skills/token/scripts/token.sh install-project <project-root> Adds a marked block to the project's CLAUDE.md (idempotent). Only if the user explicitly says "enforce / strict", add --strict: installs a Claude Code PreToolUse hook so the session's first raw file read is blocked until a graphify query has run.
  5. Report — give the numbers from status as-is: nodes/edges, GRAPH_REPORT ≈ tokens, raw source ≈ tokens, freshness. Never invent savings figures beyond what the script printed.

Project root: if the user didn't specify, git rev-parse --show-toplevel, otherwise the working directory. Don't ask.

When answering questions

If a map exists, for a code question run this before the first grep/Read: bash ~/.claude/skills/token/scripts/token.sh query "<question>" <project-root> — the token count is printed at the end. Open raw files only for the lines the query points to. Never read graphify-out/graph.json as a whole.

Limits (tell the user, don't hide them)

  • The map covers code only (tree-sitter, 30 languages). Docs/PDFs/images need an LLM; this skill doesn't run one.
  • Some files may yield no symbols (e.g. plain PHP scripts, vite.config.ts); the script shows them with a "no symbols" warning. Those need raw reads.
  • Savings depend on the task: large for "where is the flow / what calls this" questions (measured example: 169k → 2.9k tokens); small for a one-file fix.
  • The map goes stale when code changes. query checks freshness first and runs update automatically if any code file is newer than the map (it prints a map was stale line), so renamed/moved symbols don't come back with old locations. Plain graphify query (without token.sh) does NOT do this check.

Another machine

The skill folder is self-contained: copy ~/.claude/skills/token/, run bash ~/.claude/skills/token/scripts/install.sh (or just /token). ensure installs graphify: uv first, then pipx, then python3 -m venv ~/.local/share/token-skill/venv (PEP 668 Homebrew/Debian Python rejects pip --user; a venv works everywhere). Measured: 93 s on a clean environment with only python3. Requirements: Python 3.10+ and internet. The block in the project's CLAUDE.md travels with the project; graphify-out/ is rebuilt with build in seconds on each machine, no syncing needed. Windows: the script needs bash (Git Bash/WSL); native PowerShell is not supported.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Token」では何ができますか?

Save tokens with a project code map. Builds/updates a code map of the current project (graphify, local AST, no LLM calls), writes an 'ask the map first' rule into the project, and stops Claude from re-scanning the whole project. Triggers: /token, 'map the project', 'build a code map', 'reduce tokens', 'save tokens', 'project map', 'install graphify', when starting code exploration in a new project, or when the user complains 'you keep re-reading the whole project'. Installs graphify itself if missing; the same folder works on any machine.

TypingMindでTokenを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/WebitroHQ/token-skill/tree/main/tokenを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Tokenを使えるAIモデルはどれですか?

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

Tokenは何個のAIモデルで使えますか?

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

AIスキル「Token」は無料ですか?

はい。WebitroHQがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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