Logo vun Token

Token

Organisatioun
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.

Iwwersiicht

EditeurWebitroHQ
Repositorytoken-skill
Skill-Nummtoken
Stären
30
Forks
3
Matgeliwwert Fichieren
3
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum WebitroHQ op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Token an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/WebitroHQ/token-skill/tree/main/token
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Token an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Token automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Token net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Token op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Token besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Token an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/WebitroHQ/token-skill/tree/main/token an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Token benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Token benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Token domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Token gratis?

Jo. De Skill gëtt vum WebitroHQ ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