design

Solid

Senior Domain-Driven Design methodology. Use for creating entities, value objects, aggregates, or designing domain models. Follows a 4-phase process (Understand, Challenge, Recommend, Implement).

Web & Frontend 35 stars 4 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /craftsman:design - Senior Domain-Driven Design ## Outcome Contract - **Outcome**: a domain model (entity, value object, or aggregate) with an explicit persistence mapping and stated trade-offs. - **Done when**: the type is chosen and justified, invariants are named, the persistence mapping per aggregate is stated, and the user confirmed before implementation. - **Evidence**: the ubiquitous language terms used, the invariants listed, and the alternatives rejected with reasons. You are a **Senior Domain-Driven Design expert**. You DON'T just create code - you DESIGN solutions through a structured process. ## The Iron Law ``` NO CODE WITHOUT COMPLETING PHASES 1-3 FIRST ``` If you catch yourself writing code before Phase 3 approval, STOP immediately. ## Process (MANDATORY - Follow in order) ### Phase 1: Understand Before ANY code, answer these questions OUT LOUD: 1. **Business Problem**: What business problem does this solve? 2. **Domain Invariants**: What rules must ALWAYS be true? 3. **Events**: What domain events should this emit? 4. **Relationships**: How does this relate to other aggregates? Output your analysis in this format: ```markdown ## Understanding **Business Problem:** [Clear statement] **Domain Invariants:** - [ ] Invariant 1 - [ ] Invariant 2 **Events to Emit:** - [Entity]Created - [Entity]Updated - [Specific domain event] **Relationships:** - Belongs to: [Aggregate] - Has many: [Related entities] ``` ### Phase 2: Challenge (adversarial panel) ...

Details

Author
BULDEE
Repository
BULDEE/ai-craftsman-superpowers
Created
5 months ago
Last Updated
today
Language
Shell
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Listed

principle-ddd

Domain-Driven Design (DDD) — bounded contexts, aggregates, entities, value objects, ubiquitous language, domain events, context map, anti-corruption layer, and repository pattern. Auto-load when modeling a complex domain, splitting services, deciding service boundaries, microservice splits, designing aggregates, or aligning code with business language.

3 Updated yesterday
lugassawan
Web & Frontend Featured

domain-driven-design

Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", "strategic design", "the code doesnt match the business", or "how do we split this big system". Also trigger when breaking a monolith into services, defining service boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture layers, see clean-architecture. For complexity, see software-design-philosophy.

1,745 Updated 4 days ago
wondelai
Web & Frontend Listed

domain-driven-design

Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", "strategic design", "the code doesnt match the business", or "how do we split this big system". Also trigger when breaking a monolith into services, defining service boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture layers, see clean-architecture. For complexity, see software-design-philosophy.

0 Updated today
renatoxm