Agent skill

Drizzle Erd

by hiroppy in hiroppy/mf-dashboard

A skill your agent uses when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships

MITAuto-check passedDatabases

Install Drizzle Erd

skills CLI
$ npx skills add hiroppy/mf-dashboard --skill drizzle-erd -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hiroppy/mf-dashboard drizzle-erd --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hiroppy/mf-dashboard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/drizzle-erd .claude/skills/drizzle-erd && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
drizzle-erd
GitHub stars
418
Token cost
~627 tokens
SKILL.md length
136 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships

  • Works in 4 steps: Find schema files - Locate Drizzle table… → Parse tables - Extract table names,… → Identify relations - Find .references()… → …
  • Needing to visualize database schema
  • SKILL.md covers When to Use, Process, Mermaid ERD Syntax and Output Template, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Drizzle Erd is an agent skill from hiroppy/mf-dashboard. Use when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database schema design, ORMs and data access and Diagrams. It works with Drizzle ORM and Mermaid. The repository describes itself as: マネーフォワードMeを自動化、保有資産の可視化を行います. The licence is MIT.

When your agent uses it

  • Needing to visualize database schema
  • Generate ERD diagrams from Drizzle ORM schemas
  • Understand table relationships

Example prompts

  • “/drizzle-erd”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Find schema files - Locate Drizzle table definitions (usually schema.ts or tables.ts)
  2. Parse tables - Extract table names, columns, types, and constraints
  3. Identify relations - Find .references() calls and relations definitions
  4. Generate Mermaid - Output ERD in Mermaid syntax

What it can do on your machine

Read from SKILL.md and the folder at commit 855c3e7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are mermaid and typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Drizzle Erd loads about 627 tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 136 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~35
When it runs · the whole SKILL.md, loaded when a task matches
~627

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hiroppy/mf-dashboard at commit 855c3e7, republished under its MIT licence (© hiroppy). 136 words, ~627 tokens.

Download SKILL.mdSave it as .claude/skills/drizzle-erd/SKILL.md (or your agent's skills folder).
name
drizzle-erd
description
Use when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships

Drizzle ERD Generator

Generate Mermaid ERD diagrams from Drizzle ORM schema files.

When to Use

  • Database schema visualization needed
  • Understanding table relationships
  • Documentation for DB structure
  • PR review of schema changes

Process

  1. Find schema files - Locate Drizzle table definitions (usually schema.ts or tables.ts)
  2. Parse tables - Extract table names, columns, types, and constraints
  3. Identify relations - Find .references() calls and relations definitions
  4. Generate Mermaid - Output ERD in Mermaid syntax

Mermaid ERD Syntax

mermaid
erDiagram
    TABLE_NAME {
        type column_name PK "Primary Key"
        type column_name FK "Foreign Key"
        type column_name UK "Unique"
        type column_name "nullable"
    }

    TABLE_A ||--o{ TABLE_B : "has many"
    TABLE_A ||--|| TABLE_C : "has one"
    TABLE_A }o--|| TABLE_D : "belongs to"
Relationship Notation
SymbolMeaning
||Exactly one
o|Zero or one
}oZero or many
}|One or many
Type Mapping
DrizzleMermaid
text()string
integer()int
real()float
blob()blob
boolean modeboolean

Output Template

mermaid
erDiagram
    %% Master Tables

    %% Transaction Tables

    %% Snapshot Tables

    %% Relations

Example

From Drizzle:

typescript
export const users = sqliteTable("users", {
  id: integer("id").primaryKey(),
  name: text("name").notNull(),
  email: text("email").unique(),
});

export const posts = sqliteTable("posts", {
  id: integer("id").primaryKey(),
  userId: integer("user_id").references(() => users.id),
  title: text("title").notNull(),
});

To Mermaid:

