DATA MODEL EXPLORER — AI SKILL
Shared by Daniel Dogbey, Data Engines

QUICK START
1. Use an AI assistant that can read attached files and run Python 3 or Node.js.
2. Attach this ZIP, or unzip it into your working folder and give the assistant access.
3. Add your schema, dataset or table descriptions. Include any metric definitions you want explained.
4. Ask: "Read data-model-explorer/SKILL.md and use the Data Model Explorer skill on these files. Give me the standalone HTML explorer and editable model JSON."
5. Open the generated HTML in a browser. Keep the JSON for future edits.

Supplying the package to a chat makes its instructions available in that conversation. Persistent installation follows your assistant's skill setup process.

WHAT IS INCLUDED
SKILL.md contains the workflow. assets contains the renderer and examples.
scripts contains the builders and validators. references contains supporting guidance.
Python 3 standard library builds the standalone HTML. Node.js is optional for extended validation.

MANUAL EXAMPLE
From inside the data-model-explorer folder, run:
python scripts/build-standalone.py assets/schema-only-example.sql explorer.html --definitions assets/schema-only-definitions.json

The example uses an illustrative retail schema and demonstration definitions. Open explorer.html in your browser. For your own model, give the assistant your schema and definitions first.

Generated explorers can show table connections, visual SQL joins, dimensions and metric definitions, plus SQL, Python and R calculations. SQL, DBML and Explorer JSON imports are supported within the generated explorer. Build an analysis is an optional view to request explicitly.

The assistant needs file access and code execution to generate the output. The generated HTML is self-contained and can be opened offline. Use schema-only input when you want to share structure without records.
