| name | ddd-arch-planner |
| description | Multi-review architecture planning skill for DDD / Clean Architecture .NET projects. Produces a versioned, implementation-ready architecture document through a structured review pipeline (database â security â backend), culminating in a Claude Codeâready implementation plan with Definition of Done, migration gates, and security debt tracking.
ACTIVATE at the END of an architecture design session when the user asks for: "implementĂĄciĂłs terv", "Claude Code-nak szĂĄnt terv", "implementation plan", "generĂĄld le a tervet", "kĂ©szĂtsd el a tervdokumentumot", "következĆ sprint architektĂșra", "architecture phase plan", "next phase architecture", "design + review + DoD", or any variant of "make it ready for implementation" / "következĆ fĂĄzis terve".
Do NOT activate for single-question architecture answers â only for the full multi-review pipeline that produces a shippable implementation document.
|
DDD Architecture Planner
Structured multi-review pipeline that turns an architecture discussion into a
versioned, implementation-ready document for Claude Code execution.
1. When to use this skill
You are in the right place when ALL of these are true:
- A new backend feature / phase / module is being designed
- The stack is .NET (Clean Architecture + DDD + CQRS) with PostgreSQL
- The output will be handed to Claude Code (or another agent) for implementation
- The user wants a DoD checklist, migration plan, and security gate list
You are in the wrong place if:
- The user wants a quick answer to a single design question â answer directly
- The stack is not .NET / DDD â adapt or use
/senior-architect instead
2. The pipeline
Phase 0 â Context load
ââ Read project knowledge, existing architecture docs, security debt register
Phase 1 â v1 Draft
ââ Domain model · DB schema · API surface · Value Objects
Output: {document}_v1.md
Phase 2 â Database review
đ Load: references/sub-database-designer.md + references/sub-database-schema-designer.md
ââ Findings â v2 delta table
Output: {document}_v2.md
Phase 3 â Security review
đ Load: references/sub-senior-security.md
ââ Findings â v3 delta table (CRITICAL / HIGH / MEDIUM)
Output: {document}_v3.md
Phase 4 â Backend review
đ Load: references/sub-senior-backend.md
[optional â trigger if >= 1 HIGH finding remains after v3]
ââ Findings â v4 delta table
Output: {document}_v4.md
Phase 5 â Final document assembly
ââ Cumulative Finding Summary · DoD checklist · Security debt table · Roadmap · Status banner
Sub-skill betöltési szabåly:
- Minden fåzis elején olvasd be a megjelölt referencia fåjlt
- A fĂĄjl tartalmĂĄt alkalmazd a jelenlegi tervdokumentumra mint analitikai lens
- Ne töltsd be az összes sub-skill fĂĄjlt egyszerre â csak a fĂĄzis-specifikusakat
- Finding ID formĂĄtum:
[PREFIX]-NN · đŽ/đ /𥠷 [terĂŒlet] · [problĂ©ma] · [javĂtĂĄs]
- DB review prefix:
DB-NN
- Security review prefix:
SEC-NN
- Backend review prefix:
BE-NN
Rule: Each phase produces a delta table before rewriting. Never silently absorb findings.
3. Document structure (every version)
# {Project} â {Phase Name}
## {Subtitle}
> VerziĂł: vN.N â {date}
> StĂĄtusz: {DRAFT | REVIEW | IMPLEMENTĂCIĂRA KĂSZ}
> Blokkoló feltétel: {previous phase DoD}
> KumulĂĄlt review: {skill list} â vN
---
## 1. KumulĂĄlt Finding ĂsszesĂtĆ (v1 â vN)
## 2. Domain modell
## 3. DB schema (DDL + ERD mermaid)
## 4. API surface
## 5. EF Core konfigurĂĄciĂł
## 6. Definition of Done
### Migration gates
### Domain gates
### API + validation gates
### Security gates
### ĂsszesĂtett (existing tests green + new test count target)
## 7. Security adĂłssĂĄg stĂĄtusz
## 8. Mi jön utåna (roadmap tåblåzat)
4. Finding table format
Every review phase appends a new row to the KumulĂĄlt Finding ĂsszesĂtĆ:
| Review | Finding-ek | Legfontosabb javĂtĂĄs | Effort delta |
|---|
v1 â /database-designer + /database-schema-designer â v2 | Nc + Nh + Nm | ... | +N nap |
v2 â /senior-security â v3 | Nc + Nh + Nm | ... | +N nap |
v3 â /senior-backend â v4 | Nc + Nh + Nm | ... | +N nap |
| Ăsszesen | totals | | N fejlesztĆi nap |
Individual findings use this format (append after summary table):
| ID | SĂșly | TerĂŒlet | ProblĂ©ma | vN javĂtĂĄs |
|---|
Severity icons: đŽ CRITICAL · đ HIGH · đĄ MEDIUM · đą LOW
5. Definition of Done checklist rules
- Every DoD item is a
- [ ] checkbox
- Group by: Migration gates · Domain gates · API gates · Security gates · ĂsszesĂtett
- Security gates are deployment blockers â mark them explicitly
- ĂsszesĂtett must always include:
- [ ] MeglĂ©vĆ {N} teszt zöld
- [ ] {Phase} Ășj tesztek: >= {N} db
- [ ] 0 build warning
- [ ] ConfigureAwait(false) minden production async call-ban
- [ ] dotnet list package --vulnerable â 0 high/critical
6. Security debt table format
| ID | Tétel | Previous phase | This phase | Marad |
|---|
| P1-3 | AggregateSnapshot | â | â
T-xx | â |
| P1-4 | Outbox Pattern | â | â | Phase N+1 |
7. Status banner rules
DRAFT â v1 only, no reviews completed
REVIEW â at least one review pass done, findings pending absorption
IMPLEMENTĂCIĂRA KĂSZ â all findings absorbed, DoD complete, no open CRITICAL/HIGH
Final line of every completed document:
*{Project} · {Phase} vN.N · {skill list} reviewed · {date}*
*StĂĄtusz: IMPLEMENTĂCIĂRA KĂSZ â N finding beĂ©pĂtve, minden döntĂ©s lezĂĄrva*
8. Claude Code handoff section
When the user requests the Claude Code implementation plan, append this section:
---
## 9. Claude Code implementĂĄciĂłs csomag
### Végrehajtåsi sorrend
| Nap | Feladat | Track | FĂŒggĆsĂ©g |
|-----|---------|-------|----------|
| 1 | ... | A | â |
### Agent utasĂtĂĄs
> "ImplementĂĄld a {Phase} tervdokumentum szerint a következĆ feladatokat:
> Track A: {list}
> Track B: {list}
> DoD checklist: {document}#{section}
> BlokkolĂł gate-ek: {migration list}
> Minden feladat utĂĄn futtasd: dotnet test && dotnet build"
### Kockåzatok és mitigåciók
| KockĂĄzat | ValĂłszĂnƱsĂ©g | HatĂĄs | MitigĂĄciĂł |
|----------|-------------|-------|-----------|
9. Golden rules (enforce in every review pass)
- No public setters on aggregates
- Business logic in Domain only â never in handlers
- Every mutation raises a domain event
PopDomainEvents() + DispatchAsync() at end of every mutating handler
- Every list query through
Ardalis.Specification
Result<T> return on every handler
ConfigureAwait(false) on every production async call
AsNoTracking() on every read-only method
- No
BuildServiceProvider() in DI setup
- No eager-loaded navigation properties on aggregate roots
- Security gates are deployment blockers â not afterthoughts
EXPLAIN ANALYZE on every new query endpoint â no Seq Scan
10. Adapting for non-SpaceOS projects
If project context is not already loaded, ask for:
- Solution structure (project names, layer names)
- ORM + DB (EF Core version, PostgreSQL / SQL Server)
- Approved package list
- Existing test count
- Frozen architectural decisions
- Open security debt items
Then proceed with the same pipeline â structure and review pattern are universal.
Reference files
references/review-checklist.md â 38-rule review checklist used in each pass
references/finding-severity.md â severity classification guide