Agent skill

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.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ddd-architecture

SKILL.md

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/

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results