Build an initial analytics ontology or expand an existing Git-synced one. Evidence-backed definitions, user-defined domains, reviewable refactors and validation.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
This repository is both the skill and the tool: Python phases that do everything the inputs determine, plus an operating contract for the judgment stages.
Use this entry point for a new context. Once the team maintains the result,
continue with skills/ontology-expansion/SKILL.md; rerunning the generator is
not an incremental update to that maintained tree.
The run needs a full, writable checkout of this repository as its working directory, because every phase reads and writes inside it. If you are reading this file from an installed skill or plugin directory, do not run there. Clone the repository into a working directory and drive the run from the clone:
git clone https://github.com/GetCassis/ontology-skills
cd ontology-skills
python3 -m pip install -r requirements.txtInstalling this through a skill or plugin installer copies the files but does not give you a runnable kit: the copy is not a working directory, and the dependencies are not installed.
Three pure-Python dependencies: pyyaml, sqlglot, ruamel.yaml. Nothing else, and no build step.
It runs fully offline. No account, no API key, no network call, and no connection to your warehouse — it reads a schema export you produce yourself. Where profiling would settle a question, the kit writes the SQL for a human to run and files the question; it never runs it.
It writes inside the checkout, in the run directory. The one exception is the optional
--emit dbt, which merges descriptions back into your dbt project's own schema.yml files: it
adds fields and never overwrites a description already there, and it round-trips the YAML so
your comments and formatting survive. Everything dbt has no field for goes under meta.cassis.*.
python3 tests/test_kit.py runs on a fresh clone with no warehouse data and no credentials.
Read CLAUDE.md in the checkout and follow it exactly. It is the operating contract: the driver
sequence (intake.py for a new run, then bootstrap.py prep, build, finish), the four
checkpoints where you stop and wait for the user, the evidence and enrichment rules, and the
reporting rules. Do not re-derive the sequence from the scripts.
README.md says what inputs the kit needs (a schema export is mandatory; the repository that
builds the tables is strongly recommended, as a dbt project, a dbt docs export, or any other layout
through a mapping config; everything else is optional) and what a run costs. Relay each phase's
cost banner to the user before the phase spends it.
<run>/emit/cassis/ is the result: domains as Markdown, tables, metrics and joins as YAML, with
per-column provenance, ready for review like code. OUTPUT.md maps the rest of the run
directory, including the open questions and the defect list the run surfaces along the way.
.claude-plugin
.cursor-plugin
.tessl-plugin
adapters
skills
ontology-expansion
references
templates
tests
fixtures
dbt-roundtrip
models
expansion