data_modeling_standards

data_modeling_standards is a skill for Claude Code, Codex from GoogleCloudPlatform/cortex-framework. It costs 26 tokens per session (1,976 once invoked), scanned A, original, Apache-2.0.

A reference guide for naming fields, applying business rules, and designing data models in the Cortex data platform. It includes SAP traceability rules, such as using lowercase snake_case names that retain the original SAP field name.

In plain words
What is it for?
Use it when creating or changing data products, choosing column names, applying recurring modeling patterns, or handling SAP-specific rules such as currency decimal shifts.
Why use it?
It keeps data products consistent and makes their fields easier to understand and trace back to the source system. It also helps prevent modeling errors when working with SAP data, including currency values.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating or changing data products, choosing column names, applying recurring modeling patterns, or handling SAP-specific rules such as currency decimal shifts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/cortex-framework/data_modeling_standards
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 GoogleCloudPlatform/cortex-framework --skill data_modeling_standards
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/cortex-framework

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 data_modeling_standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlecloudplatform/cortex-framework/data_modeling_standards/github.svg)](https://agentmods.dev/skills/googlecloudplatform/cortex-framework/data_modeling_standards)
Your own site
<a href="https://agentmods.dev/skills/googlecloudplatform/cortex-framework/data_modeling_standards"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/cortex-framework/data_modeling_standards/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 data_modeling_standards

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/cortex-framework/data_modeling_standards"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/cortex-framework/data_modeling_standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,976 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00026 $0.01976
Opus 5.5 $0.00010 $0.00790
Sonnet 5.5 $0.00005 $0.00395
Haiku 4.5 $0.00003 $0.00198

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

Security

Grade A, and why

data_modeling_standards 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 1mo 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.

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/data_modeling_standards/SKILL.md · 166 lines

How it starts

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

Data Modeling Standards and Business Rules

This skill serves as the single source of truth for organizational standards, naming conventions, and repeating data modeling patterns within the Cortex Framework. All agents creating or modifying data products MUST consult this guide to ensure consistency, design integrity, and compliance across the workspace.


1. Column Naming Conventions (Traceability)

In Cortex, column names must provide both business readability and technical traceability back to the source system.

  • Rule: Target columns MUST be named in lowercase snake_case.
  • Traceability Suffix: Column names MUST end with the original SAP field name as a suffix (e.g., _<sap_field_name>).
  • Examples:
    • mandt (Client) -> client_mandt
    • bukrs (Company Code) -> company_code_bukrs
    • belnr (Accounting Document Number) -> document_number_belnr
    • waers (Currency Key) -> currency_key_waers

2. Currency Decimal Shifts

SAP stores currency amounts as integer/decimal values without decimals, shifting the actual values depending on the specific currency key (e.g., Japanese Yen JPY has 0 decimals, whereas USD has 2). We must adjust these amounts using the standard currency decimal shift configuration.

Implementation Checklist

  1. Require the Currency helper:
    const currency = require("includes/cortex/currency.js");
    
  2. Define the currency_decimal CTE at the top of the SQL query, passing the dataset reference for the replicated tcurx table:
    WITH currency_decimal AS (
      ${currency.currencyDecimalShift(ctx.ref(moduleConfig.sources.sapModule.datasetId, "tcurx"))}
    )
    
  3. Apply the decimal shift expression to amount fields in the SELECT block:
    ${currency.amountWithDecimalShift("bseg.dmbtr", "currency_decimal_hwaer")} AS amount_in_local_currency_dmbtr,
    ${currency.amountWithDecimalShift("bseg.wrbtr", "currency_decimal_waers")} AS amount_in_document_currency_wrbtr,
    
  4. Join the currency_decimal CTE in the FROM / JOIN section for each currency key:
    LEFT JOIN currency_decimal AS currency_decimal_waers
      ON bkpf.waers = currency_decimal_waers.currkey
    LEFT JOIN currency_decimal AS currency_decimal_hwaer
      ON bkpf.hwaer = currency_decimal_hwaer.currkey
    

Read the full file on GitHub · 166 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. 1mo ago First seen · 166 lines · 26 tokens per session scan A 263654dd262f

Subscribe to this mod's changes

data_modeling_standards is a skill published in the GitHub repository GoogleCloudPlatform/cortex-framework (14 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 26 tokens to every session and 1,976 once invoked, about $0.0001 per session on Opus 5.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

dbt-sf-to-bq-translator

Translates Snowflake dbt SQL models to Standardized BigQuery SQL. Handles SQL compilation, Jinja macro placeholder masking, BigQuery Translation Service migration workflows, AST-based config transformations, explicit type casting, JSON extraction standardization, and deduplication. Use when migrating Snowflake dbt…

google/skills · 93 tokens

bigquery-bigframes

Generates Python code using BigQuery DataFrames (BigFrames). Use by default for any Python data task involving BigQuery, including data processing, analysis, and machine learning. Don't use for SQL-first workflows or the google-cloud-bigquery client library — use bigquery-basics.

google/skills · 61 tokens

google-cloud-solution-hybrid-search-alloydb

Discovers requirements and generates architectural, design, and deployment guidance for dynamic hybrid search systems by combining semantic search and keyword search. Optimized for AlloyDB hybrid search use cases in Google Cloud. Use when users need vector search combined with structured SQL filtering, faceted…

google/skills · 115 tokens

effective-dbt-sql

Use when writing or modifying dbt model SQL — deciding whether to add a subquery or reuse an existing dimension/metric, structuring a query, joining models, or refactoring a metric's SQL. Encodes SQL semantic-correctness rules: reuse existing fields, prefer CTEs over correlated subqueries, and make joins and column…

lightdash/lightdash · 0 tokens

wren-usage

Wren Engine — semantic SQL engine for AI agents. Query 22+ data sources (PostgreSQL, BigQuery, Snowflake, MySQL, ClickHouse, etc.) through a modeling layer (MDL). This skill is the main entry point: it guides setup, delegates to focused sub-skills for SQL authoring, MDL generation, project management, and MCP server…

Canner/wren-engine · 126 tokens

wren-onboarding

Onboard a user to Wren Engine end-to-end. Walks through environment checks, project scaffolding, connection configuration via .env, and first query. Use when: user wants to install Wren Engine, set up a new data source connection, or bootstrap a new project from scratch. Triggers: '/wren-onboarding', 'install wren'…

Canner/wren-engine · 98 tokens