nubiv/my-nome/rust-style
- community
Checking that the SKILL.md file is still in the repository.
Rust coding style guide. Apply automatically when writing or modifying Rust code. Enforces for-loops over iterators, let-else for early returns, variable shadowing, newtypes, explicit matching, and minimal comments.
Install
npx vskill@latest install nubiv/my-nome/rust-styleSKILL.md
Rust Coding Style
Apply these rules when writing or modifying any Rust code.
Control Flow: Use for Loops, Not Iterator Chains
Write for loops with mutable accumulators instead of iterator combinators, unless returning an iterator is the goal.
Early Returns: Use let ... else
Use let ... else to extract values and exit early on failure. This keeps the happy path unindented.
Pattern Matching: Minimize if let
Use if let only when the Some/Ok branch is short and there's no else branch.
Variable Naming: Shadow, Don't Rename
Shadow variables through transformations. Avoid prefixes like raw_, parsed_, trimmed_.
Comments: Don't Write Them
- No inline comments explaining what code does
- No section headers or dividers (
// --- Section ---) - No TODO comments (use issue tracker)
- No commented-out code (use version control)
Exception: Doc comments (///) on public items are required. See the rustdoc skill.
Type Safety: Prefer Newtypes Over Strings
Wrap strings in newtypes to add semantic meaning and prevent mixing different string types.
Type Safety: Prefer Strongly-Typed Enums Over Bools
Use enums with meaningful variant names instead of bool parameters.
Pattern Matching: Never Use Wildcard Matches
Always match all variants explicitly to get compiler errors when variants are added.
If a wildcard seems necessary, ask the user before using it.
Pattern Matching: Avoid matches! Macro
Use full match expressions instead of matches!. Full matches provide better compiler diagnostics when the matched type changes.
Destructuring: Always Use Explicit Destructuring
Destructure structs and tuples explicitly to get compiler errors when fields change.
Code Navigation: Always Use rust-analyzer LSP
When searching or navigating Rust code, always use the LSP tool with rust-analyzer operations:
goToDefinition- Find where a symbol is definedfindReferences- Find all references to a symbolhover- Get type info and documentationdocumentSymbol- Get all symbols in a filegoToImplementation- Find trait implementations
Security
- Security scanPassed, 90 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 repositoryCheckingnix-darwin/config/claude/skills/rust-style/SKILL.md
Popularity
- 7-day trend score
- 0
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/nubiv/my-nome/rust-style)