Ddd Architecture

Domain-Driven Design architecture guide for this Angular project. Activates when discussing folder structure, file placement, domain organization, component organization, or creating new features/components/services.

majiayu000 c01f9cc 2 files · 2.0 KB Updated 567 repo stars

File contents

DDD Architecture (Project-Specific)

For complete architecture rules, read .github/instructions/architecture.instructions.md.

Quick Reference

src/app/features/{domain}/
  feature/   → Smart components (inject stores, orchestrate)
  ui/        → Dumb components (input/output only)
  data/
    models/         → TypeScript interfaces
    infrastructure/ → HTTP services
    state/          → NgRx Signal Stores
  util/      → Pure helper functions

Critical Rules

  • No barrel files (index.ts) — strictly prohibited
  • Each component in its own subfolderfeature/task-dashboard/task-dashboard.ts
  • No type suffixesTaskCard, not TaskCardComponent; TaskApi, not TaskApiService
  • kebab-case filestask-card.ts, task-store.ts
  • Domains don't import from other domains — shared code goes in src/app/shared/

majiayu000/claude-skill-registry-data/tree/main/development/ddd-architecture-danielsogl-copilot-workflow-dem commit c01f9cc649

Frequently asked questions

npx skillmds add majiayu000/ddd-architecture-2