cost-speed-meter

cost-speed-meter is a skill for Claude Code, Codex from Benkapner/claude-code-basecamp. It costs 48 tokens per session (1,299 once invoked), scanned A, original, MIT.

A skill that records how long commands take across coding sessions and summarizes slow operations and speed changes. It supports Python, Node, Rust, and Go projects.

In plain words
What is it for?
Use it to compare command speed, identify slow tests or builds, choose faster feedback checks, and track custom commands such as deployments.
Why use it?
It shows whether tests, builds, lint checks, or other commands are slowing development and whether an optimization helped.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare command speed, identify slow tests or builds, choose faster feedback checks, and track custom commands such as deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benkapner/claude-code-basecamp/cost-speed-meter
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.

Any agent
npx skills add Benkapner/claude-code-basecamp --skill cost-speed-meter
Clone the repo
git clone --depth 1 https://github.com/Benkapner/claude-code-basecamp

Made for: Claude Code, Codex.

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 cost-speed-meter

README.md
[![agentmods](https://agentmods.dev/badge/skills/benkapner/claude-code-basecamp/cost-speed-meter/github.svg)](https://agentmods.dev/skills/benkapner/claude-code-basecamp/cost-speed-meter)
Your own site
<a href="https://agentmods.dev/skills/benkapner/claude-code-basecamp/cost-speed-meter"><img src="https://agentmods.dev/badge/skills/benkapner/claude-code-basecamp/cost-speed-meter/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 cost-speed-meter

Your own site · 80×15
<a href="https://agentmods.dev/skills/benkapner/claude-code-basecamp/cost-speed-meter"><img src="https://agentmods.dev/badge/skills/benkapner/claude-code-basecamp/cost-speed-meter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,299 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00048 $0.01299
Opus 5.5 $0.00019 $0.00520
Sonnet 5.5 $0.00010 $0.00260
Haiku 4.5 $0.00005 $0.00130

Measured 1mo ago against content hash 3851c78c55dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cost-speed-meter 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (meter-hook.sh, meter.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/cost-speed-meter/SKILL.md · 166 lines

How it starts

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

Cost & Speed Meter

Track execution time. Suggest faster paths. Prove optimizations worked.

Measure only commands the user asks to compare. Across sessions, the optional metrics file can show trends without adding noise or overhead to normal work.

When to Use

  • User asks to measure tests, builds, or lint commands
  • User asks: "is this slow?", "how long did that take?", "what's the slowest operation?"
  • User asks: "what's a faster way to do this?", "what's the quick feedback loop?"
  • User is optimizing something — measure before, optimize, measure after to prove it worked
  • Working across multiple repos — compare execution costs

What It Tracks

Operation Tracked? Example
pytest, jest, cargo test, go test ✓ Tests 45s
npm run build, cargo build, pip install ✓ Builds 8s
ruff check ., eslint ., cargo clippy ✓ Lint 2s
git push, git pull ✓ VCS 3s
Custom commands ✓ Named in .claude/metrics.json custom:deploy

Output

Command Reports

On demand:

Use `skills/cost-speed-meter/meter.sh show` for current measurements or
`skills/cost-speed-meter/meter.sh report` for a weekly summary.

Fast-Path Recommendations

Auto-detect patterns:

Full suite: pytest (45s)
Unit only: pytest -m 'not integration' (15s)

→ Recommendation: For quick feedback, use unit tests (3x faster)
  Use full suite before pushing.

Per-language:

  • Python: pytest -m 'not slow', pytest tests/unit/
  • Node: npm run test:unit, vitest --run (vs jest)
  • Rust: cargo test --lib (vs full + integration)
  • Go: go test ./... (vs go test ./... -v with benchmarks)

Metrics File (.claude/metrics.json, gitignored)

{
  "repo": "code-to-docs",
  "timestamp": "2026-08-20T14:30:00Z",
  "operations": [
    {
      "name": "tests",
      "category": "test",
      "last_run_seconds": 45,
      "last_run_time": "2026-08-20T14:30:00Z",
      "run_count_7d": 12,
      "avg_7d": 43,
      "trend_7d": "+2s",
      "trend_pct": "+4.7%"
    },
    {
      "name": "unit_tests",
      "category": "test",
      "last_run_seconds": 15,
      "run_count_7d": 4,
      "avg_7d": 14
    },
    {
      "name": "build",
      "category": "build",
      "last_run_seconds": 8,
      "run_count_7d": 8,
      "avg_7d": 8.2,
      "trend_7d": "-0.5s"
    }
  ],
  "slowest_op": {
    "name": "tests",
    "seconds": 45,
    "reason": "integration tests (50 of 1000 tests)"
  },
  "recommendations": [
    "For quick feedback, run unit tests (15s vs 45s) — 3x faster",
    "Test suite grew 4.7% last week; check for new integration tests"
  ]
}

Read the full file on GitHub · 166 lines

Files

What ships with it

2 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. 1mo ago Changed · -9 lines · +1 tokens per session 3851c78c55dc
  2. 1mo ago Changed · -1 lines · -3 tokens per session 994d6606a9dd
  3. 1mo ago First seen · 176 lines · 50 tokens per session scan A 4c8c05edc9f7

Subscribe to this mod's changes

cost-speed-meter is a skill published in the GitHub repository Benkapner/claude-code-basecamp (18 stars, last pushed 27d ago), licensed MIT. It adds 48 tokens to every session and 1,299 once invoked, about $0.0002 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-08-30.