Skip to main content
在 Manus 中运行任何 Skill
一键导入

drupal-ddd

星标2
分支5
更新时间2026年5月6日 08:45

Apply Domain-Driven Design patterns in Drupal 11 custom modules. Covers strategic design (Bounded Contexts, Ubiquitous Language, Context Maps) and tactical patterns (Value Objects, Entities, Aggregates, Domain Services, Domain Events, Factories, Application Services, Anti-Corruption Layers). Includes the mandatory Repository Pattern for ALL entity interactions — code using EntityTypeManager, EntityStorage, entity queries, or CRUD must follow this architecture. Patterns adapted from "DDD in PHP" to Drupal Entity API. Use when designing module architecture, modeling domains, structuring business logic, or when terms like "value object", "aggregate", "domain event", "bounded context", "rich model", "anemic model", "application service", "domain service", "anti-corruption layer", "repository pattern", or "hexagonal architecture" come up. Also for code that loads, queries, saves, or deletes entities, splitting modules, avoiding fat controllers, integrating external APIs, or deciding where logic belongs.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
6 个文件
SKILL.md
readonly