architecture-compass
Architectural thinking partner for an existing repository — scans the codebase, conducts a structured interview, agrees on…
Facilitate a structured conversation to define DDD guardrails for domain design within a repository. Produces a formal ddd-principles.md document that the domain-driven-design atom will use as its override. Use when setting up domain design principles, defining aggregate rules,
Claude Code
$ npx -y skills add techygarg/lattice --skill ddd-refiner --agent claude-code
Codex
$ npx skills add techygarg/lattice --skill ddd-refiner -a codex -y
Cursor
$ npx skills add techygarg/lattice --skill ddd-refiner -a cursor -y
Gemini CLI
$ npx skills add techygarg/lattice --skill ddd-refiner -a gemini-cli -y
GitHub Copilot
$ npx skills add techygarg/lattice --skill ddd-refiner -a github-copilot -y
OpenCode
$ npx skills add techygarg/lattice --skill ddd-refiner -a opencode -y
Windsurf
$ npx skills add techygarg/lattice --skill ddd-refiner -a windsurf -y
name: ddd-refiner description: "Facilitate a structured conversation to define DDD guardrails for domain design within a repository. Produces a formal ddd-principles.md document that the domain-driven-design atom will use as its override. Use when setting up domain design principles, defining aggregate rules, or when the user says 'setup DDD', 'define domain rules', 'DDD principles', or 'help me define my domain patterns'."
This skill defines the *rules of domain crafting*, not the domain model itself. The domain model evolves through features; this document defines the guardrails. It covers DDD tactical patterns only -- not strategic DDD (no context mapping, no microservice topology, no bounded context integration).
Before starting the interview, check whether a custom document already exists:
1. Read `.lattice/config.yaml` -- does `paths.ddd_principles` point to a file? 2. If yes, read that file. Ask the user:
3. If no config or no existing document, proceed with the full interview flow.
Look for signals that inform the conversation:
Share relevant findings with the user at the start: "I noticed your project already has [X patterns]. I'll use that as context."
If the project is new with no code, proceed with pure defaults as the starting point.
The first decision in the conversation. Present the three options:
"How would you like to define your DDD principles?
1. **Customize specific sections** (overlay) -- Keep the defaults and change only what differs for your project. This produces a slim document. Most teams choose this. 2. **Define everything from scratch** (override) -- Walk through all sections and produce a comprehensive standalone document. 3. **Add project-specific sections only** (overlay with additions) -- Keep all defaults as-is and add new sections for your team's specific rules (e.g., ubiquitous language glossary, bounded context boundaries).
The defaults cover standard DDD tactical patterns well. Option 1 is recommended unless your domain modeling approach is fundamentally different."
Map the choice:
This should be fast. Many sections will be "keep as-is."
1. Present each section's default briefly (a 2-3 sentence summary, not full content). 2. Ask: "Does this match your project, or would you like to change it?" 3. If the user says it matches → skip it (section will NOT appear in the output). 4. If the user wants changes → dive into that section, discuss the specifics, record the changes. 5. At the end, ask: "Any sections you'd like to add that aren't in the defaults?" (e.g., ubiquitous language glossary, bounded context scope). 6. Only sections the user changed or added appear in the output document.
This is thorough. Every section gets attention and appears in the output.
1. Walk through every section in full detail. 2. User confirms, modifies, or replaces each section. 3. All sections appear in the output -- defaults for unchanged ones, user's version for changed ones.
Composable AI skills that teach assistants structured thinking — design-first, context-aware, and architecture-guided.
Architectural thinking partner for an existing repository — scans the codebase, conducts a structured interview, agrees on…
Facilitate a structured conversation to define architecture principles for a repository. Supports multiple architecture styles:…
Enforce architectural rules when generating or modifying code, and validate proposed designs before approval (design mode).…
Investigate, reproduce, and safely fix a bug with regression protection. Composes context, diagnosis, architecture, code quality,…
Facilitate a structured conversation to define clean code principles for a repository. Produces a formal clean-code.md document…
Apply clean code principles when generating or modifying implementation code. Enforces function focus, naming clarity, complexity…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.