Skip to content
Back to skills

Nw Ddd Architect

ASecurity

DDD architect design-time mandates — the Fixture-Fanout Enumeration Mandate for shared-substrate per-caller migration (enumerate production callers plus fixture sites plus atomic bundle scope, mechanically enforced) that both the ddd-architect and its reviewer load by name

  • 636 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 9, 2026
ai-agentsrustshell

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add nWave-ai/nWave --skill nw-ddd-architect --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nw Ddd Architect?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nw Ddd Architect
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nwave-ai-nw-ddd-architect/badge)](https://www.skillsdirectory.com/skills/nwave-ai-nw-ddd-architect)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nw-ddd-architect
description: DDD architect design-time mandates — the Fixture-Fanout Enumeration Mandate for shared-substrate per-caller migration (enumerate production callers plus fixture sites plus atomic bundle scope, mechanically enforced) that both the ddd-architect and its reviewer load by name
user-invocable: false
disable-model-invocation: true
---

# DDD Architect — design-time mandates

The `nw-ddd-architect` agent and `nw-ddd-architect-reviewer` both instruct loading this file
by name (`~/.claude/skills/nw-ddd-architect/SKILL.md`) at DESIGN entry, before any DESIGN row
is authored. It carries the design-time mandates that must be in context BEFORE the domain
model is authored. Strategic/tactical/event-modeling knowledge lives in the sibling skills
(`nw-ddd-strategic`, `nw-ddd-tactical`, `nw-ddd-event-modeling`, `nw-ddd-eventsourcing`); this
core holds the cross-cutting enforcement mandates the agent spec references.

## Fixture-Fanout Enumeration Mandate

`F-DDD-ARCHITECT-SKILL-FIXTURE-FANOUT-GATE` (M51 R-M51-B closure, 2026-05-25) — a
mechanically-enforced design-time gate.

**When it fires.** A DESIGN row that migrates a **shared substrate per-caller** — an adapter /
ledger / plugin whose construction or seed surface is shared between production and test
composition. Trigger by either signal:
- the row's `Decision = PER_CALLER_MIGRATION`, OR
- the substrate type matches the pattern `[A-Z]\w+Ledger | [A-Z]\w+Adapter | [A-Z]\w+Plugin`
  AND is constructed in BOTH `src/` and `tests/` (for example, a shared persistence adapter).

**What the row MUST enumerate (with code-fact evidence and declared limits).** Three cells, all mandatory:
- **(a) Production Callers** — every production callsite, `file:line` for each.
- **(b) Fixture Sites** — every test-composition / helper / `conftest` entry that CONSTRUCTS or
  SEEDS the same substrate. This is the cell that is silently omitted — and its omission is the
  M50 defect class: the substrate ships GREEN against its own ATs and breaks sibling consumers
  at the crafter's empirical run.
- **(c) Atomic Bundle Scope** — the row explicitly states `production sites {N} + fixture sites
  {M} ship together in slice {S}`. Production sites + fixture sites that read/write the SAME
  substrate path MUST ship in ONE slice; splitting them across slices is the violation.

**Why (empirical anchors).** friction #42 `F-M40-SLICE-02C-N1-PRODUCTION-FIXTURE-NOT-ATOMIC`
(M50 crafter — 3 production callsites declared, 5+ fixture sites silently excluded → 12 sibling
regressions, REVERTED). A 5-instance META-pattern (#33 M34 + #38 M42 + #40 M45 + #42 M50 + #43
M49) all surfaced ONLY at the crafter's empirical execution despite architect residuality
passes — the Streetlight bias: M50 declared 7 sites where empirical run found 18 (2.5× undercount).
Independent inspection must distinguish real construction/seed sites from lexical matches.

**Evidence procedure + rejection rule (self-execution; the reviewer resolves independently).**
1. Read the DESIGN section for rows matching the substrate-migration trigger above.
2. For each, extract the `Production Callers:`, `Fixture Sites:` and `Atomic Bundle:` cells.
3. Resolve production and test references through `nw-code-analysis-port` first:
   - `code-fact query.callers-of SUBJECT --root PRODUCTION_ROOT`
   - `code-fact query.callers-of SUBJECT --root TEST_ROOT`
   Use bounded `query.reads-of` queries for known seed seams where relevant. Retain provider,
   confidence and trace; read the located sites to identify actual construction/seeding of
   the same substrate. Counts refer to those reconciled sites, not raw lexical hits.
   Whole change-scope and dynamic/indirect fanout are not certified by these queries. For
   unsupported facts, use bounded stable queries plus manual inspection and name the
   unresolved scope; neither `approx` nor `noisy` proves exhaustive closure. TextSearch
   fallback retains its noisy limitations; do not substitute shell counts for the port.
4. **REJECT (critical BLOCKER)** on a missing mandatory cell, a confirmed omitted or
   wrongly declared site, or an Atomic Bundle splitting production from fixtures.
   Unresolved coverage is an evidence gap, not a fabricated zero or a confirmed count
   mismatch; report it explicitly and do not claim the enumeration is verified.

**Defense-in-depth.** Complements F-D-09 (Forbidden-Import-Roots) + the runtime cascade-detector
arch test (registry-vs-frozenset symmetry). The architect declares the enumeration (principle 9);
the reviewer independently resolves and reconciles the sites (principle 6); neither
trusts the other's count or treats a provider envelope as a completeness certificate.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.