domain-modeling
Model backend business behavior with explicit terminology, invariants, state transitions, ownership boundaries, persistence mapping, and concurrency rules.
от Dadmin88★ 52 звезды на GitHub
Установить domain-modeling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Domain Modeling
Use when backend behavior has meaningful business rules, lifecycle states, ownership, or invariants that should not be scattered across handlers and persistence code.
Procedure
- Extract the domain language from accepted requirements, existing behavior, data, and user-facing terminology. Resolve materially conflicting terms before encoding them.
- Identify the concepts with identity, the values without identity, the relationships between them, and the state transitions the system must permit or reject. Use entities, value objects, aggregates, or simpler structures only when those concepts actually clarify the model.
- Write the invariants in plain language before implementing them. Examples include uniqueness, ownership, allowed transitions, quantity limits, ordering constraints, and conditions that must hold atomically.
- Put rules near the model that owns them instead of duplicating them across routes, jobs, and controllers. Keep transport validation separate from domain invariants.
- Define transaction and concurrency boundaries. Decide what must change atomically, what can tolerate stale reads, and what conflicts require optimistic locking, serialization, retries, or another explicit strategy.
- Map the domain to persistence deliberately. Database tables, ORM records, external schemas, and cache representations may differ from the domain model; add translation where that separation protects the business rules.
- Make lifecycle and failure states explicit. Avoid impossible or ambiguous combinations of flags when a finite state or structured type would represent the rules more clearly.
- Test invariants and transitions directly, including invalid transitions, boundary values, duplicate/replayed operations, and concurrent behavior where relevant.
- If modeling reveals a durable service or bounded-context boundary change, hand that architectural decision to
agency-software-architectrather than silently redefining the system.
Decision rules
- Prefer the simplest model that makes invalid behavior difficult to represent.
- Do not apply Domain-Driven Design vocabulary ceremonially. A plain function or data structure is correct when the domain is simple.
- Do not let framework, ORM, or API conventions dictate business rules.
- Preserve existing accepted semantics unless a product or architecture owner approves a change.
Quality gate
The model is done when important business rules have one clear home, valid and invalid transitions are understandable, persistence and concurrency behavior preserve the invariants, and tests prove the rules rather than just the implementation shape.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл domain-modeling?
Model backend business behavior with explicit terminology, invariants, state transitions, ownership boundaries, persistence mapping, and concurrency rules.
Как установить скилл domain-modeling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл domain-modeling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
gtm-enterprise-account-planning
GitHubStrategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
gtm-partnership-architecture
GitHubBuild and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
landing-page-conversion-audit
GitHubAudit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
power-platform-architect
GitHubUse this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…