update-counts

update-counts is a command for Claude Code from travisjneuman/.claude. It costs 13 tokens per session (450 once invoked), scanned A, original, MIT.

A command that updates hardcoded project counts in documentation by reading the current filesystem, then regenerates the skills index and marketplace count data.

In plain words
What is it for?
Use it after adding or removing skills or agents, pulling repository changes, or before committing documentation updates.
Why use it?
It prevents documentation from showing outdated numbers after skills, agents, or marketplace repositories change.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it after adding or removing skills or agents, pulling repository changes, or before committing documentation updates.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/travisjneuman/.claude/update-counts
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/travisjneuman/.claude

Made for: Claude Code.

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 update-counts

README.md
[![agentmods](https://agentmods.dev/badge/commands/travisjneuman/.claude/update-counts/github.svg)](https://agentmods.dev/commands/travisjneuman/.claude/update-counts)
Your own site
<a href="https://agentmods.dev/commands/travisjneuman/.claude/update-counts"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/update-counts/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 update-counts

Your own site · 80×15
<a href="https://agentmods.dev/commands/travisjneuman/.claude/update-counts"><img src="https://agentmods.dev/badge/commands/travisjneuman/.claude/update-counts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 450 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.00013 $0.00450
Opus 5.5 $0.00005 $0.00180
Sonnet 5.5 $0.00003 $0.00090
Haiku 4.5 $0.00001 $0.00045

Measured 14d ago against content hash 625ddd544095, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

update-counts 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 14d 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.

commands/update-counts.md · 30 lines

What it actually says

Refresh the existing public count pipeline only when publication is authorized:

bash ~/.claude/scripts/update-counts.sh --as-of=YYYY-MM-DD

The wrapper defaults to --write. An explicit --check is read-only; passing both modes is an error. Checking, testing, linting, building, or sample runs require separate owner authorization; they are not part of a source refresh.

The producer measures public real toolkit files and every manifest marketplace's committed HEAD blobs, not dirty/untracked plugin installations. It rejects incomplete/unreadable/misidentified clones, records selected revisions and clean/modified state, and writes one public snapshot with identity lists. Pins are snapshots, not a promise of latest upstream content.

It updates counts.json, the website's marketplace-counts.json, plugin.json, and specifically owned current numeric documentation (including skills/README.md). The website consumes these same snapshots locally and on hosted builds; it never recounts clones. Historical changelog counts remain historical.

It does not regenerate the index, stage/commit/push, render images, or update other repositories implicitly. If the discovery index needs refresh, explicitly run node ~/.claude/scripts/generate-index.mjs --write before the count write, because the index may update public settings.json.

Optional explicit consumers, measured in the same single pass:

node ~/.claude/scripts/generate-counts.mjs --write --as-of=YYYY-MM-DD \
  --travis-repo /path/to/travisjneuman --portfolio-repo /path/to/tjn.portfolio

All destinations must preflight before any write. The profile requires claude-counts README markers and existing public Claude facts; the portfolio receives JSON only. Review the resulting diff and producer output. Do not rerun both consumer wrappers to remeasure the same inputs.

See Count pipeline for definitions, provenance, exact outputs, failure behavior, and the separate DESK-only media contract.

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. 14d ago Changed · +10 lines · -6 tokens per session 625ddd544095
  2. 25d ago Changed · +1 lines 8862de477f00
  3. 1mo ago First seen · 19 lines · 19 tokens per session scan A bc62777d02c5

Subscribe to this mod's changes

update-counts is a command published in the GitHub repository travisjneuman/.claude (106 stars, last pushed 3d ago), licensed MIT. It adds 13 tokens to every session and 450 once invoked, about $0.0001 per session on Opus 5.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-09-03.