/kenji:docs-domain-modelingfrom kenji skills
Builds a project's domain model by creating a CONTEXT.md glossary with canonical terms and rejected synonyms. Use when terminology is ambiguous or the agent uses wrong words.
Ships in kenji skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
| Skill | Owns |
|---|---|
| docs-domain-modeling (this) | A project's domain model: CONTEXT.md glossary and ubiquitous language |
docs-adr | Architecture Decision Records: what was decided, why, what was rejected |
Observe: user says "account" for both the billing Customer and the login User; CONTEXT.md is empty;
accountsandauth.usersboth 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
docs-adr; interview-the-user → workflow-grilling/
├── CONTEXT.md ← the glossary (create on first resolved term)
├── docs/adr/ ← architectural decision records
│ └── 0001-<dash-case-title>.md
└── src/
Create files lazily — only when there is something to write. CONTEXT.md is a
glossary and nothing else: no implementation details, no spec content, no
scratch notes.
**<Canonical term>**:
<One- or two-line definition in domain language, not implementation language.>
_Avoid_: <rejected synonyms, comma-separated>
CONTEXT.md, call it out immediately: "Your glossary defines
'cancellation' as X, but you seem to mean Y — which is it?"CONTEXT.md inline. Capture each resolved term the moment it is
resolved — don't batch.Only offer to create an ADR when all three hold:
ADR body: Status, Context (the forces), Decision (what and why), Consequences
(what becomes easier/harder). Number sequentially in docs/adr/.
Related: workflow-grilling (use both in one session to interview and capture the
language), design-prd, docs-coauthor.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
/audit-auth-flowsRead-only audit of app-layer auth: route×gate matrix, session lifecycle, OAuth, provider traps (getSession vs getUser, middleware-only gates, CVE-2025-29927). Use when "audit our auth" or "check middleware protection". RLS → plan-rls-audit.
/audit-backend-architectureRead-only backend-architecture audit and pattern advisor, gated by stack. Use when "audit backend architecture", "which pattern should I use", "am I over-engineering", or "sync vs event-driven". Enforced boundaries → enhance-arch-boundaries.
/audit-bundle-sizeAnalyse and shrink a web app's JavaScript bundle. Use when "reduce bundle size", "code splitting", "slow initial load", or "why is the bundle so big". Runtime → audit-performance.
Other plugins' skills for the same job