docs-domain-modeling

docs-domain-modeling is a skill for Claude Code, Codex from kensaurus/cursor-kenji. It costs 54 tokens per session (1,015 once invoked), scanned A, original, MIT.

A workflow for defining the key terms and concepts in a software project so the user, coding agent, and codebase use the same language.

In plain words
What is it for?
Use it to create or refine a project glossary, settle terminology, and record the agreed meaning of important domain concepts.
Why use it?
It reduces confusion when one word has several meanings or when the agent keeps naming and interpreting things incorrectly.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kensaurus/cursor-kenji/docs-domain-modeling
Any agent
npx skills add kensaurus/cursor-kenji --skill docs-domain-modeling
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

Made for: Claude Code, Codex.

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 docs-domain-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/docs-domain-modeling.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/docs-domain-modeling)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/docs-domain-modeling"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/docs-domain-modeling.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,015 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00054 $0.01015
Opus 5 $0.00027 $0.00508
Sonnet 5 $0.00011 $0.00203
Haiku 4.5 $0.00005 $0.00102

Measured yesterday against content hash a6c1869d3920, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-domain-modeling 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 yesterday.

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/docs-domain-modeling/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 Modeling

Degree of freedom: MIXED. Which term is canonical [HIGH freedom]; CONTEXT.md shape, lazy create, and the three ADR gates [LOW freedom — run exactly].

A shared language between user, agent, and codebase pays off every session: consistent naming, fewer tokens spent describing concepts, and a codebase the agent can navigate by vocabulary. Adapted from mattpocock/skills (MIT).

This is the active discipline — challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallize. Merely reading CONTEXT.md for vocabulary is a one-line habit any skill can do; this skill is for changing the model, not consuming it.

How to reason

  1. Observe — the word just used, and what CONTEXT.md already pins
  2. Interpret — conflict, overload, or a genuine new concept
  3. Classify — challenge / sharpen / write the glossary entry / offer an ADR
  4. Capture — write the moment it crystallizes; do not batch

Worked example

Observe: user says "account" for both the billing Customer and the login User; CONTEXT.md is empty; accounts and auth.users both exist. Interpret: one word, two entities — the next session will keep writing the wrong one. Classify: sharpen now — Customer (billing party) vs User (login). Not an ADR: naming is still reversible. Write immediately: **Customer**: the billing party. _Avoid_: account, user

Self-critique before reporting

  • Domain language — definitions are not table or column names
  • Avoid filled — rejected synonyms are listed
  • Inline, not batched — each resolved term is in CONTEXT.md this turn
  • Right owner — INDEX.md / rejected alternatives → docs-adr; interview-the-user → workflow-grilling

File structure [LOW freedom — this shape]

/
├── CONTEXT.md            ← the glossary (create on first resolved term)
├── docs/adr/             ← architectural decision records
│   └── 0001-<dash-case-title>.md
└── src/

Read the full file on GitHub · 99 lines

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. yesterday First seen · 99 lines · 54 tokens per session scan A a6c1869d3920

Subscribe to this mod's changes

docs-domain-modeling is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 7d ago), licensed MIT. It adds 54 tokens to every session and 1,015 once invoked, about $0.0003 per session on Opus 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-09-03.