Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Rust
zhanghandong avatar

Coding Guidelines

zhanghandong/rust-skills

The coding-guidelines skill provides developers with Rust-specific code style standards and best practices, covering naming conventions, data types, error handling, memory management, concurrency, and async patterns. It serves Rust programmers who need guidance on naming conventions, code formatting, and adherence to Rust idioms during code review and development. The skill solves the problem of inconsistent code style and suboptimal practices by offering a centralized reference to the 50 core rules from the official Rust Coding Guidelines.

installs
1.2K
GitHub stars
1.3K
last updated
Jul 14, 2026
View on GitHubSave

Install

$ npx -y skills add zhanghandong/rust-skills --skill coding-guidelines --agent claude-code

Installs into .claude/skills of the current project.

Files

Rust Coding Guidelines (50 Core Rules)

Naming (Rust-Specific)

RuleGuideline
No get_ prefixfn name() not fn get_name()
Iterator conventioniter() / iter_mut() / into_iter()
Conversion namingas_ (cheap &), to_ (expensive), into_ (ownership)
Static var prefixG_CONFIG for static, no prefix for const

Data Types

RuleGuideline
Use newtypesstruct Email(String) for domain semantics
Prefer slice patternsif let [first, .., last] = slice
Pre-allocateVec::with_capacity(), String::with_capacity()
Avoid Vec abuseUse arrays for fixed sizes

Strings

RuleGuideline
Prefer bytess.bytes() over s.chars() when ASCII
Use Cow<str>When might modify borrowed data
Use format!Over string concatenation with +
Avoid nested iterationcontains() on string is O(n*m)

Error Handling

RuleGuideline
Use ? propagationNot try!() macro
expect() over unwrap()When value guaranteed
Assertions for invariantsassert! at function entry

Memory

RuleGuideline
Meaningful lifetimes'src, 'ctx not just 'a
try_borrow() for RefCellAvoid panic
Shadowing for transformationlet x = x.parse()?

Concurrency

RuleGuideline
Identify lock orderingPrevent deadlocks
Atomics for primitivesNot Mutex for bool/usize
Choose memory order carefullyRelaxed/Acquire/Release/SeqCst

Async

RuleGuideline
Sync for CPU-boundAsync is for I/O
Don't hold locks across awaitUse scoped guards

Macros

RuleGuideline
Avoid unless necessaryPrefer functions/generics
Follow Rust syntaxMacro input should look like Rust

Deprecated → Better

DeprecatedBetterSince
lazy_static!std::sync::OnceLock1.70
once_cell::Lazystd::sync::LazyLock1.80
std::sync::mpsccrossbeam::channel-
std::sync::Mutexparking_lot::Mutex-
failure/error-chainthiserror/anyhow-
try!()? operator2018

Quick Reference

Naming: snake_case (fn/var), CamelCase (type), SCREAMING_CASE (const)
Format: rustfmt (just use it)
Docs: /// for public items, //! for module docs
Lint: #![warn(clippy::all)]

Claude knows Rust conventions well. These are the non-obvious Rust-specific rules.

SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/zhanghandong/rust-skills
Category
Rust

More from zhanghandong/rust-skills

All 34
  • M10 Performance895
  • M07 Concurrency844
  • M06 Error Handling827
  • Rust Refactor Helper821
  • M01 Ownership809
  • M04 Zero Cost789
  • M05 Type Driven786
  • M02 Resource783
  • M03 Mutability773
  • M12 Lifecycle764
  • M14 Mental Model751
  • M09 Domain750
  • M11 Ecosystem747
  • M13 Domain Error738
  • Rust Trait Explorer731
  • Rust Code Navigator728
  • Unsafe Checker726
  • Domain Cli709
  • Rust Symbol Analyzer702
  • Rust Call Graph699
  • Rust Router698
  • Rust Learner688
  • Rust Deps Visualizer684
  • Rust Skill Creator670

Recommended

More Rust
1zhanghandong avatarm10-performancezhanghandong/rust-skillsm10 performance895installs
2zhanghandong avatarm07-concurrencyzhanghandong/rust-skillsm07 concurrency844installs
3zhanghandong avatarm06-error-handlingzhanghandong/rust-skillsm06 error handling827installs
4zhanghandong avatarm04-zero-costzhanghandong/rust-skillsm04 zero cost789installs
5zhanghandong avatarm05-type-drivenzhanghandong/rust-skillsm05 type driven786installs
6zhanghandong avatarm02-resourcezhanghandong/rust-skillsm02 resource783installs