mcpField
D
domain-driven-design

domain-driven-design

github.com/robsonrungDevelopment258 installsUpdated 2d ago
Repository

About domain-driven-design

A Domain-Driven Design review skill for software changes, aimed at teams assessing domain boundaries and business models. It offers strategic and tactical review lenses and reports findings with file locations and proposed fixes.

Key features

  1. 01Review bounded contexts and integrations
  2. 02Inspect models and invariants
  3. 03Choose a review method by change
  4. 04Report findings with file and line

Use cases

  1. 01Assess cross-context or system integration changes
  2. 02Check aggregates, value objects, and domain events
  3. 03Add decisions to an existing decision record

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/robsonrung/rar-skills --skill domain-driven-design

After installing, type/domain-driven-designin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
context-patterns.md
decision-trees.md
strategic-review.md
tactical-review.md

Details

From the project README

Domain-Driven Design

Review the domain shape of a change through the lenses from Learning Domain-Driven Design (Vlad Khononov, O'Reilly). DDD works at two altitudes that compose:

  • Strategic (Parts I, III–IV) — where the boundaries are: bounded contexts, ubiquitous language, and how contexts integrate.
  • Tactical (Parts II–III) — how one context is built: the business-logic pattern, and whether aggregates/value-objects hold their invariants and publish events safely.

This is not a generic layering/cohesion check or trade-off/connascence audit (use architecture-lens), not macro style selection or service decomposition (use macro-architecture), and not a bug hunt (use code-review).

Select the review

ChangeRead
Moves or crosses a bounded context, changes business naming, or integrates another systemreferences/strategic-review.md
Structures business logic, aggregates, value objects, or domain events inside one contextreferences/tactical-review.md
Does bothStrategic review first, then the affected tactical rules; boundaries constrain the internal design

Apply only the relevant lenses. Report findings with file and line, the rule, and a proposed fix. A clean lens needs no invented finding.

Deriving the context map: the physical bounded contexts are usually the backend services/modules, each owning a model and a slice of the ubiquitous language (e.g. a transactional core service, an integration/sync service, an event worker, a shared kernel of domain entities, the frontend's own API-layer model). Derive this map from the repo's service/module layout before reviewing. A subdomain is a problem area (pricing, dispatch, compliance); a bounded context is the solution boundary where one model/language holds — they often align but not always.

Evidence and output

The selected method contains its standalone output format. Lead with the highest-impact finding and distinguish evidence from an unresolved domain decision.

Under design-gate, remain read-only and use the caller's canonical gate result. Preserve actual invariants and integration boundaries; cosmetic preferences are advisory.

Detailed references

In an interview, contribute the decision, rationale, constraints, and source references to the existing decision record. Standalone report and implementation mechanics do not apply at that stage.

Comments

Markdown supported