usage-view

usage-view is a skill for Claude Code from ww-w-ai/super-token-saver. It costs 50 tokens per session (2,926 once invoked), scanned A, original, Apache-2.0.

An interactive HTML dashboard for reviewing coding-agent usage, including costs, token counts, and activity across a five-hour window and other time periods.

In plain words
What is it for?
Viewing usage across projects, analysing recent days or the current five-hour window, choosing a language, and optionally running AI analysis or hiding private data.
Why use it?
It helps you understand what work consumed tokens or money instead of relying on guesswork.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the super-token-saver plugin — 6 skills, 2 hooks shipped together

Good fit Viewing usage across projects, analysing recent days or the current five-hour window, choosing a language, and optionally running AI analysis or hiding private data.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ww-w-ai/super-token-saver
Claude Code
/plugin install super-token-saver

Made for: Claude Code.

Or install super-token-saver, the plugin that ships this one along with the rest of its 6 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for usage-view

README.md
[![agentmods](https://agentmods.dev/badge/skills/ww-w-ai/super-token-saver/usage-view/github.svg)](https://agentmods.dev/skills/ww-w-ai/super-token-saver/usage-view)
Your own site
<a href="https://agentmods.dev/skills/ww-w-ai/super-token-saver/usage-view"><img src="https://agentmods.dev/badge/skills/ww-w-ai/super-token-saver/usage-view/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for usage-view

Your own site · 80×15
<a href="https://agentmods.dev/skills/ww-w-ai/super-token-saver/usage-view"><img src="https://agentmods.dev/badge/skills/ww-w-ai/super-token-saver/usage-view.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.02926
Opus 5 $0.00025 $0.01463
Sonnet 5 $0.00010 $0.00585
Haiku 4.5 $0.00005 $0.00293

Measured 4d ago against content hash 07fa2ff9ec91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

usage-view scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/usage-view/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dual-host: Claude Code and Codex both write the facts this dashboard needs, but not the same facts. Claude Code gives cost and a hardcoded 5-hour window; Codex gives rate_limits.primary/secondary — a used-percent and a reset instant with a dynamic, host-reported window (observed as 10080 minutes / 7 days, never assumed to be 5 hours) — and no per-token pricing at all. Detect the host you are running under and act accordingly:

  • Claude Code: run the full pipeline below unmodified (cost, 5-hour window, AI insights, 23-locale HTML).
  • Codex: run node ${PLUGIN_ROOT}/scripts/run-usage-view.js --gen-agent-prompt --host codex [parsed flags]. It uses the same default AI-analysis pipeline and the same explicit ai / no ai options as Claude Code. This renders the same dashboard (skills/usage-view/template.html via build-report.js) — token breakdown, calendar, session detail — not a separate report. Cost figures read N/A, not $0 or a Claude-derived estimate, and the calendar follows Codex's reported rate-limit lane instead of assuming a fixed 5 hours.
  • A dual-host skill must not hardcode one host's plugin root. Claude Code exports CLAUDE_PLUGIN_ROOT; Codex does not reliably export CODEX_PLUGIN_ROOT. Resolve PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT}}", falling back to this skill's own directory if both are unset.

Parse user arguments, then launch a single background Agent that runs the entire pipeline (analyze → AI insights unless no ai was selected → build → open browser). The user can continue working while the dashboard is being generated.

Help

ONLY show help if the user's argument literally contains the word "help" (e.g. /usage-view help). If no argument or any other argument is given, SKIP this section entirely and proceed to launching the agent.

If the user provides "help" as argument, show usage summary and stop:

/usage-view — Interactive HTML usage dashboard

Options:
  (nothing)       All projects, last ~1 month
  current         Current 5-hour window only (fast, no AI analysis by default)
  last N days     Analyze last N days only
  locale XX       Force language (e.g. locale ja). Default: system language → en fallback
  no ai           Skip AI analysis for faster rendering (no LLM cost)
  ai              Force AI analysis (use with "current" to override its default)
  private         Strip user prompt text from report (safe to share)
  help            Show this help

Supported locales:
  en ko ja zh es fr de pt it ru ar hi bn id ms th vi tr pl nl he sv no

Examples:
  /usage-view
  /usage-view current          (fast, no AI)
  /usage-view current ai       (current + AI analysis)
  /usage-view last 7 days
  /usage-view locale ja
  /usage-view current locale fr
  /usage-view private           (safe to share — no prompt text)

Do not run any analysis. Just display the help text and stop.

Read the full file on GitHub · 169 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +29 lines · +22 tokens per session 07fa2ff9ec91
  2. 9d ago First seen · 140 lines · 28 tokens per session scan A b80028987b7f

Subscribe to this mod's changes

usage-view is a skill published in the GitHub repository ww-w-ai/super-token-saver (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 2,926 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cco-budget

Configure token budget limits, auto-compact settings, and view current budget status (model-aware — Claude 5 lineup, Opus 5 default fallback, full 1M context at standard price).

egorfedorov/claude-context-optimizer · 43 tokens

cco-clean

Clean up old tracking data and reset statistics.

egorfedorov/claude-context-optimizer · 11 tokens

agent-harness-optimizer

Use when agent harness optimization patterns for token efficiency, memory persistence, session management, and cross-harness parity. Use when optimizing agent performance, reducing token costs,.

oyi77/1ai-skills · 38 tokens

git-workflow

Use when starting feature work that needs a branch, creating worktrees for isolation, making atomic commits during development, or completing a development branch via merge, PR, preserve, or discard. Also use when the user says "set up worktree", "create PR", "finish this branch", "start feature", or when you need an…

lgbarn/shipyard · 76 tokens

parallel-dispatch

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies. Also use when multiple test files fail with different root causes, multiple subsystems are broken independently, or you want agents to work concurrently on separate problem domains. If tasks touch different…

lgbarn/shipyard · 69 tokens

pith

Adaptive output compression. Three levels: precise (no filler), lean (default, drop articles/fragments), ultra (maximum — abbreviate, structure, arrows). Activate: /pith | /pith precise | /pith lean | /pith ultra | /pith off.

abhisekjha/pith · 61 tokens