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.
npx skills add CodSpeedHQ/codspeed --skill codspeed-write-benchmarksgit clone --depth 1 https://github.com/CodSpeedHQ/codspeedWrote 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.
[](https://agentmods.dev/skills/codspeedhq/codspeed/codspeed-write-benchmarks)<a href="https://agentmods.dev/skills/codspeedhq/codspeed/codspeed-write-benchmarks"><img src="https://agentmods.dev/badge/skills/codspeedhq/codspeed/codspeed-write-benchmarks/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.
<a href="https://agentmods.dev/skills/codspeedhq/codspeed/codspeed-write-benchmarks"><img src="https://agentmods.dev/badge/skills/codspeedhq/codspeed/codspeed-write-benchmarks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00125 | $0.01701 |
| Opus 5.5 | $0.00050 | $0.00680 |
| Sonnet 5.5 | $0.00025 | $0.00340 |
| Haiku 4.5 | $0.00013 | $0.00170 |
Grade A, and why
codspeed-write-benchmarks 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 17d 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.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write Benchmarks
A benchmark is useful when a change in its result means a change in the code. Apply the rules below when writing a benchmark, and use them as the checklist when one misbehaves.
Run benchmarks through the CodSpeed CLI (codspeed run, codspeed exec) and read results with the CodSpeed MCP tools, not from raw framework output.
Rules
-
Relevance: One benchmark answers one question about a real hot path or user-facing operation. Use inputs with a realistic size and distribution.
-
Validity: The code under test must actually run. Use its result (return it, or pass it to the framework's black box) and keep inputs opaque to the optimizer, otherwise the work can be removed or computed at compile time. See optimized-out benchmarks.
-
Measured region: Measure only the operation under test. Build inputs outside the measured code. If the operation mutates its input, give every iteration a fresh copy through the framework's setup hook. Every iteration must do the same work.
-
Determinism: The same code must do the same work on every run. Seed random generators, use fixed-seed hashing or ordered containers, sort directory listings, and read committed fixtures. No network, clock, or environment-dependent branches. See Benchmark Variance.
-
State isolation: A result must not depend on which benchmarks ran before it. Avoid shared caches and globals. Allocator and garbage collector state carries over between benchmarks, so allocate inputs in setup rather than in the measured code. If a micro-benchmark still moves with unrelated code changes, build it into its own binary. See Reducing Variance.
-
Sizing: Size each benchmark so it gives a valid result under every instrument it runs with. One benchmark can run under several instruments, and each one has its own limits:
- Simulation runs the code once on a simulated CPU and excludes system calls. Use it for CPU-bound code.
- Walltime measures real time over repeated rounds and includes I/O. Very short operations need more iterations per round: set the framework's time or iteration options. Avoid running benchmark processes in parallel.
- Memory runs the code once and tracks every allocation. Keep a benchmark under about 2 million allocations and split larger ones. Allocation order across threads is not deterministic.
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.
- 17d ago First seen · 76 lines · 125 tokens per session scan A 26c56b0a72bf
codspeed-write-benchmarks is a skill published in the GitHub repository CodSpeedHQ/codspeed (394 stars, last pushed 3d ago), licensed Apache-2.0. It adds 125 tokens to every session and 1,701 once invoked, about $0.0005 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-11-13.
codspeed-write-benchmarks compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codspeed-write-benchmarksCodSpeedHQ/codspeed | Skill | 394 | 3d ago | Apache-2.0 | A | 125 | Claude Code |
| hotpath_init_grafanapawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 109 | Claude Code |
| hotpath_initpawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 88 | Claude Code |
| hotpath_cloudpawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 110 | Claude Code |
| syncmetapawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 55 | Claude Code |
| hotpath_bumppawurb/hotpath-rs | Skill | 1.9k | 8d ago | MIT | A | 99 | Claude Code |
| http-load-profilerzebbern/claude-code-guide | Skill | 4.7k | 4d ago | MIT | B | 76 | Claude Code, Codex |