dykyi-roman/awesome-claude-code/ddd-knowledge
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
DDD architecture knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for Domain-Driven Design audits.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/ddd-knowledgeSKILL.md
DDD Knowledge Base
Quick reference for DDD architecture patterns and PHP implementation guidelines.
Core Principles
Layer Dependencies (Clean Architecture)
Rule: Dependencies point INWARD. Domain has ZERO external dependencies.
Layer Responsibilities
| Layer | Contains | Depends On | |
|---|---|---|---|
| Domain | Entities, Value Objects, Aggregates, Domain Services, Repository Interfaces, Domain Events | Nothing | |
| Application | Use Cases, DTOs, Application Services | Domain | |
| Infrastructure | Repository Implementations, External APIs, DB, Cache, Queue | Domain, Application | |
| Presentation | Controllers, Actions, Request/Response, CLI | Application |
Quick Checklists
Domain Layer Checklist
- [ ] No framework imports (Doctrine, Eloquent, Symfony)
- [ ] Entities have behavior, not just data
- [ ] Value Objects for domain concepts (Email, Money, Id)
- [ ] Repository INTERFACES defined here
- [ ] Enums for fixed value sets
- [ ] Domain Events for side effects
- [ ] No
public function set*()methods
Application Layer Checklist
- [ ] UseCases orchestrate, don't decide
- [ ] DTOs for input/output
- [ ] No business logic (if/switch on domain state)
- [ ] Transaction boundaries here
- [ ] No HTTP/CLI concerns
Infrastructure Layer Checklist
- [ ] Implements Domain interfaces
- [ ] No business logic in repositories
- [ ] External service adapters
- [ ] Caching, queuing implementations
Presentation Layer Checklist
- [ ] Validates input
- [ ] Maps to DTOs
- [ ] Calls UseCase
- [ ] Formats response
- [ ] No business logic
Common Violations Quick Reference
| Violation | Where to Look | Severity | |
|---|---|---|---|
use Doctrine\\ in Domain | Domain/*.php | Critical | |
use Illuminate\\ in Domain | Domain/*.php | Critical | |
use Infrastructure\\ in Domain | Domain/*.php | Critical | |
| Only getters/setters in Entity | Domain/Entity/*.php | Warning | |
=== 'pending' magic strings | Any PHP file | Warning | |
public function set*() | Domain/Entity/*.php | Warning | |
| Business logic in Controller | Presentation/*.php | Warning | |
| Business logic in Repository | Infrastructure/*.php | Warning |
PHP 8.4 DDD Patterns
Value Object
Entity with Behavior
Repository Interface
References
For detailed information, load these reference files:
references/layer-architecture.md— Detailed layer rules and boundariesreferences/domain-patterns.md— Entity, VO, Aggregate, Repository patternsreferences/application-patterns.md— UseCase, DTO, Command/Query patternsreferences/antipatterns.md— Common violations with detection patternsreferences/php-specific.md— PHP 8.4 specific implementations
Assets
assets/report-template.md— Structured audit report template
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationPassed, 73 of 100Effective. 1 run. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingskills/ddd-knowledge/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 25
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 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/dykyi-roman/awesome-claude-code/ddd-knowledge)