Skip to content
Skill

Entity model

Builds entity model docs with Mermaid ER diagrams and attribute tables for your database

Entity model is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
7
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Entity model

This skill guides the agent to produce an entity model document, saved at docs/entity_model.md, that is built from an existing requirements document. The output pairs a Mermaid.js entity-relationship diagram that shows only entity names and relationships with a section per entity containing a one-sentence description and a five-column attribute table covering data type, length or precision, and validation rules.

The skill sets a fixed workflow: read the requirements, track each entity as a task, write the diagram, fill in each entity section, then check that every diagram entity has a table, that foreign keys point to real entities, and that validation rules use the predefined vocabulary. It also includes reference tables for common data types and validation phrasing, and a format for multi-column constraints.

It expects a docs/requirements.md file in the project and works through Claude Code, with a reference to a shared Nexa rules file that ships with the plugin.

When your agent uses it

Creates entity model documents with Mermaid.js ER diagrams and attribute tables defining entities, relationships, data types, and validation rules. Use when the user asks to "create an entity model", "design a data model", "draw an ERD", "define database schema", "model entities", or mentions entity-relationship diagram, ER diagram, database design, or data modeling.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (5 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the nexa-claude-core plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add nexadevapp/nexa-claude-skills-marketplace
/plugin install nexa-claude-core@nexa-claude-marketplace

Or copy only this skill to ~/.claude/skills/entity-model:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/entity-model &&
cp -R "$tmp/nexa-claude-core/skills/entity-model" ~/.claude/skills/entity-model &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/entity-model inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/entity-model to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/entity-model &&
cp -R "$tmp/nexa-claude-core/skills/entity-model" ~/.agents/skills/entity-model &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/entity-model inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/entity-model to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/entity-model &&
cp -R "$tmp/nexa-claude-core/skills/entity-model" ~/.cursor/skills/entity-model &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/entity-model inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/nexadevapp/nexa-claude-skills-marketplace.git --path nexa-claude-core/skills/entity-model

Or copy the folder to ~/.gemini/skills/entity-model yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/entity-model:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/entity-model &&
cp -R "$tmp/nexa-claude-core/skills/entity-model" ~/.copilot/skills/entity-model &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/entity-model inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git

Then copy nexa-claude-skills-marketplace/nexa-claude-core/skills/entity-model into your agent's skills folder as entity-model. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Mermaid ER diagram
Produces an erDiagram showing entities and the relationships between them, without attributes inside the blocks.
Attribute tables
Gives each entity a table listing attributes, data types, lengths or precision, and validation rules.
Standard data types
Applies a reference set of types such as Long, String, Integer, Decimal, Boolean, Date and DateTime.
Validation rule vocabulary
Uses a fixed set of validation phrases for keys, required fields, unique fields, ranges and email formats.
Multi-column constraints
Adds notes below a table when a rule spans more than one column, such as date ordering.
Consistency checks
Verifies that diagram entities have sections, tables have five columns, and foreign keys reference existing entities.

Good for

  • Design a data model for a hotel booking system
  • Draw an ERD for an e-commerce order database
  • Define the database schema for a customer support app
  • Document entities and validation rules from existing requirements

Entity model FAQ

What input does the skill need?

It reads a docs/requirements.md file and writes its output to docs/entity_model.md.

Does the diagram include column details?

No. The Mermaid diagram shows only entity names and relationships; attributes go in the tables below it.

Which clients can use Entity model?

The skill is packaged as a Claude Code plugin and relies on a plugin-relative shared file, so it is set up for Claude Code.

How do I install Entity model in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/entity-model to use it in all your projects, or to .claude/skills/entity-model in one project. Or install the nexa-claude-core plugin, which includes it: /plugin marketplace add nexadevapp/nexa-claude-skills-marketplace, then /plugin install nexa-claude-core@nexa-claude-marketplace.

Does Entity model run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Entity model?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Entity model?

The closest alternatives to Entity model are Mermaid diagram generator, Crud, Miro code explain on board, Illuminate concept and Domain modeling.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from nexadevapp/nexa-claude-skills-marketplace

  1. Writes a dated architecture audit report with Mermaid diagrams drawn from the code

    • Open source
    • 7 GitHub stars
    • Developer tools
  2. Writes a dated CI/CD audit report mapping pipelines, gates, and gaps in a repository

    • Open source
    • 7 GitHub stars
    • Developer tools
  3. Writes a dated static code metrics report with complexity, duplication, CBO and DIT

    • Open source
    • 7 GitHub stars
    • Developer tools
  4. Writes a dated report mapping a repository's infrastructure, environments and secret names

    • Open source
    • 7 GitHub stars
    • Developer tools
  5. Writes a dated mutation testing report for a repository's core business logic

    • Open source
    • 7 GitHub stars
    • Developer tools
  6. Writes a dated inventory of automated tests sorted into unit, integration, E2E and misc

    • Open source
    • 7 GitHub stars
    • Developer tools