Install
$ agentstack add skill-galaxyruler-galactic-skills-rust-engineering ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README — it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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 —
Resulteverywhere, 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](REVIEW.md)
Ownership & borrowing
- Prefer
&Tover.clone(). Clone only when ownership transfer unavoidable. - Tree-like ownership hierarchies; avoid circular graphs.
Cowfor conditional ownership when mutation is rare.Rcsingle-threaded,Arcmulti-threaded shared ownership.RefCellsingle-threaded /Mutex+RwLockmulti-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) overBoxunless heterogeneous collections required.
Error handling
Result+?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.
Observability
tracingcrate for structured, span-based instrumentation.#[instrument]on async functions.tracing-subscriberwithfmtlayer (dev) andjsonlayer (prod). Filter viaRUST_LOGenv var.- Pair with
tracing-opentelemetryfor distributed trace export when needed.
Project structure
main.rsminimal entry point,lib.rscore domain logic. Cargo Workspaces for multi-crate.- Newtype pattern (
struct UserId(u64)) for domain boundaries. - Typestate pattern for state-machine transitions enforced at compile time.
Testing
#[test]in#[cfg(test)]module for unit tests.tests/dir for integration tests.cargo-nextestfor parallel execution.mockall/wiremockfor mocking.proptestfor property-based testing.cargo-fuzzfor untrusted input.
Architecture, security, performance
Domain-specific backends (axum, actix-web, Tauri, WASM), database paradigms (SQLx, SeaORM, Diesel), supply-chain auditing, unsafe constraints, deployment: [ARCHITECTURE.md](ARCHITECTURE.md), [SECURITY-PERF.md](SECURITY-PERF.md).
For Tauri desktop/mobile apps, see the [tauri-engineering](../tauri-engineering/SKILL.md) skill — it covers guest-host architecture, IPC commands, ACL security, and binary optimization.
Anti-patterns & review checklist
Critical anti-patterns (locks across await, stringly-typed interfaces, N+1 queries, missing graceful shutdown) and the full review checklist: [REVIEW.md](REVIEW.md).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: GalaxyRuler
- Source: GalaxyRuler/Galactic-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.