text2sql-metadata-enrichment

text2sql-metadata-enrichment is a skill for Claude Code, Codex from ibm-self-serve-assets/building-blocks. It costs 62 tokens per session (1,148 once invoked), scanned A, original, Apache-2.0.

Guidance for adding business meaning to IBM watsonx.data Intelligence metadata so Text2SQL can turn natural-language questions into SQL queries. It covers descriptions, synonyms, table relationships, and semantic hints.

In plain words
What is it for?
Preparing projects for Text2SQL, enriching table and column metadata, adding relationships and synonyms, authenticating with IBM Cloud, and working with supported SQL dialects.
Why use it?
Clear metadata gives the SQL-generation service more context about what tables and columns mean, reducing misunderstandings in generated queries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Preparing projects for Text2SQL, enriching table and column metadata, adding relationships and synonyms, authenticating with IBM Cloud, and working with supported SQL dialects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ibm-self-serve-assets/building-blocks --skill text2sql-metadata-enrichment
Clone the repo
git clone --depth 1 https://github.com/ibm-self-serve-assets/building-blocks

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for text2sql-metadata-enrichment

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment/github.svg)](https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment)
Your own site
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for text2sql-metadata-enrichment

Your own site · 80×15
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/text2sql-metadata-enrichment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,148 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 46
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 46
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 98
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 118
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 119
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.01148
Opus 5.5 $0.00025 $0.00459
Sonnet 5.5 $0.00012 $0.00230
Haiku 4.5 $0.00006 $0.00115

Measured 2mo ago against content hash 37cbbfe1c91e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

text2sql-metadata-enrichment scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X PUT 'https://api.ca-tor.dai.cloud.ibm.com/semantic_automation/v1/onboard_for_text_2_sql' \
ibm-bob/skills/text2sql-metadata-enrichment/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

watsonx.data Intelligence Text2SQL Metadata Enrichment

Purpose

Expert guidance for enriching metadata in IBM watsonx.data Intelligence projects to maximise Text2SQL query accuracy. The watsonx.data Intelligence Text2SQL service uses metadata (table descriptions, column descriptions, synonyms, relationships) to understand natural language queries and generate correct SQL.

IBM Cloud Product Coverage

IBM Cloud Product Usage
watsonx.data Intelligence (DAI) Text2SQL API; metadata enrichment; project/asset management
IBM Cloud IAM POST /identity/token (apikey grant)
IBM watsonx.ai LLM used for SQL generation (meta-llama/llama-3-3-70b-instruct default)

Rules

  • DAI base URL: https://api.{region}.dai.cloud.ibm.com
  • Text2SQL endpoint: GET /semantic_automation/v1/text_to_sql
  • Onboarding endpoint: PUT /semantic_automation/v1/onboard_for_text_2_sql
  • Always onboard the project before importing data assets
  • Metadata enrichment increases SQL accuracy significantly — always add table/column descriptions
  • Supported dialects: presto, postgresql, mssql, oracle, presto_sql, snowflake

Scope

  • watsonx.data Intelligence project onboarding for Text2SQL
  • Table and column metadata enrichment via DAI REST API
  • Adding synonyms, business descriptions, and relationship hints
  • Evaluating and improving Text2SQL query accuracy
  • Feedback loop design for iterative quality improvement

Procedure

Phase 1: Onboard Project for Text2SQL

curl -X PUT 'https://api.ca-tor.dai.cloud.ibm.com/semantic_automation/v1/onboard_for_text_2_sql' \
  -H 'Authorization: Bearer {TOKEN}' \
  -H 'Content-Type: application/json' \
  -d '{"containers": [{"container_id": "{PROJECT_ID}", "container_type": "project"}]}'

Phase 2: Import Data Assets

  1. Navigate to your watsonx.data Intelligence project
  2. Add data connection (Presto, PostgreSQL, Snowflake, etc.)
  3. Import specific tables as project assets

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 120 lines · 62 tokens per session scan A 37cbbfe1c91e

Subscribe to this mod's changes

text2sql-metadata-enrichment is a skill published in the GitHub repository ibm-self-serve-assets/building-blocks (28 stars, last pushed yesterday), licensed Apache-2.0. It adds 62 tokens to every session and 1,148 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

text2sql-metadata-enrichment compared with skills from other repositories

text2sql-metadata-enrichment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
text2sql-metadata-enrichmentibm-self-serve-assets/building-blocksSkill28yesterdayApache-2.0A62Claude Code, Codex
embeddingsruvnet/rufloSkill81kyesterdayMITA62Claude Code
rag-pineconedavila7/claude-code-templatesSkill33kyesterdayMITA65Claude Code, Codex
data-engineerdavila7/claude-code-templatesSkill33kyesterdayMITA35Claude Code, Codex
similarity-search-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.8k3d agoApache-2.0A30Claude Code, Codex
ingesting-into-data-lakeaws/agent-toolkit-for-awsSkill3.4kyesterdayApache-2.0A228Claude Code
graphjin-envdosco/graphjinSkill3.2k5d agoApache-2.0A61Claude Code, Codex