skills/igmarin/rails-agent-skills/ddd-ubiquitous-language

ddd-ubiquitous-language

Installation
SKILL.md

DDD Ubiquitous Language

Use this skill when the domain language is fuzzy, overloaded, or inconsistent.

Core principle: Agree on business language before choosing models, services, or boundaries.

Quick Reference

Topic Rule
Canonical term Pick one business term for one concept
Synonyms Capture them, then choose one preferred term
Overloaded words Flag them early; split meanings explicitly
Naming Prefer business meaning over technical shorthand
Output Return a usable glossary, not abstract theory

HARD-GATE

DO NOT introduce DDD terminology without grounding it in the user's real domain language.
DO NOT rename code concepts until the glossary is explicit enough to justify the change.
ALWAYS flag overloaded or conflicting terms before recommending modeling changes.

When to Use

  • The user uses multiple words for what might be the same business concept.
  • A feature or bug discussion is blocked by unclear naming.
  • You need a glossary before doing boundary review or Rails modeling.
  • Next step: Chain to ddd-boundaries-review when the glossary reveals multiple contexts, or to ddd-rails-modeling when the main problem is tactical modeling in Rails.

Process

  1. Collect terms: Pull candidate nouns, roles, states, events, and actions from the request, PRD, tickets, existing docs, and code names.
  2. Group synonyms: Identify words that appear to mean the same thing and words that are overloaded across multiple meanings.
  3. Choose canonical terms: Prefer the clearest business term; keep aliases only as migration notes or search hints.
  4. Define each term: Write one short definition, expected invariants, and related concepts.
  5. Flag ambiguity: List terms that need user confirmation or that likely indicate multiple bounded contexts.
  6. Hand off: Continue with ddd-boundaries-review, ddd-rails-modeling, or create-prd / generate-tasks depending on the workflow stage.

Output Style

When using this skill, return:

  1. Canonical term
  2. Aliases / conflicting words
  3. Definition
  4. Key invariant or business rule
  5. Likely related context
  6. Open questions

Good Output Shape

| Canonical term | Aliases | Definition | Invariant | Context |
|----------------|---------|------------|-----------|---------|
| Reservation | Booking, Hold | A customer claim on an inventory slot | Must expire or be confirmed | Fleet Booking |

Common Mistakes

Mistake Reality
Keeping every synonym alive forever Pick one preferred business term or the codebase stays muddy
Using technical class names as if they were domain truth Domain language should come from the business, not from current code accidents
Jumping to aggregates before agreeing on words Bad language produces bad boundaries and bad models
Treating all ambiguity as harmless Overloaded terms usually hide design problems

Red Flags

  • One term means different things in different screens or services
  • Class names and user-facing language disagree heavily
  • People say "basically the same thing" instead of naming the distinction
  • The proposed glossary uses mostly technical jargon instead of business language

Integration

Skill When to chain
create-prd When a PRD needs cleaner business language before approval
ddd-boundaries-review When the glossary suggests multiple bounded contexts or language leakage
ddd-rails-modeling When the terms are clear enough to decide entities, value objects, and services
rails-architecture-review When naming confusion already appears in the code structure
Weekly Installs
1
GitHub Stars
14
First Seen
Mar 29, 2026