j5ik2o/okite-ai/domain-building-blocks
Claude Code and agent skill by j5ik2o/okite-ai
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
DDDのビルディングブロック(値オブジェクト、エンティティ、集約、ドメインサービス)の設計ガイド。 ドメインモデリング、エンティティ設計、集約境界の決定、値オブジェクトの実装時に使用。 トリガー:「値オブジェクトを作りたい」「集約の設計」「ドメインサービスの書き方」 「エンティティと値オブジェクトの違い」「DDDで実装したい」等のドメインモデリング関連リクエストで起動。
Install
npx vskill@latest install j5ik2o/okite-ai/domain-building-blocksSKILL.md
ドメインモデルのビルディングブロック
このガイドは特定のプログラミング言語に依存せず、どの言語でも適用可能な原則を説明しています。コード例はTypeScriptで示していますが、概念は他の言語にも応用できます。
ドメイン駆動設計では、適切なドメインモデルのビルディングブロックを使うことが重要です。
値オブジェクトの活用
値オブジェクトは、以下の特性を持つオブジェクトです:
- 識別子を持たない: 属性のみで同一性を判断
- 不変: 一度作成したら変更できない
- 自己完結的: 他のエンティティへの参照を持たない
エンティティと集約
エンティティと集約は以下の原則に従って設計します:
- エンティティ:
- 識別子を持つ
- ライフサイクルを持つ
- その状態が時間とともに変化する
- 集約:
- トランザクション整合性の単位
- 1つの集約ルートと複数の子エンティティや値オブジェクトから構成
- 外部からは集約ルートを通じてのみアクセス可能
ドメインサービス
複数のエンティティや値オブジェクトにまたがる操作はドメインサービスとして実装します:
関連スキル(併読推奨)
このスキルを使用する際は、以下のスキルも併せて参照すること:
aggregate-design: ビルディングブロックを束ねる集約の設計ルールdomain-model-first: テストファーストでビルディングブロックを実装する開発手順parse-dont-validate: 値オブジェクトを型レベルで設計するパターンdomain-primitives-and-always-valid: ドメインプリミティブとスマートコンストラクタの設計
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/domain-building-blocks/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 2
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/j5ik2o/okite-ai/domain-building-blocks)