/ai-coding-assistant-workflow:token-cardfrom ai-coding-assistant-workflow
Renders an SVG token-usage stat card from local Claude Code, Codex, Gemini CLI, and OpenCode session logs and commits it to the repository for README display.
Ships in ai-coding-assistant-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Produce an SVG card summarising this machine's AI coding agent usage — total tokens, equivalent API cost, current streak, and the split across agents — and write it into the working tree as a file the README can reference.
The card is a committed artifact rather than a hosted image, so it renders from the repository itself and does not depend on a third-party endpoint staying up.
Use /cost-report instead when the question is "what did I spend this week". The two read
different sources and produce different things:
/cost-report | Token Card | |
|---|---|---|
| Source | ~/.claude/metrics/costs.jsonl, written by ECC's stop:cost-tracker hook | The agents' own session logs |
| Agents | Claude Code | Claude Code, Codex, Gemini CLI, OpenCode |
| Output | Terminal summary, optional CSV | An SVG file committed to the repo |
@tokenchit/cli, MIT licensed: https://github.com/iyashjayesh/tokenchit
Pinned to an exact version, deliberately. @latest resolves to whatever the registry
currently serves, and this tool reads local session logs — so a compromised future release
would be executed with access to them before anyone had reviewed it. Pin, and raise the pin
knowingly:
TOKENCHIT_VERSION=0.10.0
To check the pinned artifact before running it the first time:
npm view @tokenchit/[email protected] dist.integrity dist.tarball
Ask before the first download. npx fetches the package from the npm registry and
executes it. That is a remote download of code that will read local logs, so get explicit
confirmation from the user before the first run on a machine. If they decline, stop here
and say what would have run.
Configure, unless this is a dry run. If .tokenchit.json is absent, run:
npx -y @tokenchit/[email protected] init
It detects which agents have logs on this machine and records them. The file is meant to be committed and never contains a credential.
Skip this entirely when the user passed --dry-run, and report that .tokenchit.json
would be created. A preview that writes a config file is not a preview.
Render the card. The bare command writes to the configured output — tokenchit.svg
unless .tokenchit.json names another path:
npx -y @tokenchit/[email protected] sync
Append only the flags the user actually asked for, each spelled exactly as below. Do not
copy a placeholder into the command — sync ignores an unrecognised positional argument
rather than refusing it, so a bracketed [--dry-run] reaches the CLI as junk and the card
is written anyway, which is the opposite of what was asked.
| Flag | Effect |
|---|---|
--out <path> | Write somewhere other than the configured output |
--theme auto | light | dark | Card theme; auto adapts to the reader's system |
--dry-run | Print what would be written and touch nothing |
sync reads local files and sends nothing: no prompts, no code, no file contents leave
the machine, and it transmits nothing to any server. The npx invocation around it is a
registry download — that is the network access in this workflow, and step 1 is where it
is agreed.
Report and offer. Print the figures it produced — tokens, equivalent cost, streak, per-agent split — and the path written. If the repository has a README that does not yet reference the card, offer to add:

sync prints the path relative to the repository root. A Markdown image resolves
relative to the file it sits in, so rewrite it for the README being edited: a card at
docs/usage.svg is ./docs/usage.svg from the root README but ../usage.svg from
docs/zh-CN/README.md. Pasting the printed path into a nested README points at
docs/zh-CN/docs/usage.svg and renders broken.
Do not edit the README without being asked.
Stop after step 4. Publishing to the public leaderboard is a separate publish command that
requires explicit opt-in, and is not part of this workflow — run it only if the user asks for
it by name. unpublish removes the row and the account again.
The path of the SVG, the figures it contains, and the markdown snippet for referencing it. On a dry run: what would have been written, and nothing on disk changed.
engines: { node: ">=22" }). Nothing is
installed globally; npx fetches the pinned version per run.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
token-usage, usage-card, agent-logs, svg-card, cost-tracking
npx claudepluginhub marslanalvi/skillsstack --plugin ai-coding-assistant-workflow70 skills in this plugin
/academy-guideStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.
/agent-sortBuild an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.Other plugins' skills for the same job