Skip to content
Back to skills

Domain Modeling

ASecurity

Capture and sharpen a project's domain language, business invariants, reusable engineering rules, and durable decisions. Use when the user defines or changes terminology, business behavior, constraints, data meaning, project rules, architectural decisions, or when another skill needs to maintain project knowledge.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 19, 2026
ai-agents

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 19, 2026

npx -y skills add AnonymXXX/agent-harness-engineering --skill domain-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Domain Modeling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Domain Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anonymxxx-domain-modeling/badge)](https://www.skillsdirectory.com/skills/anonymxxx-domain-modeling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: domain-modeling
description: Capture and sharpen a project's domain language, business invariants, reusable engineering rules, and durable decisions. Use when the user defines or changes terminology, business behavior, constraints, data meaning, project rules, architectural decisions, or when another skill needs to maintain project knowledge.
---

# Domain Modeling

Analyze and sharpen project language and invariants without assuming they should be written down. Automatic durable knowledge capture must pass the Capture Gate in `~/.codex/docs/workflows/harness-engineering.md`.

## Explore First

Before proposing or capturing a term/rule, inspect:

- existing `AGENTS.md` files;
- project docs under `docs/`;
- existing glossary, ADR, product spec, engineering rules, or execution plans;
- code that proves or contradicts the stated behavior.

Surface contradictions clearly: "The docs say X, but the code does Y."

## Capture Candidates

Treat these as candidates for the Harness Capture Gate:

- canonical domain terms and overloaded terms;
- business invariants and user-visible rules;
- architecture decisions that are hard to reverse, surprising without context, and chosen after real tradeoffs;
- workflow constraints that prevent likely repeat mistakes;
- mechanically checkable rules that should become tests, scripts, lint rules, or CI checks.

Do not capture one-off preferences, temporary implementation details, speculative plans, obvious local facts, routine validation results, or secrets. Analysis may continue when the gate does not pass, but no file is written.

## Where To Capture

Prefer the project's existing structure. If none exists:

- `docs/product-specs/` for product requirements and user-visible behavior;
- `docs/engineering-rules/` for engineering constraints, invariants, and agent rules;
- `docs/exec-plans/` for larger or interruptible plans;
- `docs/references/` for external research;
- a small glossary file only when shared terminology is actually useful.

Keep `AGENTS.md` short: use it as a map to durable docs, not an encyclopedia.

## Inline Discipline

When a durable decision crystallizes during a task, apply all three Capture Gate conditions before writing it. Product or operational decisions require explicit user confirmation and imminent implementation use. If existing sources conflict, report the conflict and do not choose a canonical answer automatically.

When a rule can be checked mechanically, consider a scoped executable check. Explain why none was added only when it materially affects the task or the user asks.

Files in this skill

  • LICENSE.txt1.1 KB
  • SKILL.md2.5 KB
  • agents/openai.yaml214 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.