relune

Visualize and audit database schemas from SQL files and live introspection.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/mhiro2/relune --skill relune
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: relune
Source: https://github.com/mhiro2/relune/tree/main/skills/relune
Command: npx skills add https://github.com/mhiro2/relune --skill relune

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Visualize and audit database schemas to help developers understand structure, quality, and changes by turning SQL or live metadata into readable diagrams and reports.

Core Features & Use Cases

  • Visualize diagrams (SVG for static docs, HTML for interactive exploration) of tables, views, and enums
  • Inspect schema structure with summaries, details, and diagnostics
  • Detect issues such as missing keys and inconsistent naming, and show diffs between revisions
  • Export outputs as Mermaid, D2, Graphviz DOT, or normalized JSON for docs and automation
  • Accept multiple input sources: SQL files, inline SQL, schema JSON, and live database introspection
  • Multi-dialect support: PostgreSQL, MySQL/MariaDB, SQLite

Quick Start

Run relune render --sql schema.sql to generate an ERD, or relune inspect --sql schema.sql to view a schema summary.

Frequently Asked Questions about relune

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I visualize a database schema from a SQL file?

To visualize a database schema from a SQL file, run a command like relune render --sql schema.sql to generate an ERD diagram. It produces SVG for static documentation or HTML for interactive exploration of tables, views, and enums.

Can I inspect and lint a live PostgreSQL database for missing keys?

Yes, you can inspect and lint a live PostgreSQL database through live database introspection. It detects schema issues like missing keys and inconsistent naming, displaying diagnostics and structural summaries directly from the CLI.

Does this database schema visualization tool support MySQL and SQLite?

Yes, this database schema visualization tool supports MySQL and SQLite. It provides multi-dialect support across PostgreSQL, MySQL, MariaDB, and SQLite for rendering diagrams and inspecting schema structures.

How do I export database schema diagrams to Mermaid or Graphviz DOT?

You can export database schema diagrams to Mermaid or Graphviz DOT by executing the export subcommand. It accepts SQL files or live database metadata and outputs normalized JSON, D2, Graphviz DOT, or Mermaid formats for automation and documentation.

What is the best way to diff and audit schema revisions for SQL changes?

The best way to diff and audit schema revisions is to use the schema diffing functionality. It compares SQL files or schema JSON across revisions to highlight structural changes, lint missing keys, and inspect naming inconsistencies.