·Code Style

當用戶詢問“效果最佳實踐”、“效果代碼風格”、“慣用效果”、“模式優先”、“匹配優先”、“何時使用模式”、“何時使用匹配”、“品牌類型”、“雙重 API”、“效果指南”、“do notation”、“Effect.gen”、“管道與方法鏈接”、“效果命名約定”時,應該使用此技能。 “Effect 項目結構”、“Effect 中的數據建模”,或者需要了解慣用的 Effect-TS 模式和約定。

0安裝·0熱度·@andrueandersoncs

安裝

$npx skills add https://github.com/andrueandersoncs/claude-skill-effect-ts --skill Code Style

SKILL.md

NEVER use if/else, switch/case, or ternary operators. These imperative constructs must be replaced with pattern matching in ALL cases:

When you encounter imperative control flow in existing code, refactor it immediately. This is not optional - imperative conditionals are code smells that must be eliminated.

Define ALL data structures as Effect Schemas. This is the foundation of type-safe Effect code.

當用戶詢問“效果最佳實踐”、“效果代碼風格”、“慣用效果”、“模式優先”、“匹配優先”、“何時使用模式”、“何時使用匹配”、“品牌類型”、“雙重 API”、“效果指南”、“do notation”、“Effect.gen”、“管道與方法鏈接”、“效果命名約定”時,應該使用此技能。 “Effect 項目結構”、“Effect 中的數據建模”,或者需要了解慣用的 Effect-TS 模式和約定。 來源:andrueandersoncs/claude-skill-effect-ts。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/andrueandersoncs/claude-skill-effect-ts --skill Code Style
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 Code Style?

當用戶詢問“效果最佳實踐”、“效果代碼風格”、“慣用效果”、“模式優先”、“匹配優先”、“何時使用模式”、“何時使用匹配”、“品牌類型”、“雙重 API”、“效果指南”、“do notation”、“Effect.gen”、“管道與方法鏈接”、“效果命名約定”時,應該使用此技能。 “Effect 項目結構”、“Effect 中的數據建模”,或者需要了解慣用的 Effect-TS 模式和約定。 來源:andrueandersoncs/claude-skill-effect-ts。

如何安裝 Code Style?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/andrueandersoncs/claude-skill-effect-ts --skill Code Style 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/andrueandersoncs/claude-skill-effect-ts