Index of every page on this site: llms.txt
All skills
ccusage avatar

/rust

@7e789e8
by ccusageccusage/ccusage20k stars
934
Run it yourself

Guides ccusage Rust implementation work. Use when editing rust/crates or rust/adapters, adapter module layout, crate visibility and Hawk findings, embedded pricing, or Rust behavior parity.

Use this Skill: https://skilld.dev/gh/ccusage/ccusage/rust

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈49 tokens for metadata: the name and description. ≈349 when used: this file.

Description uses 2.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈196 characters, or 2.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

ccusage Rust

Read the crate README for the Crane build boundary. For adapter changes, follow rust/adapters/README.md and rust/adapters/AGENTS.md. Put plain argument types in ccusage-cli and parsing and help generation in ccusage-cli-parser.

Preserve reports, JSON, table layout, progress text, date windows, pricing behavior, and source discovery unless the user requests a change. For parity with a historical release, compare against the matching tag or commit.

Visibility

Reserve pub for consumers in other crates. just hawk fails on every Hawk finding, and nix flake check runs the same gate. Every binary the repository ships or runs in a check has a [[production]] entry in rust/hawk.toml; add a missing one first. Then fix unnecessary_public by narrowing the item, never by editing rust/hawk.toml to silence it. Update the Hawk archive pins in nix/cargo-hawk.nix with the compiler in rust-toolchain.toml.

Pricing embedding

Keep snapshot bytes in ccusage-pricing-snapshots and filtering and compaction at build time. Use the build and regeneration commands in that crate's README. Keep fetch-litellm-pricing off by default. Maintain rust/crates/ccusage-core/src/fast-multiplier-overrides.json by hand.

Use the testing skill for fixture and pricing checks, profile for performance comparisons, and development for workspace validation.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    This skill provides implementation guidelines for the ccusage Rust workspace. It references official project tooling, reputable vendor resources, and well-known external services for data fetching. No security risks were identified.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

Signed by skilld at 7e789e8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated yesterday
paths
[
  "rust/**/*.rs",
  "rust/**/*.toml",
  "rust/**/build.rs"
]
globs
rust/**/*.rs,rust/**/*.toml,rust/**/build.rs

README badge

README badge for ccusage/ccusage/rust