ddd-architect

Enforce DDD architecture and DAL separation in codebases.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/u9401066/copilot-capability-manager --skill ddd-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ddd-architect
Source: https://github.com/u9401066/copilot-capability-manager/tree/main/.claude/skills/ddd-architect
Command: npx skills add https://github.com/u9401066/copilot-capability-manager --skill ddd-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps ensure code adheres to Domain-Driven Design principles and proper DAL separation, preventing architectural violations and enabling scalable design.

Core Features & Use Cases

  • New feature scaffolding: auto-generate DDD folder structure (Domain, Application, Infrastructure)
  • Architecture violation detection: warn about improper dependencies
  • Dependency direction validation: ensure Presentation → Application → Domain, and Infrastructure → Domain

Quick Start

When scaffolding a new feature like Order, run the DDD architect to generate a standard structure under src/

Frequently Asked Questions about ddd-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce Domain-Driven Design architecture in my codebase?

Domain-Driven Design architecture is enforced through automated validation of layer separation, dependency direction checks, and structural patterns. This Skill detects violations like improper dependencies between Presentation, Application, Domain, and Infrastructure layers, helping maintain clean architecture as code evolves.

Can I auto-generate DDD folder structure for new features?

Yes, the Skill scaffolds standard DDD structure automatically when creating new features or modules. It generates organized folders for Domain, Application, and Infrastructure layers, plus Entities, ValueObjects, and Repositories, reducing manual setup time and ensuring consistency.

What is DAL separation and why does it matter?

Data Access Layer (DAL) separation isolates database logic from domain logic, enforcing that Infrastructure depends on Domain, never the reverse. This prevents tight coupling, improves testability, and ensures your domain model stays independent of persistence implementation details.

How do I validate dependency direction in my architecture?

Dependency direction validation checks that your codebase follows the correct flow: Presentation → Application → Domain, and Infrastructure → Domain. The Skill warns about violations during architecture reviews and new feature creation, catching problematic dependencies early.

When should I run architecture checks on my project?

Run architecture validation during new feature scaffolding and architecture reviews to prevent violations from accumulating. Early detection catches improper dependencies before they become entrenched, keeping your codebase aligned with DDD principles and scalable design.

What prerequisites do I need for DDD architecture enforcement?

Your codebase should have a clear folder structure and defined layers (Domain, Application, Infrastructure, Presentation). The Skill works best when you've identified domain artifacts like Entities, ValueObjects, and Repositories that need architectural validation.