Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
actionbook avatar

Coding Guidelines

  • 1.5k installs
  • 1.3k repo stars
  • Updated May 24, 2026
  • actionbook/rust-skills

coding-guidelines is an agent skill that use when asking about rust code style or best practices. keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, p.nam, g.fmt, code review, naming

About

coding-guidelines is an agent skill from actionbook/rust-skills that use when asking about rust code style or best practices. keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, p.nam, g.fmt, code review, naming convention, variable. # Rust Coding Guidelines (50 Core Rules) ## Naming (Rust-Specific) | Rule | Guideline | |------|-----------| | No `get_` prefix | `fn name()` not `fn get_name()` | | Iterator convention | `iter()` / `iter_mut()` / `into_iter()` | | Conversion naming | `as_` (cheap &), `to_` (expensive), `into_` (ownership) | | Static var prefix | `G_CONFIG` for ` Developers invoke coding-guidelines during operate/infra work for cloud & infrastructure tasks. The skill documents triggers, prerequisites, and step-by-step workflows grounded in SKILL.md. Compatible with Claude Code, Cursor, and Codex agent runtimes that load marketplace skills. Review the Security Audits panel on this listing before installing in production environments.

  • Rust Coding Guidelines (50 Core Rules)
  • | No `get_` prefix | `fn name()` not `fn get_name()` |
  • | Iterator convention | `iter()` / `iter_mut()` / `into_iter()` |
  • | Conversion naming | `as_` (cheap &), `to_` (expensive), `into_` (ownership) |
  • | Static var prefix | `G_CONFIG` for `static`, no prefix for `const` |

Coding Guidelines by the numbers

  • 1,527 all-time installs (skills.sh)
  • +53 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #263 of 1,041 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

coding-guidelines capabilities & compatibility

Capabilities
rust coding guidelines (50 core rules) · | no `get_` prefix | `fn name()` not `fn get_nam · | iterator convention | `iter()` / `iter_mut()` · | conversion naming | `as_` (cheap &), `to_` (ex · | static var prefix | `g_config` for `static`, n
Use cases
orchestration
From the docs

What coding-guidelines says it does

Naming: snake_case (fn/var), CamelCase (type), SCREAMING_CASE (const)
SKILL.md
Docs: /// for public items, //! for module docs
SKILL.md
Claude knows Rust conventions well. These are the non-obvious Rust-specific rules.
SKILL.md
npx skills add https://github.com/actionbook/rust-skills --skill coding-guidelines

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.5k
repo stars1.3k
Security audit3 / 3 scanners passed
Last updatedMay 24, 2026
Repositoryactionbook/rust-skills

What it does

Use when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT, code review, naming convention, variable

Who is it for?

Developers working on cloud & infrastructure during operate tasks.

Skip if: Tasks outside Cloud & Infrastructure scope described in SKILL.md.

When should I use this skill?

Use when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT, code review, naming convention, variable

What you get

Completed cloud & infrastructure workflow aligned with SKILL.md steps.

  • Lint remediation patterns
  • Safety documentation templates
  • Style-compliant Rust snippets

By the numbers

  • Documents Clippy lint-to-fix mappings for 10 lints including unwrap_used, await_holding_lock, and undocumented_unsafe_bl

Files

SKILL.mdMarkdownGitHub ↗

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.

Related skills

Forks & variants (1)

Coding Guidelines has 1 known copy in the catalog totaling 1.3k installs. They canonicalize to this original listing.

How it compares

Use coding-guidelines for everyday Clippy fixes; escalate to unsafe-checker for dedicated unsafe code audits.

FAQ

What does coding-guidelines do?

Use when asking about Rust code style or best practices. Keywords: naming, formatting, comment, clippy, rustfmt, lint, code style, best practice, P.NAM, G.FMT, code review, naming convention, variable

When should I use coding-guidelines?

During operate infra work for cloud & infrastructure.

Is coding-guidelines safe to install?

Review the Security Audits panel on this listing before production use.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.