CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

cassis/ontology-bootstrap

Build an initial analytics ontology or expand an existing Git-synced one. Evidence-backed definitions, user-defined domains, reviewable refactors and validation.

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

SKILL.md

name:
ontology-bootstrap
description:
Assemble a reviewable first version of an analytics agent's context from what a data stack already has: a warehouse schema export, a dbt project, docs, dashboards, query logs. Produces a Cassis ontology tree (domain READMEs, table and metric YAML, joins) with the evidence behind every claim attached and unresolved meaning filed as questions. Scripts do everything the inputs determine; the user decides at four checkpoints. Runs fully offline: no account, no key, no network. Optional dbt write-back merges descriptions into the project's own schema.yml files without overwriting anything already there. Use when asked to "bootstrap an ontology", "build context for an analytics agent", "document the warehouse for AI", "turn our dbt project into an ontology", or "make our data agent-ready".

Ontology bootstrap

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.

Before anything else

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.txt

Installing 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.

What it needs, and what it touches

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.

How to run

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.

What comes out

<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.

addendum_v2.md

apply_synthesis.py

bootstrap.py

common.py

dispatch_prep.py

docs_search.py

emit.py

evidence.py

expansion.py

handoff_package.py

ingest.py

intake.py

LICENSE

metrics_review.py

OUTPUT.md

profile.py

questions.py

README.md

requirements-dev.txt

requirements.txt

scope.py

skeleton.py

SKILL.md

tile.json

verify.py