domain-modeling-skill

domain-modeling-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 38 tokens per session (2,527 once invoked), scanned A, original, Apache-2.0.

A method for defining a project's core concepts, terminology, and architectural decisions. It keeps a shared glossary and records important decisions in files such as CONTEXT.md and ADRs.

In plain words
What is it for?
Use it while designing a domain model, settling terminology, exploring edge cases, checking code against agreed concepts, and recording hard-to-reverse decisions.
Why use it?
It exposes vague or conflicting terms before they cause misunderstandings in code and documentation. It also keeps the written model aligned with how the software actually works.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions subagents; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - [Ordering](./src/ordering/CONTEXT.md) — receives and tracks customer orders.

Good fit Use it while designing a domain model, settling terminology, exploring edge cases…

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template
agentmods
npx agentmods add skills/darellchua2/opencode-config-template/domain-modeling-skill

Made for: OpenCode.

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-modeling-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/domain-modeling-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/domain-modeling-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/domain-modeling-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/domain-modeling-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,527 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.00038 $0.02527
Opus 5 $0.00019 $0.01264
Sonnet 5 $0.00008 $0.00505
Haiku 4.5 $0.00004 $0.00253

Measured 3d ago against content hash 0407f47e7cc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

domain-modeling-skill 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 3d ago.

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.

opencode_app/.opencode/skills/domain-modeling-skill/SKILL.md · 263 lines

How it starts

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

What I do

I 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. I am for when you're changing the model, not just consuming it.

  1. Challenge terms against the existing glossary and surface contradictions immediately
  2. Sharpen fuzzy language by proposing precise canonical terms
  3. Stress-test with scenarios that probe edge cases and force precision about concept boundaries
  4. Cross-reference with code — when the user states how something works, verify the code agrees
  5. Update CONTEXT.md inline — capture resolved terms immediately, never batch them
  6. Offer ADRs sparingly — only when a decision is hard-to-reverse, surprising, and a real trade-off

I am the docs engine (model-invoked). grill-with-docs-skill pairs me with grilling-skill so docs are captured during the interview.

When to use me

Use this skill when:

  • The user introduces or disputes domain terminology
  • A ubiquitous language needs to be established or sharpened
  • An architectural decision has just been made and may warrant an ADR
  • Another skill (e.g. grill-with-docs-skill) delegates doc maintenance during a session
  • Code contradicts the user's stated understanding of how the system works

Trigger phrases:

  • "let's define our terms"
  • "that should be an ADR"
  • "update CONTEXT.md"
  • "is that the right word for"
  • "capture this decision"
  • "ubiquitous language"

File Structure

Single-context repos (most repos)

/
├── CONTEXT.md
├── docs/
│   └── adr/
│       ├── 0001-event-sourced-orders.md
│       └── 0002-postgres-for-write-model.md
└── src/

Multi-context repos

If a CONTEXT-MAP.md exists at the root, the repo has multiple contexts. The map points to where each one lives:

Read the full file on GitHub · 263 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. 3d ago First seen · 263 lines · 38 tokens per session scan A 0407f47e7cc1

Subscribe to this mod's changes

domain-modeling-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 2,527 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens