data-model-analysis

Extract entities, relationships, and domain rules from codebase data models.

5|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/wfukatsu/architecture-redesign-agent --skill data-model-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-model-analysis
Source: https://github.com/wfukatsu/architecture-redesign-agent/tree/main/.claude/skills/data-model-analysis
Command: npx skills add https://github.com/wfukatsu/architecture-redesign-agent --skill data-model-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze existing data models to extract entities, relationships, and domain rules, enabling clearer data governance and design decisions.

Core Features & Use Cases

  • Entity discovery: enumerate domain entities with their attributes and constraints.
  • Relationship mapping: capture cardinalities, foreign keys, and join patterns between entities.
  • Domain rules extraction: identify business rules, validations, and integrity constraints.
  • Data-flow overview: document data generation, transformation, and consumption paths across the model.

Quick Start

Point the agent at the target project path and run the analysis to generate reports under reports/01_analysis.

Frequently Asked Questions about data-model-analysis

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

FAQPage Schema
How do I extract entities and relationships from an existing codebase data model?

To extract entities and relationships from a data model, point the agent at your target project path to analyze ORM entities, schema definitions, and DTOs. It then outputs a structured data model map to reports/01_analysis.

Can I map domain rules and data-flow paths across my database schema?

Yes, you can map domain rules and data-flow paths by analyzing schema definitions and design documents. The process identifies business rules, validations, and data generation or transformation paths across the model.

What is the best way to document ORM entities and foreign key cardinalities?

The best way to document ORM entities and foreign key cardinalities is running an automated analysis that captures relationship mappings and constraints. It generates a comprehensive report covering cardinalities and join patterns.

Do I need external dependencies to analyze schema definitions and DTOs?

No, you do not need external dependencies to analyze schema definitions and DTOs. The analysis requires no external dependencies beyond the repository itself to build a comprehensive data model map.

How does entity discovery work for identifying business validations and integrity constraints?

Entity discovery works by enumerating domain entities with their attributes and constraints from the codebase. It identifies business validations and integrity constraints to enable clearer data governance and design decisions.