AI agent skills for working with ThoughtSpot — platform conversion, semantic model authoring, multi-tenancy governance, and data querying. Packaged for Claude Code and Cortex Code CLI.
The catalog has 38 skills across seven categories. Every skill runs in both Claude Code and Cortex Code
CLI except ts-profile-snowflake, which is Claude Code only (Cortex Code manages Snowflake
connections natively), and the two Custom Charts skills, which link into Claude Code only
(they drive a local browser and the ThoughtSpot MCP, and have not been run on Cortex Code
CLI). For why an individual skill exists, who tends to need it, and when to reach for it,
see skill personas.
| Category | Problem it solves | Skills |
|---|---|---|
| Setup | Nothing else runs until credentials and data exist | 7 |
| Conversion | The semantics already exist elsewhere, and rebuilding them by hand is what stalls a migration | 12 |
| Semantic Authoring | A Model that imports cleanly can still answer badly or run slowly | 8 |
| Platform & Governance | Many audiences, one definition, without a copy per tenant | 5 |
| Query | Getting data out programmatically, and seeing the SQL behind a disputed number | 1 |
| Recipes | The same analytical need recurs account after account | 3 |
| Custom Charts | A native chart can't show the story, and a hand-built custom chart ships as a blank tile | 2 |
Setup — Credentials, data loading, and tenancy configuration
| Skill | What it does | Category |
|---|---|---|
ts-profile-thoughtspot |
Add, update, test, or delete ThoughtSpot profiles | Credentials |
ts-profile-snowflake |
Add, update, test, or delete Snowflake profiles (Claude Code only — Cortex Code manages connections natively) | Credentials |
ts-profile-databricks |
Add, update, test, or delete Databricks profiles — Service Principal (OAuth M2M), PAT, or existing CLI profile | Credentials |
ts-profile-tableau |
Add, update, test, or delete Tableau Server/Cloud profiles — password or PAT auth | Credentials |
ts-load-source-data |
Load CSV data into Snowflake or Databricks, or provision tables with synthetic rows generated from a schema, for ThoughtSpot to connect to | Data |
ts-setup-tenancy |
Stand up a reproducible multi-tenancy test environment — Orgs, per-Org groups and users, warehouse tables, and optionally a published Model with per-tenant aliases and column security. Four scenarios (topology / per-org / published / mixed) covering the pre-migration state, the post-migration target, and the transition between them |
Tenancy |
ts-migrate-orgs |
Move a tenant Org's bespoke content off its own Table/Model copies onto a governed published Model, then retire the old Org. The counterpart to ts-publish-orgs: sizes Sets blockers, audits the column mapping, then runs a resumable backup → rewrite_views → rewrite_content → move_shielded → share_grants (the last two on new-Org runs only), with the untouched source Org as the rollback |
Tenancy |
Conversion — Move semantic models between ThoughtSpot and external platforms
| Skill | What it does | Platform | Coverage |
|---|---|---|---|
ts-convert-to-databricks-mv |
Convert a ThoughtSpot model to a Databricks Metric View (v0.1 single-source or v1.1 multi-source) | Databricks | coverage |
ts-convert-from-databricks-mv |
Convert a Databricks Metric View into a ThoughtSpot Model (dimensions → attributes, measures → measures/formulas) | Databricks | coverage |
ts-convert-to-dbt |
Generate a dbt project from a ThoughtSpot Model — staging models plus a schema.yml carrying ThoughtSpot's own ts_* metadata tags, either scaffolding a new project or diffing and syncing into an existing one |
dbt | coverage |
ts-convert-from-dbt |
Sync dbt models (Cloud or Core) into ThoughtSpot as Tables and a Model via the native dbt integration — first import or resync, with ts_join_* graphs, ts_rls_rules and MetricFlow metrics assembled client-side when the server-side generator would drop them |
dbt | coverage |
ts-convert-from-looker |
Convert a Looker LookML project (model + view files) into ThoughtSpot Table and Model TMLs, with optional dashboard-to-liveboard migration | Looker | coverage |
ts-convert-from-powerbi |
Convert a Power BI project (.pbip: TMDL semantic model + PBIR report) into ThoughtSpot Table + Model TMLs and Answers/tabbed Liveboard, translating DAX measures and flagging time-intelligence for Spotter |
Power BI | coverage |
ts-convert-from-qlik |
Convert a Qlik Sense app (offline .qvf or Qlik Engine artifacts) into ThoughtSpot Table + Model TML and a tabbed Liveboard, flagging Set Analysis / variables for review | Qlik | coverage |
ts-convert-from-sisense |
Convert a captured offline Sisense bundle ({dashboard, widgets, datamodel}) into ThoughtSpot Table + Model TMLs and Answers/tabbed Liveboard, translating JAQL aggregations and the deterministic formula subset |
Sisense | coverage |
ts-convert-to-snowflake-sv |
Convert a ThoughtSpot model to a Snowflake Semantic View (single, split by domain, or update existing) | Snowflake | coverage |
ts-convert-from-snowflake-sv |
Convert a Snowflake Semantic View into a ThoughtSpot Model (single, merge multiple, or update existing) | Snowflake | coverage |
ts-convert-from-tableau |
Convert a Tableau workbook (.twb/.twbx) into ThoughtSpot table + model TMLs, with optional dashboard-to-liveboard migration | Tableau | coverage |
ts-link-semantic-layer |
Link, don't convert: register a Snowflake Semantic View, Databricks Metric View, Honeydew, Cube or Kyvos object as one Table plus a thin, formula-free Model, so the platform generates the SQL from its own definitions. Carries descriptions, synonyms, ai_context and Spotter instructions; one switch sets measures to AGGREGATE or their standard aggregation |
Any semantic layer | — |
Semantic Authoring — Build, optimize, and prepare Models for production
| Skill | What it does |
|---|---|
ts-object-model-coach |
Prepare a Model for Spotter — review AI Context, synonyms, mine dependent objects, generate improvements |
ts-object-set-manager |
Inventory reusable Sets — dependents, delete/answer-level candidates, grant provenance; optionally export each Set's TML (read-only) |
ts-object-model-erd |
Render a Model into a self-contained HTML ERD — tables, joins, columns, RLS, findings — shareable without ThoughtSpot login |
ts-object-model-aggregates |
Audit a Model's Liveboards/Answers to recommend, generate, and wire aggregate Models (26.6 aggregate-aware routing) — signature mining, cost-based candidate ranking, gated DDL/TML generation |
ts-object-model-alias |
Manage column aliases on a Model — language localization, tenant-based renaming, and combined tenant + locale matrices, via the ts alias export/translate/build/import pipeline |
ts-object-answer-promote |
Promote formulas and parameters from a saved Answer into a Model |
ts-object-formula-translate |
Translate one formula from Tableau, DAX, Qlik, Sisense, Snowflake/Databricks SQL, Excel/Sheets, Sigma or Omni into ThoughtSpot — classification, traps, TML snippet, and optional compile/execute proof against a scratch copy of a Model |
ts-object-calendar-builder |
Build week-aligned 4-4-5 / 4-5-4 / 5-4-4 / 13-period custom calendars with correct 52/53-week tiling, custom labels and RLS union calendars |
Platform & Governance — Publish, secure, audit, and maintain across Orgs
| Skill | What it does |
|---|---|
ts-publish-orgs |
Publish Tables, Models, Answers and Liveboards from the Primary Org to target Orgs without copying them, defining the template variables and parameterization publishing requires, via the ts publish export → resolve → apply pipeline, with rollback to undo and status to verify |
ts-security-columns |
Restrict which columns a group can see on a Table or Model — chooses between the two mechanisms (column security rules and column-level sharing) per Org, explains the trade-off, and drives ts share / ts security column-rules |
ts-audit |
Scan an environment across five angles — AI Readiness, Data Modeling, Human Readiness, Performance, Security — with per-model scorecards and prioritised findings |
ts-dependency-manager |
Audit dependencies, safely remove or repoint columns across Models, Views, Answers, Liveboards, or delete an object with everything built on it (administrators only, dry run first) |
ts-variable-timezone |
Search, set, or remove timezone values for the ts_user_timezone variable at org or user level |
Query — Query and explore data through ThoughtSpot's semantic layer
| Skill | What it does |
|---|---|
ts-object-model-agentql-query |
Query a Model with AgentQL — write Semantic SQL, validate to warehouse SQL, execute, and review results. New to AgentQL? Ask for the guided course ("teach me AgentQL"), play AgentQL Quest in your browser, or read Why AgentQL. |
Recipes — Pre-built analytical capabilities for ThoughtSpot
| Skill | What it builds |
|---|---|
ts-recipe-answer-period-comparison |
Event-period comparison Answer: average daily sales in a retail event vs prior weeks, per year, as a reusable Set or Answer formula |
ts-recipe-formula-business-days-snowflake |
Business-day formula: deploy three Snowflake UDFs for weekday-only date arithmetic, then show ThoughtSpot formula syntax |
ts-recipe-formula-hms-display-snowflake |
Duration display formula: deploy four Snowflake UDFs to format integer seconds/minutes as HH:MM:SS, DD:HH:MM:SS, HH:MM, or DD:HH:MM strings |
Custom Charts — Build custom chart (BYOC) tiles and Liveboards made of them
| Skill | What it builds |
|---|---|
ts-object-answer-chart-builder |
A custom chart tile as paste-ready chart.html / chart.css / chart.js (MayaCharts by default, or D3, ECharts, Plotly, Chart.js, tables, SVG), iterated in a real browser against a faithful viz stub until the render is right; can save it as an answer and check it in ThoughtSpot; ships a library of 58 live-data charts |
ts-object-liveboard-chart-builder |
A storytelling Liveboard of custom-chart tiles across numbered tabs on a real Model: asks what to build, plans the tabs, builds each tile with ts-object-answer-chart-builder, adds narrative tiles and filters, patches the Liveboard through the ThoughtSpot MCP, and screenshots every tab |
The skills live in agents/cli/ (plus one Claude Code-only skill in agents/claude/),
and the same files serve Claude Code and Cortex Code CLI: each tool reads them
through symlinks in its own skills folder, and both run the ts CLI below. agents/cli/SETUP.md covers
prerequisites, installation, credential configuration, and verification for both.
Snowsight and Databricks Genie runtimes retired (2026-11-08). This repo used to also ship stored-procedure skills for Snowsight Workspaces and Genie Code skills for Databricks. Both were retired; their last state is kept at git tag
runtimes-archive-2026-11-08. To work with Snowflake Semantic Views or Databricks Metric Views, use the conversion skills above, or link them for direct query without converting withts-link-semantic-layer.
# Clone
git clone https://github.com/thoughtspot/thoughtspot-agent-skills.git ~/thoughtspot-agent-skills
# Install the ts CLI (requires Python 3.9–3.13)
pip install -e ~/thoughtspot-agent-skills/tools/ts-cli
# Symlink skills — see agents/cli/SETUP.md for the full listCortex Code CLI:
mkdir -p ~/.snowflake/cortex/skills
ln -s ~/thoughtspot-agent-skills/agents/cli/ts-profile-thoughtspot ~/.snowflake/cortex/skills/ts-profile-thoughtspot
ln -s ~/thoughtspot-agent-skills/agents/shared ~/.snowflake/cortex/sharedClaude Code:
mkdir -p ~/.claude/skills
ln -s ~/thoughtspot-agent-skills/agents/cli/ts-profile-thoughtspot ~/.claude/skills/ts-profile-thoughtspot
ln -s ~/thoughtspot-agent-skills/agents/shared ~/.claude/shared
ln -s ~/thoughtspot-agent-skills/agents/shared/mappings ~/.claude/mappingsThen symlink each skill you want from the skills catalog above. The full symlink list is in agents/cli/SETUP.md.
A lightweight Python CLI used by CLI skills at runtime to authenticate with
ThoughtSpot, search metadata, export/import TML, list connections, and create
logical table objects. Located in tools/ts-cli/.
ts --helpCommands: ts auth, ts metadata search, ts tml export/import,
ts connections list/get/add-tables, ts tables create, ts profiles list.
thoughtspot-agent-skills/
├── agents/
│ ├── cli/ — Canonical CLI skills (Claude Code + Cortex Code CLI)
│ ├── claude/ — Claude Code-only skills (ts-profile-snowflake)
│ └── shared/ — Shared reference files the skills read
│ ├── mappings/ts-snowflake/ — Column, join, formula, and property mapping rules
│ ├── mappings/ts-databricks/ — ThoughtSpot ↔ Databricks Metric View mapping rules
│ ├── mappings/tableau/ — Tableau → ThoughtSpot formula and TML rules
│ ├── mappings/looker/ — LookML → ThoughtSpot formula and TML rules
│ ├── schemas/ — Platform schema references (ThoughtSpot TML, Snowflake SV)
│ └── worked-examples/snowflake/ — End-to-end conversion examples
├── scripts/ — Git hooks and local check runners (pre-commit, commit-msg, pre-push, pr-ready, check-pr)
└── tools/
├── ts-cli/ — ThoughtSpot CLI used by CLI skills at runtime
├── validate/ — Static validators (consistency, references, naming, TML, ...)
├── fixtures/ — Captured cluster topologies for `ts tenancy` (reference multi-tenancy environment)
├── smoke-tests/ — End-to-end smoke tests requiring live credentials
├── ossie-roundtrip/ — Round-trips real Models through the Apache Ossie converter (lives upstream)
├── formula-fidelity/ — Checks translated formulas return the source's values (oracle vs ThoughtSpot, live)
├── agentql-retest/ — Re-probes every documented AgentQL limitation and reports the rows whose behaviour moved (live)
├── pr-metrics/ — Baseline PR metrics (count, days open, size, review rounds), maintainer and external PRs reported separately
└── quest/ — AgentQL Quest, the Learn AgentQL course as a browser game, built from the captured lesson SQL and published to GitHub Pages
Start with the contributing guide: the routine for every pull
request, the one-time setup, and how to run pr-ready in a terminal or in Claude Code.
Before your first commit, install the git hooks. The pre-commit hook runs the same gates CI does, so a stale registry, a failing validator or a leaked customer link surfaces in seconds locally instead of minutes later in CI; the commit-msg hook checks the commit message for customer references. A clone cannot install hooks — git has no way to do that — so it is one command, and a Claude Code session warns at start-up until it has been run:
bash scripts/install-hooks.sh # installs the pre-commit and commit-msg dispatchers
bash scripts/install-hooks.sh --check # exit 1 if either is missing or out of dateThe dispatchers live in the clone's shared hooks directory and run the committing
worktree's own scripts/pre-commit.sh and scripts/commit-msg.sh. An older branch runs
its own older pre-commit.sh, which lacks gates added since, and has no commit-msg.sh
(that hook then does nothing) until it merges main; CI's whole-tree and per-commit scans
are the backstop. (The older ln -s … .git/hooks/pre-commit symlink always ran the main
checkout's copy; the installer backs it up and replaces it.) It does not set
core.hooksPath and refuses to run if you have set one, and it does not install the
pre-push hook.
| Resource | What it covers |
|---|---|
| Quality gates catalog | Every validator and gate — what each checks, when it runs, why it exists |
| Open items index | Cross-skill tracker of unverified assumptions and pending tests |
| Backlog | Dated work items (BL-NNN) from audits and reviews |
| CLAUDE.md | Repo conventions, change-impact map, commit protocol |
Symptom: pip install or pipx install fails with:
ImportError: Symbol not found: _XML_SetAllocTrackerActivationThreshold
Cause: Python 3.14 from Homebrew is compiled against a newer libexpat than the
one shipped with macOS, causing a dynamic library mismatch. The ts CLI requires
Python 3.9–3.13.
Fix: Install and use Python 3.12 or 3.13:
brew install python@3.12
pip3.12 install -e ~/thoughtspot-agent-skills/tools/ts-cliIf you installed via pipx, point it at a supported Python:
pipx install --python python3.12 -e ~/thoughtspot-agent-skills/tools/ts-cliNote: also use
pip install -e(notpipx install -e) —pipxis designed for standalone PyPI packages, not editable local installs.