rust-coding
✓Rust 编码规范专家。处理命名, 格式化, 注释, clippy, rustfmt, lint, 代码风格, 最佳实践, naming convention, 代码审查, P.NAM, G.FMT, 怎么命名, 代码规范
Installation
SKILL.md
| 方法不用 get 前缀 | fn name(&self) | fn getname(&self) | | 迭代器方法 | iter() / itermut() / intoiter() | getiter() | | 转换命名 | as (廉价), to (昂贵), into (所有权) | 混用 | | static 变量大写 | static CONFIG: Config | static config: Config | | const 变量 | const BUFFERSIZE: usize = 1024 | 无限制 |
| 用 newtype | 领域语义 | struct Email(String) | | 用 slice 模式 | 模式匹配 | if let [first, .., last] = slice | | 预分配 | 避免重新分配 | Vec::withcapacity(), String::withcapacity() | | 避免 Vec 滥用 | 固定大小用数组 | let arr: [u8; 256] |
| ASCII 数据用 bytes() | s.bytes() 优于 s.chars() | | 可能修改时用 Cow | 借用或拥有 | | 用 format! 拼接 | 优于 + 操作符 | | 避免嵌套 contains() | O(nm) 复杂度 |
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/huiali/rust-skills --skill rust-coding- Source
- huiali/rust-skills
- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-01
- Updated
- 2026-02-18
Quick answers
What is rust-coding?
Rust 编码规范专家。处理命名, 格式化, 注释, clippy, rustfmt, lint, 代码风格, 最佳实践, naming convention, 代码审查, P.NAM, G.FMT, 怎么命名, 代码规范 Source: huiali/rust-skills.
How do I install rust-coding?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/huiali/rust-skills --skill rust-coding Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/huiali/rust-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-01