Skip to main content

DDD Expert skill for Claude Code - guides users through Domain-Driven Design

Project description

DDD Skills

一套 Claude Code skills,透過對話式問答引導您完成 Domain-Driven Design 專案設計。包含兩個專業 skills:

  • strategic-design - DDD 戰略設計專家,引導完成 Bounded Context 識別與 Aggregate 切分
  • event-storming - Event Storming 引導專家,帶領完成 Event Storming 工作坊

安裝

使用 uvx 安裝:

# 互動式選擇(會提示選擇全域或本地)
uvx --from Claude-Code-Skill-DDD ddd-skill install

# 安裝到全域 (~/.claude/skills/),所有專案皆可使用
uvx --from Claude-Code-Skill-DDD ddd-skill install -g

# 安裝到當前專案 (./.claude/skills/),僅限此專案使用
uvx --from Claude-Code-Skill-DDD ddd-skill install -l

移除:

# 互動式選擇
uvx --from Claude-Code-Skill-DDD ddd-skill uninstall

# 移除全域安裝
uvx --from Claude-Code-Skill-DDD ddd-skill uninstall -g

# 移除本地安裝
uvx --from Claude-Code-Skill-DDD ddd-skill uninstall -l

使用方式

安裝後,在 Claude Code 中可以使用以下兩個 skills:

DDD 戰略設計

/strategic-design

引導流程:

  1. 領域探索 - 了解業務背景與核心問題
  2. Bounded Context 識別 - 劃分子領域邊界
  3. Aggregate 設計 - 定義聚合根與業務規則
  4. Entity / Value Object - 設計實體與值物件
  5. 通用語言 - 建立領域術語表

Event Storming 工作坊

/event-storming

引導流程:

  1. 選擇業務流程 - 確定要探索的核心業務流程
  2. 事件風暴 - 列出所有 Domain Events
  3. 時間線排序 - 將事件按時間順序排列
  4. 追溯原因 - 識別 Commands 與 Actors
  5. 識別 Aggregates - 找出處理 Commands 的聚合
  6. 外部系統與 Read Models - 識別系統邊界與查詢需求
  7. Hotspots 討論 - 標記待解決的問題

輸出

DDD 戰略設計輸出

完成問答後,自動生成以下 Markdown 文件結構:

ddd-docs/
├── README.md                 # 專案概覽
├── ubiquitous-language.md    # 通用語言術語表
└── contexts/
    └── {context-name}/
        ├── overview.md       # Context 概覽
        └── aggregates/
            └── {aggregate}.md

Event Storming 輸出

完成工作坊後,生成以下文件結構:

ddd-docs/
└── event-storming/
    ├── README.md              # Event Storming 總覽
    └── flows/
        └── {flow-name}.md     # 各業務流程的結果

專案結構

ddd-agent/
├── pyproject.toml
├── README.md
├── LICENSE
├── .github/
└── src/
    └── ddd_skill/
        ├── __init__.py
        ├── cli.py
        └── skills/
            ├── strategic-design/
            │   └── SKILL.md
            └── event-storming/
                └── SKILL.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_code_skill_ddd-1.0.4.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_code_skill_ddd-1.0.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file claude_code_skill_ddd-1.0.4.tar.gz.

File metadata

  • Download URL: claude_code_skill_ddd-1.0.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for claude_code_skill_ddd-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a5f5b0519c5db9a7c79a46371ed184c66c04ad4e1d4398cfa335f611d4f40539
MD5 c71b2dd1935d587765d80a43d451d6b7
BLAKE2b-256 e99259ae0ba92706c8fada7745f275a79762d23d1d026cf12d9062c2d651ab1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_skill_ddd-1.0.4.tar.gz:

Publisher: publish.yml on CodeMachine0121/Claude-Code-Skill-DDD

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_code_skill_ddd-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_skill_ddd-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8b9e6777ada85eda7416bec675293878f7c0751025857f63519b1a635f251a8a
MD5 3b134c924a8897883778cf78b97a3cb5
BLAKE2b-256 78d9f50cf2b087d2ce6fa5aa9d12164b1fbf3c5bc207ef98e41f36604702100b

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_skill_ddd-1.0.4-py3-none-any.whl:

Publisher: publish.yml on CodeMachine0121/Claude-Code-Skill-DDD

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page