pattern-matching
✓使用 Data.TaggedEnum、$match、$is、Match.typeTags 和 Effect.match 进行 Master Effect 模式匹配。避免手动 _tag 检查和 Effect.either 模式。在使用有区别的联合、ADT 或基于标记类型的条件逻辑时,请使用此技能。
SKILL.md
Use this skill when working with discriminated unions, ADTs, conditional logic, or any type that uses tag discrimination. Pattern matching provides exhaustive, type-safe alternatives to imperative conditionals.
When pattern matching involves non-deterministic operations, use Effect services.
Your pattern matching implementations should be exhaustive, type-safe, declarative, and testable.
使用 Data.TaggedEnum、$match、$is、Match.typeTags 和 Effect.match 进行 Master Effect 模式匹配。避免手动 _tag 检查和 Effect.either 模式。在使用有区别的联合、ADT 或基于标记类型的条件逻辑时,请使用此技能。 来源:front-depiction/claude-setup。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/front-depiction/claude-setup --skill pattern-matching- 分类
- {}数据分析
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 pattern-matching?
使用 Data.TaggedEnum、$match、$is、Match.typeTags 和 Effect.match 进行 Master Effect 模式匹配。避免手动 _tag 检查和 Effect.either 模式。在使用有区别的联合、ADT 或基于标记类型的条件逻辑时,请使用此技能。 来源:front-depiction/claude-setup。
如何安装 pattern-matching?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/front-depiction/claude-setup --skill pattern-matching 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/front-depiction/claude-setup
详情
- 分类
- {}数据分析
- 来源
- skills.sh
- 收录时间
- 2026-02-01