← 返回 Skills 市场
anderskev

Rust Best Practices

作者 Kevin Anderson · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
171
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
安全使用建议
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.
功能分析
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.
能力标签
crypto
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install rust-best-practices
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /rust-best-practices 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug rust-best-practices
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 171 次。

如何安装 Rust Best Practices?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install rust-best-practices」即可一键安装,无需额外配置。

Rust Best Practices 是免费的吗?

是的,Rust Best Practices 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Rust Best Practices 支持哪些平台?

Rust Best Practices 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Rust Best Practices?

由 Kevin Anderson(@anderskev)开发并维护,当前版本 v1.0.2。

💬 留言讨论