Skip to main content
skill CX Codex

domain-modeling · rsmdt — Claude Code skill: models and setup

The domain-modeling skill turns business rules into domain models, aggregate boundaries, and storage decisions. Use it when shaping a business model or changing schema consistency rules.

MIT ★ 587 updated 2026-10-26

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add rsmdt/the-startup
/plugin install team@the-startup
Open on GitHub

What domain-modeling does

The skill starts with business concepts and lifecycle states, separates core domain work from supporting concerns, then defines aggregates and enforceable invariants. It weighs strong consistency against eventual consistency and ties storage choices to how the system reads and writes data.

Its output covers bounded contexts, entities, value objects, aggregates, invariants, persistence, schema decisions, and a migration plan. For changes, it also considers compatibility, rollout, and rollback. Reference material under reference/ covers strategic and tactical patterns alongside consistency approaches. One firm constraint: business rules come before table and field mechanics, so storage convenience should not dictate domain correctness.

What it helps with

  • split a domain into bounded contexts
  • set aggregate boundaries around consistency needs
  • turn business rules into enforceable invariants
  • choose schema patterns for read and write behavior
  • plan schema changes with compatibility and rollback

Example prompts for the agent

  • Model the order and payment domain, including its invariants.
  • Set aggregate boundaries for a subscription service.
  • Plan a schema change that preserves compatibility and supports rollback.

How to install domain-modeling

1Plugin marketplace

/plugin marketplace add rsmdt/the-startup
/plugin install team@the-startup

This installs the whole team plugin with all its skills

2Skills CLI (Vercel)

npx skills add rsmdt/the-startup --skill domain-modeling -a claude-code

3Manually: put the files in place

~/.claude/skills/domain-modeling/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/domain-modeling/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about domain-modeling

How do I install domain-modeling in Claude Code?

Add the marketplace with /plugin marketplace add rsmdt/the-startup, then install the plugin with /plugin install team@the-startup.

What does domain-modeling do?

It connects business concepts and consistency rules to data structures, producing an implementation-ready domain model. It also lays out schema choices and an evolution plan.

How does the skill handle data consistency?

It defines aggregates and invariants, then helps decide where strong consistency is required and where eventual consistency is acceptable.

Source text

SKILL.md · MIT
---
name: domain-modeling
description: Unified domain and data modeling for business entities, invariants, schema design, aggregate boundaries, and evolution strategy. Use when designing business models, schema changes, bounded contexts, or consistency rules.
---

## Persona

Act as a domain-modeling specialist who aligns business concepts, data structures, and consistency boundaries into an implementation-ready model.

**Modeling Target**: $ARGUMENTS

## Interface

DomainModel {
  boundedContexts: string[]
  entities: string[]
  valueObjects: string[]
  aggregates: string[]
  invariants: string[]
  persistenceStrategy: string
  schemaDecisions: string[]
  migrationPlan: string[]
}

State {
  target = $ARGUMENTS
  concepts = []
  constraints = []
  model = {}
}

## Constraints

**Always:**
- Model business rules before table/field mechanics.
- Define aggregate boundaries around consistency and transactional requirements.
- Make invariants explicit and enforceable.
- Choose schema patterns based on query and write behavior.
- Include schema/version evolution strategy for non-trivial changes.

**Never:**
- Let storage convenience override domain correctness.
- Introduce cross-aggregate transactions without clear necessity.
- Add denormalization/caching without read/write rationale.

## Reference Materials

- `reference/strategic-patterns.md` — Bounded contexts, context mapping, ubiquitous language
- `reference/tactical-patterns.md` — Entities, value objects, aggregates, domain events, repositories
- `reference/consistency-strategies.md` — Transactional (ACID), eventual consistency, saga pattern

## Workflow

### 1. Discover Domain Concepts
- Identify business capabilities, entities, and lifecycle states.
- Separate core domain from supporting concerns.

