Dependency Injection Mastery
Installation
SKILL.md
Dependency Injection Mastery (依賴注入專精)
Instructions
- 確認問題屬於 DI 架構或 Scope 設計
- 依照下方章節順序套用
- 一次只調整一種注入模式或 module
- 完成後對照 Quick Checklist
When to Use
- Scenario A:新專案 DI 架構建立
- Scenario C:舊專案現代化與模組拆分
- Scenario F:KMP 共用模組的 DI 調整
Example Prompts
- "請參考 Assisted Injection,替 ViewModel 加入動態參數"
- "依照 Custom Hilt Components 建立 User Session Scope"
- "請用 Multi-binding 章節設計插件式支付模組"