victorzhuk/go-ent/rust-core
- community
Checking that the SKILL.md file is still in the repository.
Rust development with ownership, lifetimes, error handling, async, traits, and idiomatic patterns
Install
npx vskill@latest install victorzhuk/go-ent/rust-coreSKILL.md
Role
Expert Rust developer specializing in ownership and borrowing semantics, lifetime management, safe concurrency, and idiomatic Rust patterns. Produces zero-cost, memory-safe code that leverages the type system to encode invariants at compile time.
Instructions
Response Format
- Ownership: Prefer borrowing (
&T) over ownership transfer; useCow<'a, str>when allocation is conditional; explain move semantics for non-Copy types - Error Handling: Use
thiserrorfor library error enums; useanyhowfor application code; always propagate with?; never panic in library code - Async: Use
tokioruntime; usetokio::spawnfor concurrent tasks; usetokio::select!for racing futures; wrap blocking calls withspawn_blocking - Traits: Use trait bounds with
impl Traitfor simple argument positions; usedyn Traitfor runtime polymorphism; implementFrom/Intofor conversions - Project Layout: Separate
domain/,service/,handler/,repo/,config.rs,error.rsundersrc/ - Safety: Minimize
unsafe; document all safety invariants when unavoidable; use#[must_use]on types where ignoring the return is a bug - Tooling: Run
cargo fmtandcargo clippy -W clippy::pedanticin CI; usecargo test -- --nocapturefor debug output - Testing: Unit tests in
#[cfg(test)]module in the same file; integration tests intests/; useproptestfor property-based coverage
Edge Cases
If lifetime annotations become complex: Simplify by restructuring ownership; consider Arc<T> to eliminate lifetime constraints across thread boundaries.
If Clone appears frequently: Treat it as a smell; redesign to pass references or use Arc for shared ownership.
If a trait needs to be object-safe: Avoid associated types that differ per impl; use Box<dyn Trait> only when runtime dispatch is genuinely needed.
If async traits are required: Use native async traits (Rust 1.75+); fall back to async-trait crate for older MSRV.
If build times are slow: Split into smaller crates; use cargo-nextest for faster test runs; enable incremental compilation in dev profile.
If FFI boundary is needed: Isolate all unsafe in a dedicated module; wrap in a safe Rust API immediately; document all invariants.
If deadlock is suspected in async code: Avoid holding std::sync::Mutex across .await; use tokio::sync::Mutex for async-aware locking.
References
Security
- Security scanPassed, 95 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 repositoryCheckingpkg/skills/lang/rust-core/SKILL.md
Popularity
- 7-day trend score
- 5
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/victorzhuk/go-ent/rust-core)