# Domain Modeling

Build the project's shared language and bounded contexts before writing code, so names...

- Repository: https://github.com/rohitg00/pro-workflow (2940 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-09-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add rohitg00/pro-workflow --skill domain-modeling -g -a claude-code -y`
Codex: `npx skills add rohitg00/pro-workflow --skill domain-modeling -g -a codex -y`
Cursor: `npx skills add rohitg00/pro-workflow --skill domain-modeling -g -a cursor -y`
Gemini CLI: `npx skills add rohitg00/pro-workflow --skill domain-modeling -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add rohitg00/pro-workflow`

## Description

Build the project's shared language and bounded contexts before writing code, so names stay consistent and the agent stops paraphrasing domain concepts. Produces a CONTEXT.md glossary and decision records. Use at the start of a project or feature, or when the codebase and the people describing it speak different languages.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# domain-modeling

Most misbuilds start as a language gap: the agent is dropped into a project
and left to infer the jargon, so it uses twenty words where the domain has
one. A shared language closes the gap. When code, conversation, and the model
all draw from the same vocabulary, names line up, navigation gets cheaper, and
the model spends fewer tokens reasoning because it has a tighter language to
reason in.

## Method

1. **Harvest the terms.** From the request, the codebase, and the user's own
   words, list the nouns and verbs that carry domain meaning - the concepts a
   newcomer would have to ask about. Prefer the user's word over a synonym you
   like better.
2. **Pin each one.** Write a one-line definition in the project's own language,
   not a dictionary definition. If two terms blur together, force the
   distinction or collapse them - ambiguity here becomes inconsistent names in
   code.
3. **Draw the boundaries.** Where the same word means different things in
   different parts of the system, that is a boundary. Name each context and
   note which terms belong to it. A term that means two things is two terms.
4. **Record the hard calls.** When a modeling choice was contested or will be
   questioned later, write a short decision record: context, choice,
   alternatives rejected, why.

## Outputs

- **`CONTEXT.md`** - the shared-language glossary. One term per line:
  `term - what it means in this project`. Grouped by bounded context when
  there is more than one. Point every future session at this file. On re-run,
  add new terms and update definitions that changed; do not rewrite the file
  wholesale.
- **Bounded-context sketch** - the contexts and which terms live in each,
  short enough to read in fifteen seconds.
- **Decision records** in `docs/decisions/NNNN-slug.md` for the contested
  modeling calls only. Read the directory first and number from the highest
  existing record so two records never collide. Skip the obvious ones.

## Guardrails

The rest: https://github.com/rohitg00/pro-workflow/blob/HEAD/skills/domain-modeling/SKILL.md
