smithery/u9401066

ddd-architect

DDD 架構輔助與檢查。觸發:架構、新功能、新模組、domain、structure。

Installation

$ npx skills add smithery/u9401066 --skill ddd-architect

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/u9401066 · top by installs.

npx skills add smithery/u9401066

Browse all from smithery/u9401066

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,404 B
  • docs SUMMARY.md 112 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

DDD 架構輔助技能

觸發:新增功能/模組、架構檢查、建立新檔案時自動檢查

工具:grepsearch(搜尋 import)、listdir、readfile、createfile


層級結構

src/domain/ → entities, valueobjects, aggregates, repositories(介面), services src/application/ → usecases, dtos src/infrastructure/ → persistence, services(外部服務實作) src/interfaces/ → api, mcp

依賴規則

✅ Presentation → Application → Domain ← Infrastructure(實作介面) ❌ Domain → Infrastructure, Domain → Application, Application → Presentation

違規檢查

違規 修復
Domain → Infrastructure 使用 Repository 介面
直接 SQL 在 Domain 抽出到 Repository
Application → DB 透過 Repository

檢查方法:grep_search(query="from.infrastructure.import", isRegexp=True, includePattern="/domain//*.py")

工作流

A: 新功能腳手架 — 依序建立 Domain(entity+repo介面) → Application(use_case+dto) → Infrastructure(repo實作) B: 架構違規檢查 — grep Domain 層的 Infrastructure import → 有結果即違規