code-architecture-wrong-abstraction
✓指導何時抽象和重複代碼。在創建共享實用程序、在 DRY/WET 方法之間做出決定或重構現有抽象時,請使用此技能。
SKILL.md
Prefer duplication over the wrong abstraction. Wait for patterns to emerge before abstracting.
Premature abstraction creates confusing, hard-to-maintain code. Duplication is far cheaper to fix than unwinding a wrong abstraction.
Don't abstract until code appears in at least 3 places. This provides enough context to identify genuine patterns vs coincidental similarities.
指導何時抽象和重複代碼。在創建共享實用程序、在 DRY/WET 方法之間做出決定或重構現有抽象時,請使用此技能。 來源:flpbalada/my-opencode-config。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/flpbalada/my-opencode-config --skill code-architecture-wrong-abstraction- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 code-architecture-wrong-abstraction?
指導何時抽象和重複代碼。在創建共享實用程序、在 DRY/WET 方法之間做出決定或重構現有抽象時,請使用此技能。 來源:flpbalada/my-opencode-config。
如何安裝 code-architecture-wrong-abstraction?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/flpbalada/my-opencode-config --skill code-architecture-wrong-abstraction 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/flpbalada/my-opencode-config
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01