evanfang0054/agent-harness/domain-modeling
Claude Code and agent skill by evanfang0054/agent-harness
- community
Checking that the SKILL.md file is still in the repository.
Build and sharpen the project's domain model. Use when domain terminology needs defining or sharpening, an architectural decision crystallizes, or another skill needs to maintain the domain glossary during design work.
Install
npx vskill@latest install evanfang0054/agent-harness/domain-modelingSKILL.md
The same SKILL.md was published earlier as evanfang0054/agent-harness/domain-modeling.
Domain Modeling
Actively build and sharpen the project's domain model as you design. This is the active discipline — challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. Merely reading CONTEXT.md for vocabulary is not this skill — that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.
File structure
Single-context repos (default):
Multi-context repos (monorepo): a CONTEXT-MAP.md at root points to sub-contexts:
Create files lazily — only when you have something to write. If no `CONTEXT.md` exists when this skill is invoked, create it immediately with the scaffold header (# <Project> Domain Glossary). Do not ask the user "should I create it?" — just create it and start populating. The glossary is useful from the first term. If no docs/agent-harness/adr/ exists, create it when the first ADR is needed.
Lazy creation is the PRIMARY path, not a fallback. Most projects will get their CONTEXT.md this way — through brainstorming or other skills calling domain-modeling — rather than through harness-init. This ensures old projects (that never ran harness-init) still benefit from the feature.
During-session behaviors
Challenge against the glossary
When the user uses a term that conflicts with the existing language in CONTEXT.md, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?"
Sharpen fuzzy language
When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account' — do you mean the Customer or the User? Those are different things."
Discuss concrete scenarios
When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.
Cross-reference with code
When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?"
Update CONTEXT.md inline
When a term is resolved, update CONTEXT.md right there. Don't batch these up — capture them as they happen.
CONTEXT.md should be totally devoid of implementation details. Do not treat CONTEXT.md as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
Offer ADRs sparingly
Only offer to create an ADR when all three are true:
- Hard to reverse — the cost of changing your mind later is meaningful
- Surprising without context — a future reader will wonder "why did they do it this way?"
- The result of a real trade-off — there were genuine alternatives and you picked one for specific reasons
If any of the three is missing, skip the ADR.
CONTEXT.md format
Rules:
- Glossary and nothing else. No implementation details, no specs, no scratch.
- Every term has a definition +
_Avoid_aliases (disambiguate). ## Relationshipssection is optional, for term-to-term relationships.
ADR format
spec_topic: adrletsindex-knowledge-base.shauto-index intoadr/index.md.- Numbering starts at
0001. Find the next available number — never overwrite. status:proposed/accepted/superseded/deprecated.
Integration points
- brainstorming — calls this skill during clarifying questions when terms crystallize.
- writing-plans — reads
CONTEXT.mdfor vocabulary; plan tasks use domain terms. - requesting-code-review — checks diff uses
CONTEXT.mdterms. - harness-init — creates empty
CONTEXT.mdscaffold +docs/agent-harness/adr/.gitkeepfor new projects. - session-start hook — injects
CONTEXT.mdglossary summary into every new session (static segment, cache-friendly). - validate-handoff — advisory check: spec's
domain_termsfield should anchor toCONTEXT.mdheadings.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.dsh/agent-preset/skills/domain-modeling/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/evanfang0054/agent-harness/domain-modeling)