SkillsReviewed · techygarg

DDD Refiner

DDD Refiner is an AI assistant skill for developers setting shared domain design rules, but automatic use of those rules depends on a separate Lattice component. It guides a conversation that produces either targeted customizations or a complete replacement for the component's default domain-driven design principles.

Researched 17 Nov 2026

In short.

DDD Refiner is an AI assistant skill for teams documenting domain design rules, but applying its output automatically requires Lattice's separate domain-driven-design component. Its repository-aware interview covers nine areas, from aggregate boundaries to validation checks, and produces a project specification rather than application code. Small customizations inherit external defaults; complete replacements require maintaining every section. Execution, consumer compatibility and improvements to generated code have not been assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied skills/ddd-refiner folder: SKILL.md and assets/template.md at commit a772470df20aebdbfd9fa32c435901a876a750f0, together with the repository-root LICENSE notice outside that folder. Other Lattice components and host installation tooling are excluded. The template states that it reproduces the atom's default rules. The separate consumer implementation and canonical defaults.md file were not captured, so correspondence with that file and runtime loading behavior remain unverified. Nothing was executed; file writing, configuration preservation, section matching and downstream code behavior remain unverified.

The overview

Identity

DDD Refiner belongs to techygarg/lattice and consists of skills/ddd-refiner/SKILL.md and assets/template.md. The original folder at the captured revision is available at [https://github.com/techygarg/lattice/tree/a772470df20aebdbfd9fa32c435901a876a750f0/skills/ddd-refiner].

Domain-driven design, or DDD, organizes business software around business concepts and rules. This skill defines tactical modeling conventions: how business objects should behave, relate and persist. Its intended output is a standards document consumed by the separately named domain-driven-design atom.

Assessment

The strongest fit is a team that needs to make its domain modeling conventions explicit before asking an assistant to generate or review code. The template gives the conversation concrete decisions, examples and validation criteria.

Its distinction between targeted customization and complete replacement is useful: a team changing one convention can avoid copying every default. However, the separate consumer implementation is absent, so the documented loading behavior and resulting code compliance remain unverified.

Who it suits

Developers, technical leads and teams using DDD can use the interview to agree on aggregate boundaries, identity, business behavior and persistence conventions. Existing projects contribute repository examples; projects without code start from the defaults.

Beginners receive explanations and pseudocode, but still need help identifying business invariants: conditions that must remain true. Experienced developers can use the dependency guidance to keep decisions about entities, repositories and events consistent.

Capabilities

The interview covers aggregate design, entities, value objects, domain services, domain events, repositories, object creation, decomposition and validation. It also supports additional project sections, such as a shared terminology glossary.

The instructions cover revising an existing document, starting again or adding sections. They ask the assistant to inspect repository patterns, discuss one section at a time, flag dependent decisions and record final rules rather than conversation notes. If all defaults are accepted, no custom document is needed.

Using it

Requirements

The documented flow needs an assistant that can load the instructions, read repository files and write the resulting document and configuration. The companion assets/template.md file supplies the detailed interview guidance.

Automatic application of the output requires the separate domain-driven-design atom and its embedded defaults. The template states that it reproduces the atom's default rules. The separate consumer implementation and canonical defaults.md file were not captured, so correspondence with that file and runtime loading behavior remain unverified. Supported assistant hosts, model versions, installation mechanisms and runtime requirements are unspecified. The examples use language-independent pseudocode.

How it works

Overlay mode records only changed or added sections. According to the instructions, the consumer first reads its defaults, then replaces matching sections by exact heading and appends new sections. Each replacement must contain the complete section, rather than a partial edit.

Override mode replaces the defaults with a standalone specification. The output uses YAML frontmatter to identify the mode. The default destination is .lattice/standards/ddd-principles.md, configurable through paths.ddd_principles in .lattice/config.yaml.

Setup

Keep SKILL.md and assets/template.md together in their original relative structure. The captured originals are available at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/skills/ddd-refiner/SKILL.md] and [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/skills/ddd-refiner/assets/template.md]. Host-specific installation steps are not supplied.

The documented process starts by checking .lattice/config.yaml and any existing principles document, then inspecting repository patterns and choosing a mode. It ends by writing the specification and adding the configuration path when needed, while preserving existing configuration content.

Example use

A team accepting the defaults except for domain event payloads could choose overlay mode and discuss its required event fields. The resulting document would contain mode: overlay and a complete replacement for the section named 5. Domain Event Patterns.

The skill also calls for reviewing aggregate coordination when event conventions change. Other sections would continue to inherit defaults under the documented mechanism. This is an illustrative use case; no document was generated or integration executed.

Assessment & evidence

Limitations

The declared scope is tactical DDD. Context mapping, microservice topology and bounded-context integration fall outside it. Its rules are opinionated, and several principles are marked fixed despite the customization modes.

The template's example saves an aggregate before publishing its events, without showing a durable handoff or retry mechanism. Its reconstitution example bypasses creation-time validation. Reliable event delivery and handling invalid stored data therefore require separate design.

The instructions refer once to ten or more sections for override output, while the template defines nine default sections plus optional additions. This inconsistency needs attention when checking document completeness.

Design tradeoffs

Overlay mode reduces duplicated standards but ties omitted sections to external defaults. A change to those defaults could affect the effective rules without changing the project document. Reviewing the actual defaults alongside an overlay is therefore important.

Override mode makes the document self-contained but increases maintenance work. Exact heading matching also makes compatibility sensitive to naming changes. The template's three-to-five internal-entity warning is a modeling heuristic, with no supplied performance benchmark supporting it as a universal limit.

Alternatives

Teams that accept the embedded defaults can use them without creating a custom document. Teams with limited differences can choose an overlay, while those needing a standalone specification can choose override mode.

The Markdown template could also serve as a manual drafting checklist, although integration outside Lattice is undocumented. The supplied material does not support comparisons with competing skills, architecture tools or their prices.

Evidence

SKILL.md establishes the intended conversation, output modes and configuration changes. assets/template.md supplies the detailed rules, pseudocode and validation criteria. The root LICENSE establishes redistribution conditions.

These files describe intended behavior. They contain no runtime test results, usage studies, benchmarks or demonstrated consumer integration. The template states that it reproduces the atom's default rules. The separate consumer implementation and canonical defaults.md file were not captured, so correspondence with that file and runtime loading behavior remain unverified.

Access & freshness

Costs

The MIT license permits use and copying without a license fee. The supplied material provides no assistant pricing, subscription requirements, token estimates or operating cost measurements. Total usage cost is unknown; the license does not establish the cost of a chosen assistant or related tooling.

Rights

The repository-root MIT license names Rahul Garg as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It supplies the material without warranty.

The captured notice is available at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/LICENSE]. Separate terms for generated project documents or external components are not established by the supplied files.

Freshness

The source snapshot is tied to commit a772470df20aebdbfd9fa32c435901a876a750f0 and was captured on 17 November 2026. That identifies the document revision, rather than a release date or maintenance history. Later changes, current host compatibility and compatibility with other revisions of the consumer remain unknown.

Before adopting

Compare the template's fixed principles with the team's intended architecture, especially transaction boundaries, domain service purity and repository responsibilities. Obtain both skill files and preserve the MIT notice.

For an overlay, compare section headings with the actual consumer defaults. After an interview, review the complete document and configuration changes, then verify that the intended consumer reads the configured path and mode. Treat that integration and any improvement to generated code as unverified until demonstrated.

Evidence for this report

LICENSEnotice · checked 2026-11-17
skills/ddd-refiner/SKILL.mdselected · checked 2026-11-17
skills/ddd-refiner/assets/template.mdselected · checked 2026-11-17