Aidlc domain modeling skill

From guyon-it-consulting/kiro-ui · View interactive version

Aidlc domain modeling skill is an AI agent skill from the GitHub repository guyon-it-consulting/kiro-ui. Identify and define the core domain concepts of a system — components, entities, relationships, ownership boundaries, and the language the system speaks. Applies wherever domain structure, entity ownership, or business capability boundaries are designed or reviewed.

How to use this skill

Skill file

Domain Modeling

Purpose

Identify the logical building blocks of a system, define their boundaries, establish entity ownership, and create a shared language that aligns code with the business domain.

Principles

Component Identification

A component is a bounded piece of software with its own business logic, entities, and lifecycle.

What IS a component

What is NOT a component

The grey area

Some things look like infrastructure but contain business logic you write:

The test: "Am I writing business logic here, or just configuring something?" If you're writing logic, it's a component.

Approach

1. Component identification

From requirements and domain context:

2. Entity identification

For each component:

3. Relationship and dependency mapping

Between components:

Between entities:

4. Boundary validation

Application

When applied at domain-design, this skill drives the components.yaml and components.md artifacts — the full component catalogue with behaviour, dependencies, and entities.

When applied at functional-design, this skill drives the entities.yaml, rules.yaml, and functional-spec.md artifacts. entities.yaml and rules.yaml are the source of truth. Write them first. Then derive functional-spec.md from them — the mermaid diagram, state machines, and rules summary must reflect what's in the YAMLs. If there's a conflict, YAMLs win.

When applied at other stages, this skill manifests as: validating that designs respect component boundaries and entity ownership, flagging data access patterns that bypass the owning component, and ensuring naming consistency with the domain model.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.