ccusage Testing
SkillFiles & storageLets your agent follow ccusage's testing rules when writing or fixing Rust and Node tests.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the ccusage Testing skill
About this capability
Guides ccusage Rust and Node tests. Use when adding or fixing cargo tests, Node test files, CLI snapshots, Claude model pricing, LiteLLM compatibility, or fixture-backed tests.
What this skill tells your AI
The instructions your AI receives, as published by ccusage/ccusage in .agents/skills/testing/SKILL.md and read by ahel’s review.
The tdd skill owns the Red-Green-Refactor loop and the focused runner commands.
This skill owns what is specific to ccusage: fixtures, adapter coverage, pricing and
model behavior, snapshots, CLI output, and package tooling.
- Prefer behavior-focused tests over schema-shape tests, unless schema normalization itself is the behavior under test.
- Branching behavior belongs in separate tests or table-driven cases rather than an
ifinside a test body. - Skipped local-data smoke tests are acceptable when real user log directories catch schema drift, as long as they pass on clean CI machines.
Rust
Unit tests sit next to the module they exercise in #[cfg(test)] mod tests. When a
large module is split, its tests move with the code instead of staying in main.rs.
Read references/rust.md for fixtures, snapshots, pricing, and model names.
Node
Read references/node-test.md. Node covers only the package launcher and the Nix-side
JS tooling; production CLI runtime behavior is tested in Rust.
Signals
- GitHub stars
- 18k
- Forks
- 821
- Last commit
- Sep 2026
- Hacker News mentions
- 20
Advanced
- Catalog kind
- skill
- Gateway key
testing-ccusage- Source
- github.com/ccusage/ccusage