Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

create-data-context — Codex skill: build a data semantic layer

Builds and maintains a semantic layer that records how data should be read, which metric counts as canonical, and what caveats to check.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill create-data-context -a codex
Open on GitHub

What create-data-context does

The skill produces a separate artifact you can open and point to in later prompts. It records which metric definition to treat as canonical, which dashboard or table is the source of truth, and which caveats deserve a look before an answer goes out.

It runs only when someone asks to save data context or to create, update, inspect, or repair a semantic layer. Ordinary data work — a metric question, a report, a dataset check — belongs to the index skill. One layer covers a single product, business, metric, source, or reporting area unless a broader shared layer is requested.

Before crawling, the skill drafts a source list: what was checked, what is missing, where confidence is lower. Durable evidence wins — transformation code, tests, maintained metric docs, verified dashboards. When sources disagree, the conflict stays visible rather than being resolved quietly. On ChatGPT Desktop it writes to $CODEX_HOME/skills/<area>-semantic-layer by default; if that variable is unavailable and the local setup plainly uses the standard home directory, the path becomes ~/.codex/skills/<area>-semantic-layer. Generated skills stay compact: definitions, tables, query patterns, and evidence live in linked files, while raw sensitive data, credentials, and row-level examples are kept out.

What it helps with

  • pin down which metric definition is canonical
  • name the dashboard or table that counts as source of truth
  • list sources and flag where coverage is thin
  • keep disagreements between sources visible
  • refresh the semantic layer when understanding of the data shifts

Example prompts for the agent

  • Save the data context for revenue: which metric is canonical and what to check first
  • Create a semantic layer for the orders reporting area
  • Inspect the semantic layer and add the sources it is missing

How to install create-data-context

1Skills CLI (Vercel)

npx skills add openai/plugins --skill create-data-context -a codex

2Manually: put the files in place

.agents/skills/create-data-context/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about create-data-context

How do I install create-data-context in Claude?

Run npx skills add openai/plugins --skill create-data-context, then npx skills add openai/plugins --skill create-data-context -a codex. The skill then sits at .agents/skills/create-data-context/SKILL.md.

What does create-data-context do?

It creates, updates, inspects, or repairs a Data Analytics semantic layer. That layer spells out how the data should be interpreted, which metric is canonical, and which caveats matter.

How is it different from the index skill?

index routes data tasks and kicks off work right away. create-data-context takes over when the goal is saving context or working on the semantic layer itself.

Similar skills

All skills for Data and databases →

From the same set360

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor