agentleFS
BespokeWoodcraftStudioBespokeWoodcraftStudio/claude-token-savings-dashboard/skill/SKILL.md

token-savings

Skill0 starsChanged 3 months agoMITView on GitHub

Use when the user wants to regenerate and open the Token Savings dashboard — the local dark dashboard showing how many tokens and dollars claude-mem and Graphify save in their repos. Refreshes data, opens index.html, and reports the headline saved-$ and reduction factor.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. remembervictorchatbot-vip/AI_Token_Saving★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Safety: read-only except for writing files under data/ (savings.js, savings.json, history JSON).

    line 21
  2. Very specific:

    If $TOKEN_SAVINGS_DIR is set, use it.

    line 29
  3. Very specific:

    If you can't find it, ask the user where they cloned the repo.

    line 31
  4. Very specific:

    Refresh the data: Run the collector from the dashboard directory so its relative paths and config.json resolve correctly:

    line 34
  5. Distinctive:

    All figures are framed against a "load everything, every time" baseline you'd never actually run — directional, not an invoice.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Token Savings

Refresh and open the Token Savings dashboard: a self-contained dark page that shows how many tokens and dollars two Claude Code context tools save —

  • claude-mem: a memory system. Each observation stores the tokens it cost to originally produce that knowledge; summed = "work captured". Recalling it later is nearly free, so saved = work − recall.
  • Graphify: a knowledge graph over a repo. Answering a structural question via the graph costs a fraction of reading the whole corpus (e.g. ~79.7× reduction).

The dashboard auto-detects both tools. If one isn't installed or has no data, that panel shows a friendly "not detected" state and the other still renders. No demo or fake data is ever shown.

Safety: read-only except for writing files under data/ (savings.js, savings.json, history JSON). It shells out to the sqlite3 and graphify CLIs already on the machine — no npm install, no network, no fetch. Node 18+ required.

Steps

  1. Locate the dashboard directory (the cloned claude-token-savings-dashboard repo, which contains collect-savings.mjs and index.html). Resolve in order:
    • If $TOKEN_SAVINGS_DIR is set, use it.
    • Else use the path the user gives you, or a known clone location.
    • If you can't find it, ask the user where they cloned the repo. Confirm the directory contains collect-savings.mjs before proceeding.
  2. Refresh the data. Run the collector from the dashboard directory so its relative paths and config.json resolve correctly:

    node "$TOKEN_SAVINGS_DIR/collect-savings.mjs"

    This rewrites data/savings.js (which sets window.SAVINGS) and data/savings.json. It is fail-safe — on any error it still writes a partial file and exits 0, so it never blocks.

  3. Open the dashboard. It opens straight from disk (file://), no server:
    • macOS: open "$TOKEN_SAVINGS_DIR/index.html"
    • Linux: xdg-open "$TOKEN_SAVINGS_DIR/index.html"
    • (Windows: start "" "%TOKEN_SAVINGS_DIR%\index.html")
  4. Summarize the headline numbers by reading data/savings.json and reporting back to the user, in one or two lines:
    • Combined: combined.savedDollars (saved $) and combined.savedTokens.
    • claude-mem: cloudMem.observations, cloudMem.workTokens (work captured), cloudMem.savedDollars, cloudMem.efficiencyPct — or its notDetected reason if the panel is empty.
    • Graphify: graphify.reductionFactor (e.g. 79.7x/query) and graphify.savedDollarsPerQuery — or its notDetected reason if empty.

Honesty notes (keep these in the summary if relevant)

  • All figures are framed against a "load everything, every time" baseline you'd never actually run — directional, not an invoice.
  • claude-mem efficiency is capped at 99.9% (never a fake 100%).
  • Any Graphify monthly projection is illustrative — Graphify has no per-query log, so usage volume is assumed (graphifyAssumedQueriesPerDay).

Optional: auto-refresh on every session

To regenerate the data automatically each time Claude Code opens in the repo, add a SessionStart hook to .claude/settings.json (replace the path):

"hooks": {
  "SessionStart": [
    { "hooks": [ { "type": "command", "command": "node \"$CLAUDE_PROJECT_DIR/PATH/TO/collect-savings.mjs\" >/dev/null 2>&1 || true" } ] }
  ]
}

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.