# Entity model

> Entity model is an open-source agent skill for developer tools. Builds entity model docs with Mermaid ER diagrams and attribute tables for your database. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/main/nexa-claude-core/skills/entity-model
- **Repository:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** entity-model
- **Collection:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-core/skills/entity-model)
- [License: Apache-2.0](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-core/skills/entity-model)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Mermaid diagram generator](https://ai-powered.com/skills/mermaid-diagram-generator): Mermaid diagram generator is an open-source agent skill for developer tools.
- [Crud](https://ai-powered.com/skills/crud): Crud is an open-source agent skill for developer tools.
- [Miro code explain on board](https://ai-powered.com/skills/miro-code-explain-on-board): Miro code explain on board is an open-source agent skill for developer tools.
- [Illuminate concept](https://ai-powered.com/skills/illuminate-concept): Illuminate concept is an open-source agent skill for developer tools.
- [Domain modeling](https://ai-powered.com/skills/domain-modeling-xd4o): Domain modeling is an open-source agent skill for developer tools.
- [Design doc guidelines](https://ai-powered.com/skills/design-doc-guidelines): Design doc guidelines is an open-source agent skill for developer tools.
- [Architecture audit](https://ai-powered.com/skills/architecture-audit): Architecture audit is an open-source agent skill for developer tools.
- [To dbml](https://ai-powered.com/skills/to-dbml): To dbml is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/entity-model
