dabydat/alpha-omega/nestjs-ddd-patterns
Claude Code and agent skill by dabydat/alpha-omega
- community
Checking that the SKILL.md file is still in the repository.
Domain-Driven Design patterns for NestJS microservices. Covers aggregates, value objects, entities, domain events, and bounded contexts. Use when creating domain models, implementing DDD patterns, designing bounded contexts, or working with DDD aggregates.
Install
npx vskill@latest install dabydat/alpha-omega/nestjs-ddd-patternsSKILL.md
NestJS DDD Patterns
Domain-Driven Design models business reality accurately in code. The code should reflect the business language that domain experts use.
Production patterns for: Aggregates, value objects, entities, domain events, bounded contexts
Quality gate (Backend Dev): Functions max 30 lines, files max 200 lines.
Core Principle: Domain First
See references/why-ddd.md for the INCORRECT (data-first) vs CORRECT (domain-first) comparison.
Aggregate Root
See references/aggregate-root.md for the aggregate structure (factory, toPrimitives, state transitions, events) and the CORRECT vs INCORRECT comparison.
Value Objects
See references/value-object.md for the base class, and the Amount, Clabe, Rfc/Curp examples.
Domain Events
See references/domain-events.md for the event structure, publishing, and naming (CORRECT vs INCORRECT).
Domain Exceptions
See references/domain-exceptions.md for the DomainException hierarchy and the global exception filter.
Bounded Contexts
See references/bounded-contexts.md for the microservices architecture example.
Anti-Patterns
See references/anti-patterns.md for the three ❌ examples (anemic domain model, primitive obsession, god aggregate).
Rule of thumb: If you can't fit all invariants in your head, the aggregate is too big.
Quality Checklist
Related Skills
nestjs-cqrs-commands- Command handlers that use aggregatesnestjs-cqrs-queries- Query handlers that read aggregatesnestjs-repository-pattern- Persisting aggregatesnestjs-guards-filters- Exception filters for error handlingnestjs-event-driven-architecture- Kafka event publishingnestjs-mappers- Converting between domain and DTOs
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nestjs/nestjs-ddd-patterns/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dabydat/alpha-omega/nestjs-ddd-patterns)