Skip to content
Back to skills

Source Bcb2658ed5950b24f5ce861d

ASecurity

Maintain a semantic grounding layer (.aidp/semantic.md) for AIDP — logical entity names, SQL-defined metrics, joins with cardinality, synonyms, and value dictionaries. Use when the user wants to define metrics/business terms, improve NL-to-SQL accuracy, standardize "revenue/customers/etc.", or set up a semantic model. Read by analyzing-data, verified-queries, profiling, and data-quality.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentspythongosqlexpressgitapi

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add gutsofpratik/OpenClaude-Skills --skill source-bcb2658ed5950b24f5ce861d --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Source Bcb2658ed5950b24f5ce861d?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Source Bcb2658ed5950b24f5ce861d
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gutsofpratik-source-bcb2658ed5950b24f5ce861d/badge)](https://www.skillsdirectory.com/skills/gutsofpratik-source-bcb2658ed5950b24f5ce861d)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: aidp-semantic-model
description: Maintain a semantic grounding layer (.aidp/semantic.md) for AIDP — logical entity names, SQL-defined metrics, joins with cardinality, synonyms, and value dictionaries. Use when the user wants to define metrics/business terms, improve NL-to-SQL accuracy, standardize "revenue/customers/etc.", or set up a semantic model. Read by analyzing-data, verified-queries, profiling, and data-quality.
---

# `aidp-semantic-model` — the semantic grounding layer

Create and maintain `.aidp/semantic.md`: the business-meaning layer that grounds NL-to-SQL. This is the
lever curated systems (Snowflake semantic model, Databricks Genie metrics/joins) rely on — without it,
real-world NL-to-SQL accuracy is low.

## When to use
- Define metrics (revenue, active_customers, gross_margin…), logical names, joins, synonyms, or value sets.
- The user wants consistent, reusable business semantics across questions.

## Instruction hierarchy (most → least reliable)
1. **SQL expressions** for metrics/filters (preferred).
2. **Example SQL** for ambiguous prompts (store these via `aidp-verified-queries`).
3. **Free text** only as a last resort.

## Workflow
1. Ensure `.aidp/catalog.md` exists (`aidp-catalog-init`) — the semantic model references real tables/columns.
2. Edit `.aidp/semantic.md` per the format in `references/semantic-model.md`: logical entities, metrics (as
   SQL expressions), joins (with cardinality), synonyms, value dictionaries.
3. **Never invent** columns/values — read them from the catalog or confirm with the user.
4. Optionally validate a metric by running its SQL on a small sample — hand off to `aidp-analyzing-data`,
   which executes Spark SQL via `python "$PLUGIN_DIR/scripts/aidp_sql.py"` (no MCP required).
5. Keep the per-domain working set small and focused.

## AIDP native Ontologies (related feature — UI-driven)
AIDP ships a native **Ontologies** feature (RDF/OWL business glossary: terms, synonyms, definitions, a graph
view, and ontology-driven governance like `av:isSensitive` / `av:requiresRole`). It overlaps this semantic
layer but is **UI-driven** — **no programmatic REST API was found** (`GET …/ontologies` and
`…/workspaces/<ws>/ontologies` both returned **404**, probed 2026-06-10). So:
- For an **agent-usable, programmatic** semantic/glossary layer today, use `.aidp/semantic.md` (this skill) —
  it's the API-free analog the agent can read/write and ground SQL with.
- If the user specifically needs the **native Ontologies** (graph view, TTL/R2RML export, sensitivity
  governance), that is authored in the AIDP console UI; don't claim a REST endpoint for it. Sensitivity tags
  there feed masking governance (`aidp-roles-access` → masking section).

## Notes
- `.aidp/semantic.md` is user-editable and git-ignored (per-project).
- Pairs with `aidp-verified-queries` (example/verified SQL) and `aidp-analyzing-data` (consumes both).

## References
- [references/semantic-model.md](../../references/semantic-model.md) · [references/verified-queries.md](../../references/verified-queries.md)

Files in this skill

  • PROVENANCE.json303 B
  • SKILL.md3 KB
  • UPSTREAM-LICENSE.txt1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.