define-data-model

Derive a data model from UI mocks and features with a Mermaid ER diagram.

12|1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/wfukatsu/nexus-architect --skill define-data-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: define-data-model
Source: https://github.com/wfukatsu/nexus-architect/tree/main/skills/product/define-data-model
Command: npx skills add https://github.com/wfukatsu/nexus-architect --skill define-data-model

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the derivation of a comprehensive data model from UI mocks and features, providing a rationale and an ER diagram.

Core Features & Use Cases

  • Data Model Derivation: Automatically derive a data model from UI mocks and features.
  • Rationale Recording: Records the rationale for adding implicit entities.
  • ER Diagram Output: Outputs a Mermaid ER diagram of the final model.
  • Use Case: When creating a new application, quickly derive the data model from existing UI designs and feature descriptions.

Quick Start

Run the command '/product:define-data-model' to start the data model derivation process.

Frequently Asked Questions about define-data-model

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

FAQPage Schema
How do I derive a data model from UI mockups and feature descriptions?

You can derive a data model from UI mocks by applying feature×entity CRUD matrices and DDD strategic rules. This Skill extracts entities directly from your UI designs and outputs a Mermaid ER diagram with structural rationale.

What is a feature×entity CRUD matrix for implicit entity extraction?

A feature×entity CRUD matrix maps application features against domain entities to discover implicit data structures. This Skill uses the matrix to extract hidden entities from your UI mocks, outputting a complete data model and Mermaid ER diagram.

Can I generate an ER diagram from UI designs using DDD strategic rules?

Yes, you can generate a Mermaid ER diagram from UI designs by applying UI-to-domain mapping and DDD strategic rules. This Skill processes your UI mocks to output a visual ER diagram representing the derived data model and entity relationships.

How do I document the rationale for adding implicit entities to a data model?

You can document the rationale for implicit entities by deriving your data model from UI mocks and features. This Skill automatically records the logical justification for each implicit entity addition while applying DDD strategic rules during generation.

Does deriving a data model from UI mocks require any external dependencies?

Deriving a data model from UI mocks using this Skill requires zero external dependencies. It processes your feature descriptions and UI mock data standalone, applying UI-to-domain and DDD strategic rules to output a Mermaid ER diagram.