### 2. Define Consistency Boundaries
- Define aggregates and invariants.
- Decide where eventual vs strong consistency is acceptable.

### 3. Map to Persistence
- Select relational/document/key-value patterns per access path.
- Define schema structure, constraints, and indexing strategy.

### 4. Plan Evolution
- Define migration and compatibility strategy for changes.
- Identify rollout and rollback considerations.

### 5. Deliver Model
- Provide domain model, schema decisions, and implementation guidance.

© Rudolf S. · MIT · rsmdt/the-startup

Similar skills

SKILL.md skills catalog →

domain-modeling by other authors comes first.

domain-modeling Matt Pocock The domain-modeling skill sharpens project terminology, maintains GLOSSARY.md, and records selected architecture decisions in ADRs. Use it while the domain model is changing. CX Codex +1 876,391installs domain-modeling Rohit Ghumare domain-modeling builds the project's shared vocabulary and context boundaries before code gets written, so the agent stops paraphrasing domain terms. Leaves a CONTEXT.md glossary behind. CX Codex +1 ★ 2,966repo stars dotnet-domain-modeling wshaddix dotnet-domain-modeling guides pure C# Domain-Driven Design modeling with entities, aggregate roots, value objects, and domain events, keeping business logic isolated from ORM concerns. CX Codex +1 539installs sales-pipeline-coverage-modeling Maya-Beth Finotti sales-pipeline-coverage-modeling models pipeline coverage ratios against sales quota using historical conversion rates. Helps RevOps and sales leaders identify pipeline gaps and plan deals. CX Codex +1 34,600installs startup-financial-modeling Seth Hobson startup-financial-modeling is a Claude Code skill that builds startup financial models with revenue, costs, cash flow, and scenarios for runway planning or fundraising. CX Codex +1 12,585installs powerbi-modeling official github The powerbi-modeling skill helps build and review Power BI semantic models, write DAX, and configure relationships. Use it when the model includes RLS or complex calculations. CX Codex +1 9,934installs financial-modeling claude-office-skills financial-modeling builds an integrated model across income statement, balance sheet and cash flow. Useful for budgeting, valuation and scenario planning. CX Codex +1 5,300installs content-modeling-best-practices sanity-io content-modeling-best-practices guides your agent through content type design in headless CMS: what to reference, what to embed, how to stop duplicating data. CX Codex +1 5,200installs

From the same set50

The whole set →
frontend-patterns The frontend-patterns skill gives Claude Code task-specific guidance for React UI work with shadcn/ui and Tailwind CSS. Use it for component choices, theming, forms, and accessibility. CX Codex +1 ★ 587repo stars agentic-patterns agentic-patterns fetches current LangChain, Vercel AI SDK and assistant-ui docs, then turns them into guidance for the agent, chat UI, RAG or tool-calling task you name. CX Codex +1 ★ 587repo stars code-quality-review code-quality-review evaluates code across eight dimensions, prioritizing correctness and security risks over cosmetic formatting. CX Codex +1 ★ 587repo stars project-discovery project-discovery is a Claude Code skill that maps a codebase’s structure, tech stack, entry points, and documentation mismatches against actual code. CX Codex +1 ★ 587repo stars user-research Plans user research studies, analyzes usability tests and customer interviews, and turns findings into prioritized product recommendations. CX Codex +1 ★ 587repo stars constitution This skill examines a codebase and drafts a project constitution grounded in its existing patterns. Use it to establish or revise governance rules with file-and-line evidence. CX Codex +1 ★ 587repo stars research-user research-user — a subagent for planning and conducting user research. Surfaces genuine user motivations and pain points before building features, when conversion drops, or when your team disagrees on what users actually need. CX Codex ★ 587repo stars design-visual design-visual — a design-systems subagent for Claude Code that establishes design tokens, component standards, and WCAG 2.1 AA accessibility foundations. CX Codex ★ 587repo stars

Project sponsors

Companies that keep this analytics open