mit einem Klick
ddd-architect
Assist with DDD architecture design and compliance checking. Triggers: DDD, 架構, architecture, 領域設計, domain design.
Menü
Assist with DDD architecture design and compliance checking. Triggers: DDD, 架構, architecture, 領域設計, domain design.
Audit and auto-update skills, hooks, instructions, and bylaws to stay in sync with codebase changes. Triggers: self-update, 自主更新, audit skills, 審計技能, update instructions, 更新指令, sync hooks, 同步 hooks.
Assist with Frontend DDD architecture design, component organization, and testing. Triggers: frontend, 前端, react, component, 元件, vitest.
Generate test files for new code including unit, integration, and e2e tests. Triggers: test, 產生測試, generate test, 測試, 寫測試.
Automatically update CHANGELOG.md based on code changes following Keep a Changelog format. Triggers: changelog, 更新 changelog, update changelog, 變更紀錄.
Proactively suggest and execute code refactoring to maintain clean architecture. Triggers: refactor, 重構, 優化程式碼, clean up, 整理程式碼.
Perform code review with DDD architecture compliance check. Triggers: review, 程式碼審查, code review, 審查, CR.
| name | ddd-architect |
| description | Assist with DDD architecture design and compliance checking. Triggers: DDD, 架構, architecture, 領域設計, domain design. |
協助 DDD 架構設計與合規性檢查。
驗證依賴方向:
interface → application → domain
↓
infrastructure
為新功能建議正確的檔案位置:
| 類型 | 位置 |
|---|---|
| 實體 | core/domain/entities.py |
| 值物件 | core/domain/value_objects.py |
| 用例 | core/application/processing/ |
| 外部服務 | core/infrastructure/ |
| API | core/interface/ |
偵測並警告:
🏗️ DDD 架構檢查
📁 掃描範圍:core/
## 依賴方向 ✅
└─ domain → 無外部依賴
└─ application → domain ✓
└─ infrastructure → domain ✓
## 違規偵測 ⚠️
└─ core/domain/entities.py:15
└─ 發現導入 `from core.infrastructure.llm import...`
└─ 建議:移至 application 層或使用依賴注入
## 建議
1. 在 domain 層定義介面 `ILLMService`
2. 在 infrastructure 層實作
3. 在 application 層注入
需要我協助修正嗎?