mermaid
erDiagram
    users {
        int id PK
        string name
        string email UK
    }

    posts {
        int id PK
        int user_id FK
        string title
    }

    users ||--o{ posts : "has many"

Quick Reference

Column Markers
  • PK - primaryKey()
  • FK - .references()
  • UK - .unique()
  • Add "nullable" comment if no .notNull()
Grouping

Group related tables with Mermaid comments:

mermaid
%% === Master Tables ===
%% === Transaction Tables ===

© hiroppy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/drizzle-erd of hiroppy/mf-dashboard.

Open the folder on GitHubat commit 855c3e7

Compare with similar skills

Drizzle Erd next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Drizzle Erd compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Drizzle Erd this skillhiroppy/mf-dashboard418—~627Automated safety check: PassMIT
Data Model ExtractorEmeaAppGbb/spec2cloud100—~2.5kAutomated safety check: PassMIT
Drizzle Migration Safety on Neonsuperset-sh/superset15k—~2kAutomated safety check: NotesCustom licence
Drizzlekurealnum/dotfiles290—~1.3kAutomated safety check: PassNone
Drizzle DatabaseChatbotXIO/ChatbotX881—~2.1kAutomated safety check: PassCustom licence
Drizzle Schema Style Guidelobehub/lobehub83k—~4.1kAutomated safety check: PassCustom licence

Similar skills

  • Data Model Extractor

    EmeaAppGbb/spec2cloud

    Extract database schemas, data models, and entity relationships from code.

    100 GitHub stars~2.5k tokensUpdated 5 mo ago
    DatabasesAuto-check passed
  • Generates a Drizzle migration on a fresh Neon branch and runs a production-safety checklist for table sizes, lock order and load rehearsal before the PR opens.

    15k GitHub stars~2k tokensUpdated today
    DatabasesAuto-check: notes
  • Drizzle

    kurealnum/dotfiles

    Drizzle ORM schema and database guide. An agent skill from kurealnum/dotfiles.

    290 GitHub stars~1.3k tokensUpdated 5 mo ago
    DatabasesAuto-check passed
  • Drizzle Database

    ChatbotXIO/ChatbotX

    Work with Drizzle ORM database schema, migrations, relations, and queries in PostgreSQL.

    881 GitHub stars~2.1k tokensUpdated today
    DatabasesAuto-check passed
  • Style guide for Drizzle ORM schemas and queries in LobeHub: file layout, naming, timestamp helpers, primary keys, indexes, relations and inferred types.

    83k GitHub stars~4.1k tokensUpdated today
    DatabasesAuto-check passed
  • Drizzle Orm Expert

    davila7/claude-code-templates

    Expert in Drizzle ORM for TypeScript — schema design, relational queries, migrations, and serverless database integration.

    32k GitHub starsUsed in 3 repos~2.6k tokens
    DatabasesAuto-check passed

More from hiroppy/mf-dashboard

  • Crawler Scraper

    hiroppy/mf-dashboard

    A skill your agent uses when adding new scraping targets to the crawler

    418 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • UI Component

    hiroppy/mf-dashboard

    A skill your agent uses when creating new UI components under apps/web/src/components/

    418 GitHub stars~832 tokensUpdated today
    Auto-check passed
  • DB Schema Change

    hiroppy/mf-dashboard

    A skill your agent uses when adding/modifying database tables or columns in Drizzle ORM schema

    418 GitHub stars~362 tokensUpdated today
    Auto-check passed

Categories

Questions about Drizzle Erd

What does Drizzle Erd do?

A skill your agent uses when needing to visualize database schema, generate ERD diagrams from Drizzle ORM schemas, or understand table relationships. Drizzle Erd is an agent skill from hiroppy/mf-dashboard.

When should I use Drizzle Erd?

Drizzle Erd fits situations like: needing to visualize database schema; generate ERD diagrams from Drizzle ORM schemas; understand table relationships.

How do I install Drizzle Erd in Claude Code?

Run `npx skills add hiroppy/mf-dashboard --skill drizzle-erd -a claude-code`. Or copy the skill folder (.agents/skills/drizzle-erd in hiroppy/mf-dashboard) into .claude/skills/drizzle-erd in your project. Claude Code loads it when a task matches its description.

How do I install Drizzle Erd in Codex?

Run `npx skills add hiroppy/mf-dashboard --skill drizzle-erd -a codex`. Or copy the skill folder (.agents/skills/drizzle-erd in hiroppy/mf-dashboard) into .agents/skills/drizzle-erd in your project. Codex loads it when a task matches its description.

Can I use Drizzle Erd in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hiroppy/mf-dashboard --skill drizzle-erd -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/drizzle-erd, .gemini/skills/drizzle-erd, .github/skills/drizzle-erd and .opencode/skills/drizzle-erd in your project.

What does Drizzle Erd need to run?

SKILL.md names no scripts, command-line tools or credentials: Drizzle Erd is instructions for the agent only.

Does Drizzle Erd access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Drizzle Erd safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Drizzle Erd use?

Drizzle Erd is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Drizzle Erd use?

About 627 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Drizzle Erd?

Skills that share tags, products or a category with Drizzle Erd: Data Model Extractor (EmeaAppGbb/spec2cloud, 100 stars), Drizzle Migration Safety on Neon (superset-sh/superset, 15k stars), Drizzle (kurealnum/dotfiles, 290 stars) and Drizzle Database (ChatbotXIO/ChatbotX, 881 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Drizzle Erd?

hiroppy (a GitHub user) maintains it in hiroppy/mf-dashboard, which has 418 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 9, 2026.

Source: hiroppy/mf-dashboard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.