domain-model

Generates a domain model document defining ubiquitous language, entities, relationships, and invariants.

Updated May 24, 2026
One-click install
npx skills add https://github.com/pirras-torres/pirras-marketplace --skill domain-model-pirras-torres
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: domain-model
Source: https://github.com/pirras-torres/pirras-marketplace/tree/main/plugins/pi-dev/skills/domain-model
Command: npx skills add https://github.com/pirras-torres/pirras-marketplace --skill domain-model-pirras-torres

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams often lack a shared, documented understanding of their business domain, leading to inconsistent terminology and misaligned implementations. This Skill interviews the user and produces a structured domain model document at docs/02_business/domain_model.md. ## Core Features & Use Cases - Guided Domain Interview: Walks through domain context, subdomains, ubiquitous language, entities, relationships, and invariants step by step. - PRD-Aware Context: Reads an existing product requirements document to pre-fill context before asking questions. - Structured Markdown Output: Generates a complete domain model with a ubiquitous language table, entity definitions, and business invariants. - Use Case: After writing a PRD for a finance app, run this Skill to capture terms like "available balance" and entities like Account and Movement so the whole team shares one vocabulary. ## Quick Start Ask the AI to create the domain model for your project using the pi-dev domain-model skill.

Frequently Asked Questions about domain-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a domain model document for a software project?▼

Run the domain-model skill, which interviews you about domain context, subdomains, key terms, entities, relationships, and invariants. It then writes a structured Markdown document to docs/02_business/domain_model.md.

What is ubiquitous language in domain-driven design?▼

Ubiquitous language is a set of 5-15 terms with precise, agreed definitions shared by the team and users. This skill builds it by asking you to list important terms and define each in one sentence, producing a term-definition table.

Does the domain model skill require a PRD first?▼

No, a PRD is optional. If docs/01_product/01_prd.md exists, the skill reads it for context; otherwise it asks you for a brief description of what the software does before starting the interview.

What should come after writing a domain model?▼

The skill offers to generate docs/02_business/business_rules.md next using the business-rules skill, which expands the invariants captured in the domain model into detailed business rules. A data model document also depends on the domain model.

What are the quality requirements for the generated domain model?▼

The document must contain at least 5 ubiquitous language terms, each entity needs a definition and at least 2 attributes, and invariants must be phrased as constraints using words like must, cannot, or never.