# Create Data Context

Create, update, inspect, or repair Data Analytics semantic layers.

- Repository: https://github.com/XiaomiMiMo/MiMo-Code (13741 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add XiaomiMiMo/MiMo-Code --skill create-data-context -g -a claude-code -y`
Codex: `npx skills add XiaomiMiMo/MiMo-Code --skill create-data-context -g -a codex -y`
Cursor: `npx skills add XiaomiMiMo/MiMo-Code --skill create-data-context -g -a cursor -y`
Gemini CLI: `npx skills add XiaomiMiMo/MiMo-Code --skill create-data-context -g -a gemini-cli -y`

## Description

Create, update, inspect, or repair Data Analytics semantic layers. Use when the user asks to save data context or create a semantic layer that future Data Analytics work can inspect and cite.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Create Data Context

This skill creates and maintains semantic-layer skills for Data Analytics. A semantic-layer skill is an explicit artifact the user can inspect and cite later. It captures how future analyses should interpret the data, for example which metric definition is canonical, which dashboard or table is the best source of truth, and what caveats should be checked before answering.

Data-task routing is owned by the Data Analytics `index` skill. If the user wants Data Analytics to do work with data now, route to `index`, whether the work starts from connected sources, uploaded files, pasted tables, sample data, or an existing semantic layer. Examples include answering a metric question, building a report, or checking a dataset.

Use this skill only when the user asks to save data context or create, update, inspect, or repair a semantic layer.

## Runtime Routing

Use the current runtime's classified `surface` and `mode` values, plus the capabilities exposed in the run, to choose intake and persistence. Build and validate the same canonical semantic-layer skill package before writing it to any destination.

For intake:

- Use structured intake when a supported form action is available.
- Use conversational intake for open-ended details and for runtimes without a supported form action.

Choose one persistence destination by default:

The rest: https://github.com/XiaomiMiMo/MiMo-Code/blob/HEAD/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/create-data-context/SKILL.md
