query-sap-ddic

A tool for reading SAP Data Dictionary metadata from replicated SAP tables in BigQuery. SAP Data Dictionary is SAP’s catalogue of table, field, type, relationship, and allowed-value definitions; BigQuery is Google Cloud’s data warehouse.

In plain words
What is it for?
Use it to dump SAP table structures, field descriptions, data types, key fields, foreign-key relationships, domains, and optional allowed values.
Why use it?
It lets developers inspect the replicated source schema before designing or changing data models. The metadata reflects the source system’s actual definitions and relationships.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/googlecloudplatform/cortex-framework/query_sap_ddic
Any agent
npx skills add GoogleCloudPlatform/cortex-framework --skill query_sap_ddic
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/cortex-framework

Made for: Claude Code, Codex.

Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.01568
Opus 5 $0.00026 $0.00784
Sonnet 5 $0.00011 $0.00314
Haiku 4.5 $0.00005 $0.00157

Measured 2d ago against content hash aeb1164386e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

query-sap-ddic scanned grade A with 0 findings 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/query_sap_ddic.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/query_sap_ddic/SKILL.md · 94 lines

How it starts

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

Query SAP Data Dictionary (DDIC)

This skill retrieves SAP schema structures, data types, field descriptions, key designations, and check relationships directly from the replicated SAP Data Dictionary (DDIC) metadata tables inside BigQuery.

Using DDIC tables is highly recommended during modeling and design phases as it reflects the actual system metadata synced from the SAP source system.


Prerequisites & Tables Involved

The skill assumes that standard SAP DDIC tables are replicated into your BigQuery raw source dataset:

  • DD03L: Fields definitions (contains data types, lengths, offsets, and key markings).
  • DD04T: Data Element Texts (contains localized English field descriptions).
  • DD08L: Table Relationships (contains check-table foreign key configurations).
  • DD01L: Domain definitions (contains conversion exits technical details).
  • DD07L: Domain Values (contains allowed domain values and fixed ranges, optional).
  • DD07T: Domain Value Texts (contains localized English descriptions of allowed domain values, optional).

By default, the utility parses cortex-framework-core/config/config.yaml to automatically locate your SAP raw dataset by finding the entry in data.sources where id matches the active foundation data module's dataSourceId (which defaults to sap_raw). If the tables are not found there, you must explicitly override the path.


How to Use

To query the schema of any SAP table (e.g., VBAK or BSEG), run the following script:

cortex-framework-core/.venv/bin/python cortex-framework-core/.agents/skills/query_sap_ddic/scripts/query_sap_ddic.py <table_name> [--config <path>] [--dataset <project_id>.<dataset_id>] [--format {markdown,json,yaml}]

Usage Examples:

  1. Query VBAK using your active configuration settings (Default Markdown):
    cortex-framework-core/.venv/bin/python cortex-framework-core/.agents/skills/query_sap_ddic/scripts/query_sap_ddic.py VBAK
    

Read the full file on GitHub · 94 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 94 lines · 53 tokens per session scan A aeb1164386e3

Subscribe to this mod's changes

query-sap-ddic is a skill published in the GitHub repository GoogleCloudPlatform/cortex-framework (10 stars, last pushed 6d ago), licensed Apache-2.0. It adds 53 tokens to every session and 1,568 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

google-mobile-ads-android-migrate-to-next-gen

Migrates Android applications from the old, legacy Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads) to the new GMA Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk). Provides comprehensive mapping tables for imports, classes, and method signatures to help determine…

google/skills · 105 tokens

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

application-design-center-design-deploy

Processes GCP infrastructure design and deployment workflows within Application Design Center (ADC). Use when: - Designing GCP infrastructure with Terraform. - Validating local HCL. - Performing best-practice plan scans. - Importing templates to Application Design Center (ADC). - Deploying templates. - Troubleshooting…

google/skills · 94 tokens

cloud-run-basics

Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).

google/skills · 53 tokens

google-analytics-data-api-basics

Manages Google Analytics reporting data, enables the Analytics Data API via the Cloud CLI, and creates reports using the Google Analytics Data API (v1beta). Use when you need to interact with Google Analytics properties, run customized analytics reports, query metrics (like activeUsers, screenPageViews) and dimensions…

google/skills · 111 tokens

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens