rust-coding
✓Rust 编码规范专家。处理命名, 格式化, 注释, clippy, rustfmt, lint, 代码风格, 最佳实践, naming convention, 代码审查, P.NAM, G.FMT, 怎么命名, 代码规范
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) 复杂度 |
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/huiali/rust-skills --skill rust-coding- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 rust-coding?
Rust 编码规范专家。处理命名, 格式化, 注释, clippy, rustfmt, lint, 代码风格, 最佳实践, naming convention, 代码审查, P.NAM, G.FMT, 怎么命名, 代码规范 来源:huiali/rust-skills。
如何安装 rust-coding?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/huiali/rust-skills --skill rust-coding 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/huiali/rust-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01