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/rust

SKILL.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

  1. Make invalid states unrepresentable. Use the type system — enums, newtypes, bounds — before runtime checks.
  2. `Result` for expected failure, `panic!` only for bugs / invariant violations.
  3. Prefer owned types at API boundaries; `&str` / `&[T]` inside. Callers decide the allocation policy.
  4. Small traits, defined at the call site. Don't pre-abstract.
  5. `#[must_use]` on types that ignore-means-bug (Result, builders, guards).
  6. No `unwrap()` / `expect()` outside tests and `main`. The compiler enforces error handling; don't opt out.
  7. `clippy::pedantic` in CI. Treat warnings as errors.
  8. `cargo fmt` and `cargo clippy` — never argue style.

How to use references

ReferenceWhen 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-main code without a comment explaining why it's unreachable
  • panic! as control flow
  • unsafe without a // SAFETY: comment listing every invariant the caller must uphold
  • .clone() in a hot loop when a borrow would suffice
  • Rc<RefCell<T>> without a thread-sharing story (single-threaded only; use Arc<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 &str views into the input would work
  • Ignoring #[must_use] on Result (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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/edwardzhang/sps-cli/rust/badge)](https://verified-skill.com/skills/edwardzhang/sps-cli/rust)

Something wrong with this skill or its page? Tell us.