html-erd-explorer

html-erd-explorer is a skill for Claude Code from f-labs-io/agent-html-skills. It costs 97 tokens per session (2,097 once invoked), scanned A, original, MIT.

A browser-based diagram tool for database schemas. An entity-relationship diagram shows tables, their columns, and how tables connect through foreign keys.

In plain words
What is it for?
Use it to document a data model, explore table relationships, explain how a query uses tables, or compare a schema before and after a migration.
Why use it?
It makes table relationships and migration differences easier to inspect than a text-only schema description.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the html-skills plugin — 19 skills shipped together

Good fit Use it to document a data model, explore table relationships, explain how a query uses tables, or compare a schema before and after a migration.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add f-labs-io/agent-html-skills
Claude Code
/plugin install html-skills

Made for: Claude Code.

Or install html-skills, the plugin that ships this one along with the rest of its 19 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 html-erd-explorer

README.md
[![agentmods](https://agentmods.dev/badge/skills/f-labs-io/agent-html-skills/html-erd-explorer/github.svg)](https://agentmods.dev/skills/f-labs-io/agent-html-skills/html-erd-explorer)
Your own site
<a href="https://agentmods.dev/skills/f-labs-io/agent-html-skills/html-erd-explorer"><img src="https://agentmods.dev/badge/skills/f-labs-io/agent-html-skills/html-erd-explorer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for html-erd-explorer

Your own site · 80×15
<a href="https://agentmods.dev/skills/f-labs-io/agent-html-skills/html-erd-explorer"><img src="https://agentmods.dev/badge/skills/f-labs-io/agent-html-skills/html-erd-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,097 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.
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.00097 $0.02097
Opus 5 $0.00048 $0.01048
Sonnet 5 $0.00019 $0.00419
Haiku 4.5 $0.00010 $0.00210

Measured 5d ago against content hash 41a898655b41, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

html-erd-explorer 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 5d 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.

plugins/html-skills/skills/html-erd-explorer/SKILL.md · 150 lines

How it starts

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

HTML ERD & Schema Explorer

Database schemas are inherently visual — tables connected by foreign keys, with cardinality and direction. ERDs in markdown are awkward; in dedicated tools they're heavy. An HTML ERD is portable, embeddable in a doc, and click-to-explore.

Pre-flight — run BEFORE writing the artifact

Invoke html-skills:html-skills-listen (Skill tool) first; it is idempotent. If it returns a URL, inject it verbatim as window.__CLAUDE_SUBMIT_URL__ in the HTML you are about to write, ?t= query string included (a local, single-session loopback handshake — not a credential). If it reported web/sandbox mode, leave that line out; submitToClaude then falls back to clipboard mode.

When to use this skill

  • "Diagram our [schema, data model, database, tables]"
  • "Show me how [table X] relates to [table Y]"
  • "Document the schema for [feature/service]"
  • "Plan the migration from this schema to that one"
  • "Explain how a query touches the schema"
  • Any time a database structure with ≥3 tables enters the conversation

Output requirements

Tables rendered as cards/boxes with their columns listed. Foreign key relationships drawn as connecting lines with cardinality markers (1, *, etc.). Click a table to expand or focus.

Include a legend explaining symbols (PK, FK, indices, nullable).

Core ERD components

Table card

┌─────────────────────────────┐
│ users                       │
├─────────────────────────────┤
│ 🔑 id          uuid         │
│    email       text  unique │
│    created_at  timestamptz  │
│    org_id      uuid → orgs  │
└─────────────────────────────┘

Each card shows:

  • Table name (header)
  • Columns: name, type, key markers (PK/FK), nullability, indices
  • Optional: row count estimate, table-level comments

Relationship lines

  • Solid line = foreign key
  • Cardinality markers at each end (1, , 0..1, 1..)
  • Crow's-foot notation preferred over text labels for cardinality
  • Color or style to distinguish strong (cascading) from weak (set null) relationships

Read the full file on GitHub · 150 lines

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. 5d ago Changed · +12 lines 41a898655b41
  2. 9d ago First seen · 138 lines · 97 tokens per session scan A cc23bd171f6b

Subscribe to this mod's changes

html-erd-explorer is a skill published in the GitHub repository f-labs-io/agent-html-skills (55 stars, last pushed 7d ago), licensed MIT. It adds 97 tokens to every session and 2,097 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

slides

Build a Grida slides deck — a .canvas bundle in slides mode whose pages are SVG documents (16:9, one SVG per slide). Use when creating a presentation, pitch deck, slideshow, or talk.

gridaco/grida · 46 tokens

dotcanvas

Author and edit a Grida .canvas board — a .canvas.json manifest plus document files (references, generated images, notes) placed on an infinite canvas. Use when working on a .canvas bundle or arranging visuals/design work spatially. For a linear deck/presentation, use the slides skill instead.

gridaco/grida · 69 tokens

datamodellm

Create visual data models for database schemas using Nimbalyst's DataModelLM editor. Use when the user wants to design a data model, database schema, entity relationship diagram, or Prisma schema.

nimbalyst/nimbalyst · 45 tokens

svg

Author and edit .svg files in a Grida editor session — live-canvas binding, SVG output style, and parse-error recovery. Use when creating or modifying an SVG document.

gridaco/grida · 39 tokens

er-diagrams

Create animated entity-relationship and database schema diagrams using the Excalimate MCP server. Use when asked to visualize database schemas, data models, table relationships, foreign keys, entity relationships, or any structured data design with tables and their connections.

excalimate/excalimate · 52 tokens

run402

Provision Postgres + REST API + auth + content-addressed storage + serverless functions + email — paid with x402 USDC on Base. Prototype tier is free on testnet. Use when the user asks to build a webapp, deploy a site, create a database, generate images, or mentions Run402.

kychee-com/run402 · 67 tokens