edwardzhang/sps-cli/rust
Claude Code and agent skill by edwardzhang/sps-cli
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Rust language skill — ownership, traits, errors, async, testing. Pair with end skills (`backend`, `devops`) and with `coding-standards` for cross-language principles.
Install
npx vskill@latest install edwardzhang/sps-cli/rustSKILL.md
The same SKILL.md was published earlier as edwardzhang/sps-cli/rust.
Rust
Ownership, lifetimes, traits, errors, async. Language-focused. Architecture → end skills. General principles (TDD, naming, error strategy) → coding-standards.
When to load
- Project primary language is Rust
- Reviewing Rust code
- Designing types, traits, error hierarchies
- Async with
tokio/async-std
Core principles
- Make invalid states unrepresentable. Use the type system — enums, newtypes, bounds — before runtime checks.
- `Result` for expected failure, `panic!` only for bugs / invariant violations.
- Prefer owned types at API boundaries; `&str` / `&[T]` inside. Callers decide the allocation policy.
- Small traits, defined at the call site. Don't pre-abstract.
- `#[must_use]` on types that ignore-means-bug (
Result, builders, guards). - No `unwrap()` / `expect()` outside tests and `main`. The compiler enforces error handling; don't opt out.
- `clippy::pedantic` in CI. Treat warnings as errors.
- `cargo fmt` and `cargo clippy` — never argue style.
How to use references
| Reference | When to load | |
|---|---|---|
| `references/ownership.md` | Borrowing, lifetimes, move vs. copy, Rc/Arc, interior mutability | |
| `references/errors.md` | Result, ?, thiserror, anyhow, error enums, chaining | |
| `references/traits.md` | Traits, generics, impl Trait, associated types, trait objects | |
| `references/async.md` | async fn, futures, tokio, cancellation, select!, pinning | |
| `references/testing.md` | #[test], integration tests, cargo test, property testing |
Forbidden patterns (auto-reject)
unwrap()/expect()in non-test, non-maincode without a comment explaining why it's unreachablepanic!as control flowunsafewithout a// SAFETY:comment listing every invariant the caller must uphold.clone()in a hot loop when a borrow would sufficeRc<RefCell<T>>without a thread-sharing story (single-threaded only; useArc<Mutex<T>>if it crosses threads)- Blocking calls inside an
async fn(std::thread::sleep,std::fs::*in tokio) #[allow(clippy::...)]without a nearby comment justifying it- Overlarge error enums (40+ variants); split by module
- Returning
Vec<String>from a parse when&strviews into the input would work - Ignoring
#[must_use]onResult(compiler warns; treat as error)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rust/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/edwardzhang/sps-cli/rust)