‹ 首页

lang-rs

@dragoscirjan · 收录于 1 周前 · 上游提交 1 个月前

Rust development standards, Rust API Guidelines, and tooling.

适合你,如果正在用 Rust 开发并希望遵循最佳实践。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add dragoscirjan/opencode-config/lang-rs
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- dragoscirjan/opencode-config/lang-rs
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify dragoscirjan/opencode-config/lang-rs
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
0GitHub stars
~136上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f561928 · 表述以原文为准
它做什么

Claude 会按照 Rust API 指南编写代码,使用 rustfmt 格式化、clippy 检查警告,并确保测试通过。库代码中禁止使用 unwrap/expect,优先使用 Result 和 Option 类型。

什么时候触发

当你要求编写或审查 Rust 代码时触发。

装好后可以这样说
Claude 会使用 thiserror 定义错误类型。
Claude 会检查风格、安全性和错误处理。
技能原文 SKILL.md作者撰写 · MIT · f561928

RS Standards

  • Style: Rust API Guidelines.
  • Tooling: rustfmt, clippy -D warnings, cargo test.
  • Safety: Result<T, E> and Option<T>. Never panic (unwrap/expect) in library code.
  • Errors: Use thiserror for libraries, anyhow for applications.
  • Idioms: Prefer borrowing over cloning. Leverage pattern matching (match) exhaustively.
  • Concurrency: Use tokio for async I/O.

Always load clean-code alongside this skill.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。