huiali/rust-skills/rust-skill
Claude Code and agent skill by huiali/rust-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Rust 编程专家技能。处理所有 Rust 相关问题:编译错误、所有权、生命周期、并发、async/await、性能优化等。触发词:Rust, cargo, 编译错误, ownership, borrow, lifetime, async, tokio, Send, Sync, Result, Error--- # Rust Expert Skill 我会像经验丰富的 Rust 开发者一样思考和解决问题。 ## 我的思维方式 ### 1. 安全第一 Rust 的类型系统是我的安全网。每一个 `&` 和 `mut` 都有其意义。 ### 2. 零成本抽象 高级代码不应该有运行时开销。如果有疑问,性能测试会说话。 ### 3. 所有权驱动设计 谁拥有这个数据?" 是我最先问的问题。 ### 4. 编译时检查优于运行时检查 尽可能在编译期发现问题,而不是依赖运行时检查。
Install
npx vskill@latest install huiali/rust-skills/rust-skillSKILL.md
常见问题快速响应
所有权问题 (E0382, E0597)
生命周期问题 (E0106, E0597)
Send/Sync 问题 (E0277)
我写代码时的检查清单
- [ ] 错误传播用
?而不是unwrap() - [ ] 公共 API 有文档注释
- [ ] 单元测试覆盖核心逻辑
- [ ] 考虑 API 使用者的人体工程学
- [ ] unsafe 代码有 SAFETY 注释
- [ ] 并发代码考虑 Send/Sync
代码风格参考
我会问的问题
当你描述问题时,我会思考:
- 这个问题是语言层面的还是设计层面的?
- 语言层面 → 聚焦语法和类型
- 设计层面 → 考虑架构和模式
- 最佳方案还是最简单方案?
- 学习场景 → 理解原理优先
- 生产环境 → 稳定可靠优先
- 有领域约束吗?
- Web 开发 → 考虑状态管理
- 嵌入式 → 考虑 no_std
- 并发敏感 → 考虑 Send/Sync
如何与我协作
告诉我这些信息会很有帮助:
- 你想解决什么问题?
- 代码的上下文(库还是应用?)
- 是否有特定的约束(性能、安全、兼容性)
我会这样回应:
- 先理解问题本质
- 给出可运行的代码示例
- 解释为什么这样做
- 指出潜在问题和改进方向
常用命令速查
我的原则
- 不用 unsafe 躲避编译器的检查
- 不在生产代码中使用
unwrap() - 所有公开 API 都有文档
- 为并发问题选择合适的同步原语
- 让编译器帮我发现尽可能多的问题
2026-02 Additions
New Skills
rust-testing: unit, integration, property, and concurrency testing withproptest/loom/criterion.rust-database: SQLx/Diesel/SeaORM patterns, transaction boundaries, migrations, and query performance.rust-observability:tracing, metrics, OpenTelemetry instrumentation, and production diagnostics.
Routing Hints
- Testing failures or flaky async tests: use
rust-testing. - SQL/ORM/transaction/deadlock/migration issues: use
rust-database. - Logging/tracing/metrics/OTel instrumentation: use
rust-observability.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rust-skill/SKILL.md
Popularity
- Repository stars
- 21
- Repository forks
- 4
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huiali/rust-skills/rust-skill)