m05-type-driven
✓关键:用于类型驱动设计。触发器:类型状态、PhantomData、newtype、标记特征、构建器模式、使无效状态不可表示、编译时验证、密封特征、ZST、类型状态、新类型模式、类型驱动设计
SKILL.md
| Pattern | Don't Just Say | Ask Instead |
| Primitive obsession | "It's just a string" | What does this value represent? | | Boolean flags | "Add an isvalid flag" | Can states be types? | | Optional everywhere | "Check for None" | Is absence really possible? | | Validation at runtime | "Return Err if invalid" | Can we validate at construction? |
| What types to create | m09-domain | What's the domain model? | | State machine design | m09-domain | What are valid transitions? | | Marker trait usage | m04-zero-cost | Static or dynamic dispatch? |
关键:用于类型驱动设计。触发器:类型状态、PhantomData、newtype、标记特征、构建器模式、使无效状态不可表示、编译时验证、密封特征、ZST、类型状态、新类型模式、类型驱动设计 来源:actionbook/rust-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/actionbook/rust-skills --skill m05-type-driven- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 m05-type-driven?
关键:用于类型驱动设计。触发器:类型状态、PhantomData、newtype、标记特征、构建器模式、使无效状态不可表示、编译时验证、密封特征、ZST、类型状态、新类型模式、类型驱动设计 来源:actionbook/rust-skills。
如何安装 m05-type-driven?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/actionbook/rust-skills --skill m05-type-driven 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/actionbook/rust-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01