← Back to Skills Marketplace
anderskev

Rust Best Practices

by Kevin Anderson · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
171
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install rust-best-practices
Description
Development guidance for writing idiomatic Rust. Use when: (1) writing new Rust functions or modules, (2) choosing between borrowing, cloning, or ownership p...
Usage Guidance
This is a documentation-only Rust best-practices skill and appears coherent with its purpose. Before using it: ensure you run cargo/clippy/build/profile commands only on trusted repositories (build scripts and test code can execute arbitrary code), consider running heavy builds or profiling in a sandbox/CI container, ensure the Rust toolchain and any profiling tools are installed, and verify the skill owner if you require provenance. There are no requested credentials or hidden network endpoints in the skill itself.
Capability Analysis
Type: OpenClaw Skill Name: rust-best-practices Version: 1.0.2 The rust-best-practices skill bundle is a comprehensive educational resource providing idiomatic guidance for Rust development. It covers essential topics such as ownership, API design, performance optimization, and ecosystem patterns across several well-structured reference files (e.g., references/api-design.md, references/performance.md). The instructions in SKILL.md guide the AI agent to assist users with standard development tasks like running 'cargo clippy' or 'cargo doc' and do not contain any evidence of malicious intent, data exfiltration, or harmful prompt injection.
Capability Tags
crypto
Capability Assessment
Purpose & Capability
Name/description (idiomatic Rust guidance) align with the provided files and runtime instructions. There are no unrelated binaries, environment variables, or config paths requested—everything is documentation and recommended cargo commands appropriate for the stated purpose.
Instruction Scope
SKILL.md instructs the agent to run cargo commands (cargo clippy, cargo build --release, cargo doc, profiling tools) from the workspace root, and to capture before/after measurements for performance claims. These actions are coherent with development guidance. Note: running build/test/profile commands executes user code (build scripts, procedural macros) and may run arbitrary code from the repository; this is an expected but important operational risk when operating on untrusted source trees.
Install Mechanism
No install spec and no code files executed by the platform—this is an instruction-only skill, which minimizes installation risk.
Credentials
The skill requests no environment variables, credentials, or config paths. All referenced tools (cargo, flamegraph) are reasonable for a Rust development guidance skill.
Persistence & Privilege
Skill is not forced-always, is user-invocable, and does not request persistent privileges or modification of other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install rust-best-practices
  3. After installation, invoke the skill by name or use /rust-best-practices
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Added a new "Gates" section describing specific, evidence-based sequences for: - Clippy Clean (lint pass conditions) - Performance claim (benchmark methodology and requirements) - Docs for symbols you changed (documentation build criteria) - No other changes to guidance or sections.
v1.0.1
- Added new reference sections for API design and ecosystem patterns, expanding best practices coverage. - Updated quick reference table to include API Design and Ecosystem topics. - Extended generics/dispatch section with edition 2024 RPIT rules and async trait guidance. - Clarified documentation advice with diagnostic and trait error examples. - Improved pointer type recommendations to reflect recent language updates (e.g., `LazyLock`/`LazyCell`).
v1.0.0
Initial release of rust-best-practices: - Provides concise, actionable guidance for idiomatic, performant, and safe Rust development. - Covers key topics: ownership, borrowing, error handling, generics, dispatch, documentation, clippy/linting, performance, and pointer types. - Includes quick-reference tables and detailed best practices for each area. - Emphasizes use in new code and module development, not as a review checklist. - Links to reference materials for further examples and explanations.
Metadata
Slug rust-best-practices
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Rust Best Practices?

Development guidance for writing idiomatic Rust. Use when: (1) writing new Rust functions or modules, (2) choosing between borrowing, cloning, or ownership p... It is an AI Agent Skill for Claude Code / OpenClaw, with 171 downloads so far.

How do I install Rust Best Practices?

Run "/install rust-best-practices" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Rust Best Practices free?

Yes, Rust Best Practices is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Rust Best Practices support?

Rust Best Practices is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Rust Best Practices?

It is built and maintained by Kevin Anderson (@anderskev); the current version is v1.0.2.

💬 Comments