domain-model

domain-model is a skill for Claude Code from thoughtbot/rails-consultant. It costs 13 tokens per session (2,070 once invoked), scanned A, original, MIT.

A domain-modeling skill that turns a described business process into its terms, events, rules, aggregates, and contexts. A domain model describes how a business works before implementation details are chosen.

In plain words
What is it for?
Use it to document business vocabulary, process flows, rules, boundaries, and the concepts that must guide later implementation.
Why use it?
It keeps the model grounded in the business's own language instead of copying names or assumptions from existing code.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the rails-consultant plugin — 15 skills shipped together

Good fit Use it to document business vocabulary, process flows, rules, boundaries, and the concepts that must guide later implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thoughtbot/rails-consultant/domain-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thoughtbot/rails-consultant --skill domain-model
Clone the repo
git clone --depth 1 https://github.com/thoughtbot/rails-consultant

Made for: Claude Code.

Or install rails-consultant, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for domain-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/thoughtbot/rails-consultant/domain-model/github.svg)](https://agentmods.dev/skills/thoughtbot/rails-consultant/domain-model)
Your own site
<a href="https://agentmods.dev/skills/thoughtbot/rails-consultant/domain-model"><img src="https://agentmods.dev/badge/skills/thoughtbot/rails-consultant/domain-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for domain-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/thoughtbot/rails-consultant/domain-model"><img src="https://agentmods.dev/badge/skills/thoughtbot/rails-consultant/domain-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02070
Opus 5.5 $0.00005 $0.00828
Sonnet 5.5 $0.00003 $0.00414
Haiku 4.5 $0.00001 $0.00207

Measured today against content hash 566a11a124c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

domain-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/domain-model/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Domain model

The user describes how their business actually works. You come back with the concepts hiding in that description — and every one of them traces to something they said. An invented model is worse than none: it's fluent, confident, wrong, and in six months it's in the code under a name nobody in the business recognizes.

Five things come out, and nothing else:

Language The words the business uses, meaning what the business means.
Flow The events, in order. Past tense — something became true.
Rules Whenever X happens, we do Y. The branches and the exceptions.
Aggregates Whatever protects a rule and emits those events.
Contexts Where a word stops meaning one thing and starts meaning another.

No entities-versus-value-objects, no repositories, no schema, no class diagram — those are implementation, and this is what implementation gets checked against. Don't read code either. The code already chose names, and the ones it chose are the loudest thing in the room; read them and they end up in the model, at which point the model can only tell you what the code already says.

Workflow

  1. Capture the process in the user's words.
  2. Harvest the language before interpreting any of it.
  3. Interview in rounds, leading with a proposed model.
  4. Fill in the template and paste it whole for review — the only gate, and nothing reaches disk the user hasn't read in a message first.
  5. Write to docs/domains/<slug>.md and tell the user the path.

1. Capture the process

The process, if the user passed one: $ARGUMENTS

That may be prose or a path — a transcript, a ticket, meeting notes. Read the file if it's a path. If it's empty, ask them to walk you through how the process works today, including the parts done by hand and the exceptions, because the exceptions are where the domain lives.

Read the full file on GitHub · 99 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 99 lines · 13 tokens per session scan A 566a11a124c3

Subscribe to this mod's changes

domain-model is a skill published in the GitHub repository thoughtbot/rails-consultant (29 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 2,070 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

domain-model compared with skills from other repositories

domain-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
domain-modelthoughtbot/rails-consultantSkill29todayMITA13Claude Code
csiftwdhwg001/csiftSkill341mo agoMITA227Claude Code, Codex
recursive-decompositionmassimodeluisa/recursive-decomposition-skillSkill541mo agoMITA144Claude Code
flowsvictorgrein/spec-crewSkill88mo agononeA43Claude Code, Codex
core-buildvictorgrein/spec-crewSkill88mo agononeA38Claude Code, Codex
tools-expertvictorgrein/spec-crewSkill88mo agononeA50Claude Code, Codex
orchestration-governancevictorgrein/spec-crewSkill88mo agononeA27Claude Code, Codex