entity-model

entity-model is a skill for Claude Code from AI-Unified-Process/marketplace. It costs 153 tokens per session (1,479 once invoked), scanned A, original, Apache-2.0.

A documentation tool for designing a database model: the entities, their relationships, fields, data types, and validation rules.

In plain words
What is it for?
Use it to create or update an entity-relationship diagram and detailed attribute tables in docs/entity_model.md.
Why use it?
It turns requirements into a consistent database design that developers can review before building the database.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the TodoWrite tool.

Part of the aiup-core plugin — 6 skills shipped together

Good fit Use it to create or update an entity-relationship diagram and detailed attribute tables in docs/entity_model.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-unified-process/marketplace/entity-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AI-Unified-Process/marketplace --skill entity-model
Clone the repo
git clone --depth 1 https://github.com/AI-Unified-Process/marketplace

Made for: Claude Code.

Or install aiup-core, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for entity-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-unified-process/marketplace/entity-model.svg)](https://agentmods.dev/skills/ai-unified-process/marketplace/entity-model)
Your own site
<a href="https://agentmods.dev/skills/ai-unified-process/marketplace/entity-model"><img src="https://agentmods.dev/badge/skills/ai-unified-process/marketplace/entity-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 142
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.01479
Opus 5 $0.00077 $0.00740
Sonnet 5 $0.00031 $0.00296
Haiku 4.5 $0.00015 $0.00148

Measured 9d ago against content hash 90f342b53cfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

entity-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

aiup-core/skills/entity-model/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Entity Model

Instructions

Create or update the entity model at docs/entity_model.md based on docs/requirements.md. The document contains an ER diagram and attribute tables.

DO NOT

  • Add attributes/columns to the Mermaid diagram
  • Write prose descriptions like "Key attributes: name, email..."
  • Create a "Relationships" table

Document Structure

# Entity Model

## Entity Relationship Diagram

```mermaid
erDiagram
    ROOM_TYPE ||--o{ ROOM : "categorizes"
    GUEST ||--o{ RESERVATION : "makes"

ENTITY_NAME

One sentence describing the entity.

Attribute Description Data Type Length/Precision Validation Rules
id ... Long 19 Primary Key, Sequence
... ... ... ... ...

Required Format for Each Entity

Every entity MUST have:

  1. A ### heading with the entity name in UPPERCASE (UPPER_SNAKE_CASE, e.g. ### ROOM_TYPE — never ### Room Type or ## Entity: Room Type)
  2. One sentence description
  3. An attribute table with exactly these 5 columns in this order: Attribute, Description, Data Type, Length/Precision, Validation Rules

Example Entity

ROOM_TYPE

Defines categories of rooms with shared characteristics.

Attribute Description Data Type Length/Precision Validation Rules
id Unique identifier Long 19 Primary Key, Sequence
name Name of the room type String 50 Not Null, Unique
description Detailed description String 500 Optional
capacity Maximum number of guests Integer 10 Not Null, Min: 1, Max: 10
price Price per night in CHF Decimal 10,2 Not Null, Min: 0

Mermaid Diagram Rules

  • Show entity names and relationships ONLY
  • NO attributes inside entity blocks
  • Use relationship syntax: ENTITY_A ||--o{ ENTITY_B : "relationship"

Data Types (use only these)

The Data Type column must use exactly these values — never SQL or ORM types such as VARCHAR, TEXT, CHAR, bigint, numeric, serial, smallint, UUID, Timestamp, or Enum:

Data Type Length/Precision Usage
Long 19 IDs, foreign keys
String varies (50-500) Text fields
Integer 10 Whole numbers
Decimal 10,2 Currency, percentages
Boolean 1 True/false flags
Date - Date only
DateTime - Date and time

The Length/Precision column holds the bare value (e.g. 10,2) — never a type expression like DECIMAL(10,2).

Validation Rules (use only these values)

Compose every Validation Rules cell from this vocabulary, using the exact wording — never a prose description, and never an empty cell, dash, or "N/A":

Attribute Type Validation Rules Value
Primary key Primary Key, Sequence
Required field Not Null
Unique field Not Null, Unique
Foreign key Not Null, Foreign Key (TABLE.id)
Optional field Optional
With range Not Null, Min: X, Max: Y
With values Not Null, Values: A, B, C

Read the full file on GitHub · 158 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 158 lines · 153 tokens per session scan A 90f342b53cfa

Subscribe to this mod's changes

entity-model is a skill published in the GitHub repository AI-Unified-Process/marketplace (121 stars, last pushed 10d ago), licensed Apache-2.0. It adds 153 tokens to every session and 1,479 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.