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 uwuclxdy/agenticat --skill cargo-toml-optimizationgit clone --depth 1 https://github.com/uwuclxdy/agenticatWrote 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/uwuclxdy/agenticat/cargo-toml-optimization)<a href="https://agentmods.dev/skills/uwuclxdy/agenticat/cargo-toml-optimization"><img src="https://agentmods.dev/badge/skills/uwuclxdy/agenticat/cargo-toml-optimization/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/uwuclxdy/agenticat/cargo-toml-optimization"><img src="https://agentmods.dev/badge/skills/uwuclxdy/agenticat/cargo-toml-optimization.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.00031 | $0.02515 |
| Opus 5.5 | $0.00012 | $0.01006 |
| Sonnet 5.5 | $0.00006 | $0.00503 |
| Haiku 4.5 | $0.00003 | $0.00251 |
Grade A, and why
cargo-toml-optimization 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 18d 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 — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cargo.toml Optimization
Tune a Rust manifest (Cargo.toml) and its build config (.cargo/config.toml) toward one goal at a time. Runtime speed, binary size, compile time, dependency hygiene: these pull against each other, so name the target before editing. Then take a baseline measurement, change a single lever, re-measure.
Measure First
Advice you haven't measured is guessing. opt-level "z" is not always smaller than "s" or 3. Fat LTO can cost minutes of link time for a percent of runtime. The real bottleneck is often one crate on the critical path rather than the whole graph.
| Question | Command |
|---|---|
| What is slow to compile? | cargo build --timings -> HTML report; read the critical path |
| Which deps are duplicated at incompatible versions? | cargo tree -d |
| What makes the binary big? | cargo bloat --release --crates (install cargo-bloat) |
| Why is this feature / crate here? | cargo tree -e features -i <crate> |
Build cache, Cargo.lock rules, build.rs cost: references/how-cargo-works.md.
Two Files, Two Jobs
Cargo.tomllists what to build: dependencies, features, profile definitions, workspace layout..cargo/config.tomlgoverns how it gets built: linker,rustflags,sccache, target, env. It can override any profile field; that override then wins over theCargo.tomlprofile. So does aCARGO_PROFILE_<NAME>_<KEY>env var.
Trap: [profile.*], [patch] and resolver are read only from the workspace root; in a member they are ignored with a warning (resolver: if it differs). ([workspace] in a member is different: it makes that crate its own workspace root.)
Profiles: The Core of It
Most Cargo.toml tuning happens here. A profile applies to every target (lib, bin, test, bench). Per-setting detail (every value, every default) is in references/profiles.md. Start from one of these:
Balanced release (near-fat-LTO quality, substantially faster link than full fat LTO):
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 4
panic = "abort" # smaller + faster panic path; drop it if you need unwinding or catch_unwind
strip = "debuginfo" # trims size, keeps symbol names for crash reports
What ships with it
11 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.
- references/cfg-targets.md 18 KB
- references/config.md 18 KB
- references/crates-io-metadata.md 18 KB
- references/dep-hygiene.md 4.4 KB
- references/dependencies.md 9.3 KB
- references/how-cargo-works.md 11 KB
- references/licenses.md 9.6 KB
- references/manifest.md 15 KB
- references/profiles.md 10 KB
- references/rustc-flags.md 15 KB
- references/workspaces.md 14 KB
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.
- 18d ago Changed · -5 lines f49ddaea43a2
- 3mo ago First seen · 162 lines · 31 tokens per session scan A 3567cc47cdd1
cargo-toml-optimization is a skill published in the GitHub repository uwuclxdy/agenticat (6 stars, last pushed 7d ago), licensed MIT. It adds 31 tokens to every session and 2,515 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-08-31.
cargo-toml-optimization compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cargo-toml-optimizationuwuclxdy/agenticat | Skill | 6 | 7d ago | MIT | A | 31 | Claude Code |
| azure-storage-blob-rustmicrosoft/skills | Skill | 3.3k | today | MIT | A | 57 | Claude Code |
| azure-keyvault-certificates-rustmicrosoft/skills | Skill | 3.3k | today | MIT | A | 65 | Claude Code |
| azure-cosmos-rustmicrosoft/skills | Skill | 3.3k | today | MIT | A | 56 | Claude Code |
| azure-eventhub-rustmicrosoft/skills | Skill | 3.3k | today | MIT | A | 58 | Claude Code |
| azure-identity-rustmicrosoft/skills | Skill | 3.3k | today | MIT | A | 54 | Claude Code |
| azure-keyvault-keys-rustmicrosoft/skills | Skill | 3.3k | today | MIT | A | 68 | Claude Code |