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 agentmods add skills/galaxyruler/galactic-skills/rust-engineeringnpx skills add GalaxyRuler/Galactic-skills --skill rust-engineeringgit clone --depth 1 https://github.com/GalaxyRuler/Galactic-skillsWrote 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/galaxyruler/galactic-skills/rust-engineering)<a href="https://agentmods.dev/skills/galaxyruler/galactic-skills/rust-engineering"><img src="https://agentmods.dev/badge/skills/galaxyruler/galactic-skills/rust-engineering.svg" alt="Measured on agentmods" 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 | $0.00110 | $0.01012 |
| Opus 5 | $0.00055 | $0.00506 |
| Sonnet 5 | $0.00022 | $0.00202 |
| Haiku 4.5 | $0.00011 | $0.00101 |
Grade A, and why
rust-engineering 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 5d 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.
Rust Engineering
Strict operational guidelines for generating, refactoring, and reviewing production Rust code.
Core principles
- Make illegal states unrepresentable — ADTs (enums/structs) + Typestate eliminate invalid states at compile time
- Explicit over implicit —
Result<T, E>everywhere, no.unwrap()in production paths - Pragmatism (KISS/YAGNI) — simplest correct solution wins; no premature trait objects
- Zero-cost abstractions — monomorphized generics + ownership = safety without GC overhead
Agent workflow
- Analyze context — determine domain (backend API, CLI, Tauri desktop, WASM frontend) → select patterns
- Enforce type design — scaffold data model with Newtypes and Enums
- Implement — strict ownership, borrowing, async concurrency rules
- Validate & secure — error propagation, structured logging, no unbounded/unsafe vulnerabilities
- Review — run code review checklist before finalizing. See REVIEW.md
Ownership & borrowing
- Prefer
&Tover.clone(). Clone only when ownership transfer unavoidable. - Tree-like ownership hierarchies; avoid circular graphs.
Cow<'a, T>for conditional ownership when mutation is rare.Rc<T>single-threaded,Arc<T>multi-threaded shared ownership.RefCell<T>single-threaded /Mutex<T>+RwLock<T>multi-threaded interior mutability.
Lifetimes & traits
- Rely on elision rules. Explicit annotations: short lowercase (
'a,'ctx). - Derive
Debug,Clone,PartialEq,Eq,Defaulton public types. - Prefer
impl Trait/ generics (static dispatch) overBox<dyn Trait>unless heterogeneous collections required.
Error handling
Result<T, E>+?operator for all fallible operations.thiserrorfor library error enums,anyhowfor application context..unwrap()/.expect()only for statically proven invariants (compiler blind spots).
Async / concurrency
- IO-bound →
tokio::spawn. CPU-bound →tokio::task::spawn_blockingor Rayon. - Never hold
std::sync::Mutexacross.await. Usetokio::sync::Mutexor channels.
What ships with it
5 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.
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.
- 5d ago First seen · 76 lines · 110 tokens per session scan A 280ccca4bd52
rust-engineering is a skill published in the GitHub repository GalaxyRuler/Galactic-skills (5 stars, last pushed today), licensed MIT. It adds 110 tokens to every session and 1,012 once invoked, about $0.0006 per session on Opus 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.
Other skills, from other repositories
python-playground
Run and test Python code in a dedicated playground directory. Use when you need to execute Python scripts, test code snippets, investigate CPython behavior, or experiment with Python without affecting the main codebase.
review-usability
Check whether the common Python code an LLM would plausibly write still works on this branch, testing real cases in ./playground against CPython. Use to find behaviour that diverges from CPython or trips up ordinary idiomatic code.
rust-unit-tests
Write, improve, and run Rust unit tests in the warp Rust codebase.
check
Run Rust fmt, clippy, and unit tests. Use after making Rust code changes.
doctest-conventions
Conventions for authoring rustdoc doctests in playwright-rust — the norun annotation, module-level placement, hidden scaffolding lines, and how doctests are exercised in CI vs pre-commit.
rust-development
Idiomatisk Rust-utvikling med cargo, clippy, error handling, async/tokio, unsafe og testing.