Rust Patterns
Idiomatic Rust patterns: ownership and borrowing, Result/? error handling, traits, enums that make illegal states unrepresentable, and safe concurrency.
- What
- Idiomatic Rust patterns: ownership and borrowing, Result/? error handling, traits, enums that make illegal states unrepresentable, and safe concurrency.
- Cost
- Free
- Needs
- None. No account, no API key, no payment: this skill is a single instruction file for the agent.
- Level
- Beginner
- Install
- Copy the installer prompt below into your Muse — your agent does the rest.
Curated by Skill Harbor: a patterns skill for writing and reviewing Rust the way experienced Rustaceans do. It enforces idiomatic conventions across six areas: ownership and borrowing so the compiler prevents data races (pass references, take ownership only to store or consume, reach for Cow when ownership is conditional), Result and the ? operator for error propagation with thiserror in libraries and anyhow in applications, enums plus exhaustive pattern matching to make illegal states unrepresentable, traits and generics for zero-cost abstraction, safe concurrency through Arc<Mutex<T>>, channels, and async/await, and small, domain-organized pub surfaces. Every rule ships with good/bad code pairs, so you see the borrow checker friendly version next to the wasteful clone. By @affaan-m, listed here with credit to its creator. From the affaan-m/ECC repository (MIT). Honest caveats: pure guidance, nothing to install; assumes you already know Rust basics, it will not teach the language from zero; examples target modern Rust, very old codebases may diverge. Skill Harbor never reviews the code, review it yourself before use.
Version:
Quick answer
Rust Patterns is a free skill for Muse. It is a patterns skill for writing and reviewing Rust the way experienced Rustaceans do. It enforces idiomatic conventions across six areas: ownership and borrowing so the compiler prevents data races (pass references, take ownership only to store or consume, reach for Cow when ownership is conditional).
Install
Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit 4eb71d9Step 0 — before installing anything: read this install prompt, summarize in a few lines what this build does and what installing it involves, then ask me to confirm before you proceed. Prerequisites: None. No account, no API key, no payment: this skill is a single instruction file for the agent. Install "Rust Patterns" for me. It gives my agent idiomatic Rust patterns: ownership, error handling, traits, concurrency, and best practices for building safe, performant applications. Repository: https://raw.githubusercontent.com/affaan-m/ECC/4eb71d92a39cab44ad40ac9d8a6a5ccb4029d6c2/skills/rust-patterns/SKILL.md Pinned version: install the code at commit 4eb71d92a39cab44ad40ac9d8a6a5ccb4029d6c2 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. 1. Fetch the SKILL.md file from the repository path into a temporary folder and look inside. 2. Integrity check: Skill Harbor reviewed this listing on 2026-10-10 and recorded the fingerprints below. I want you to compute the SHA-256 of each downloaded file and compare: - SKILL.md: SHA-256 51379df2bd92a482309e109e5a210210842594f660cceeb2d68d18e995108edf If a fingerprint does not match, I want you to stop before installing and tell me the files changed since Skill Harbor's review, so the new version is unverified. Show me your safety findings and give me three choices: (a) wait for Skill Harbor to re-review the listing (recommended), (b) analyze the new files in detail first and then decide, (c) install anyway knowing the risk. Then wait for my answer before doing anything else. 3. Safety check: I want to see your findings explicitly, in short separate items: - every network address the code contacts (expected: none — this is a plain Markdown guidance file and it contacts nothing by itself) - every shell command it runs (expected: none during installation; the file describes workflows my agent may follow later, when the skill is used) - every place credentials, API keys or personal data are read, stored or sent (expected: none) - any obfuscated or encoded code (expected: none — plain Markdown text) If anything looks suspicious, stop and explain it to me before continuing. 4. Confirmation: before installing, give me a short summary of what the skill does plus your safety findings, and wait for my explicit "yes, install". 5. Install it as a skill: copy SKILL.md into the agent's skills directory, in a folder named "rust-patterns". 6. Verify with no network calls: frontmatter valid, files in place. 7. Report what was installed, where, and what I still need to do myself (nothing, unless I want to try the examples in a Rust project). GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder and the install target. If anything looks off, stop and ask me.
Saved to your recent installs. Find it anytime on /connect.
🔒 Security, provenance and what this touches
The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?
Verification certificate
Dated facts about what was checked for this listing, and how. This is not a safety certification.
- Pinned version
- 4eb71d9 · 2026-10-13
- Sandbox install test
- Install ran in our test sandbox · Nov 11, 2026
- Creator identity
- Not verified
- Fingerprint watch
- Last checked · Nov 21, 2026 : no change detected in the files linked by this install prompt
- Install prompt analysis
- 2026-10-13 : No commands, network calls, packages, file writes or API keys detected.
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Questions
How do I install a skill?
Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.
Where does my money go?
Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.
What does the ✓ next to a creator’s name mean?
It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.