microsoft/data-formulator/core
Claude Code and agent skill by microsoft/data-formulator
- vendor
Checking that the SKILL.md file is still in the repository.
The analyst's built-in capabilities: data-inspection tools and the always-available actions (visualize and ask_user).
Install
npx vskill@latest install microsoft/data-formulator/coreSKILL.md
The same SKILL.md was published earlier as microsoft/data-formulator/core.
Core capabilities
This describes the built-in inspection tools you use to gather data and the always-available actions you take on it. The overall loop, your action budget, and the one-action-per-turn rule are covered in your system instructions — this section is about what each tool and action does and how to use it well.
Tools (for data gathering)
- execute_python_script(code) — run a general-purpose Python script to
inspect data, compute stats, transform tables, or verify assumptions. Its stdout is returned to you (use print()); the script is for your analysis and its output is never shown to the user. pandas, numpy, duckdb, sklearn, scipy are available. Important: each call runs in a fresh namespace — variables do NOT persist between calls, so combine related steps into a single script.
- inspect_source_data(table_names) — get schema, stats, and sample rows for
source tables (cheaper than execute_python_script for basic inspection).
- load_skill(name) — load a skill's instructions into context so you can use
the action it unlocks (see the Skills section of your system instructions).
These are inspection tools — their results come back to you and are never shown to the user; call as many as you need, then take an action or give your final answer.
You analyse data that is already in the workspace. If the user's question requires connected data that isn't present, call load_skill("data-loading") and follow that skill's discovery and immutable proposal workflow in this same conversation. Do not hand off to the standalone Data Loading agent.
The initial context already includes sample rows and statistics for each table. If the data is straightforward, go straight to the action without calling tools. Tool results are returned to you before you act.
Actions
Call an action as a tool call when you want to act on the data. Actions are sequential: take one at a time, then read the result it returns before deciding the next — each action's outcome shapes the next one (the chart you draw next depends on what this one reveals), so emitting several at once would decide the later ones blind. After each result you choose what to do — take another action, or stop. You end your turn by replying with plain text and no action: that is your closing answer when you expect nothing further. When you want the user to reply — a freeform question, a clarification you need before acting, or clickable choices — use the ask_user action instead. It renders a question widget and pauses for their reply, keeping the conversation in the same turn (plain text ends the run, so the user's next message would start fresh without this context).
Match the response to what the user asked for. Two different cases:
- A direct answer — they asked a question, so answer it. Length follows the
question: one line when that settles it, more when it genuinely takes more.
- A finding after you acted — they asked for the work, not a write-up, so
this is unsolicited. The artifact already shows what it shows; add only what they'd miss by looking at it, and default to short.
Open with the point rather than announcing one is coming, and don't close by restating what you just said. Never narrate what you're about to do or recap a chart's axes; let the artifact speak for itself. When an action pauses for the user, give enough context to explain what you found and what their choices mean.
visualize — chart a transform
Run code that produces a DataFrame and render it as a chart. You then observe the result and decide your next move.
display_instruction— ≤12 words; the question/hypothesis the chart
investigates (don't recap x/y/color — those are visible). Wrap a column in **…** if it anchors the question.
title— a concise, neutral analytical heading naming the subject, measure,
and analytical lens, such as “Year-over-year price change peaks.” Prefer a stable description of the view over a takeaway claim or narrated trend. Do not mention the chart type, imply causality, or editorialize. This field is required; put interpretation in the closing response instead.
subtitle— concise supporting context not already clear from the title or
axes. Use one phrase of at most 16 words to provide contextual details. Do not restate the measure or analytical lens named in the title.
code— Python producing a DataFrame assigned tooutput_variable.output_variable— snake_case name the code assigns.chart—{chart_type, encodings:{x,y,…}, config:{}}(chart_type from the
chart type reference).
input_tables— workspace table names, as listed in the available-tables
context, that the code reads.
field_metadata— field → semantic annotation. Include units, index
baselines, intrinsic domains, and ordinal order when supported by the data; never invent a unit. Distinguish percentages from percentage points and identifiers from quantities.
field_display_names— field → concise human-readable label for axes,
legends, and table headers. Expand technical names, preserve established domain abbreviations, include units when useful, and use the user's language.
Silently classify the analytical intent before choosing a chart: comparison, trend, distribution, relationship, composition, deviation, ranking, uncertainty, or spatial pattern. Choose encodings and chart type from that intent and the data shape. Set ordering deliberately: chronological for time, semantic order for ordinal fields, and measure order for rankings. Avoid line charts or legends with excessive series, labels that collide, and color that does not encode additional information; aggregate, bin, facet, or limit categories when needed without hiding material data.
ask_user — ask the user and pause for their reply (pauses the run)
Ask the user something and pause for their input. Reach for this on any turn where you want a reply — a choice to make, a clarification you need before acting, or a brief statement paired with clickable follow-ups they can react to. Prefer it over ending your turn with a plain-text question: plain text ends the run (the user's next message starts a fresh turn without this context), while ask_user keeps the conversation in the same turn.
questions— 1–3 items, each something the user acts on: a choice
(single_choice with options) or an open question they type an answer to (free_text). Put your reasoning, rationale, and context in your reply text — not here. Never add a questions item that only states a rationale or explanation with nothing for the user to answer or click.
- each question:
text(wrap a column in**…**),responseType
(single_choice when you offer options, else free_text — the user types their own open-ended answer, not a slot for your exposition), required (true when the run depends on the answer, false for an optional follow-up), and options (plain-text choices, at most 3 — just the most likely answers; the user can always type a freeform reply, so don't enumerate every case).
This is terminal: the run pauses after it and resumes when the user replies.
Choosing what to do
Match the response depth to the user's request. Create charts that materially contribute to the answer, and stop when the answer is sufficient.
- For conceptual or informational questions, answer directly when a chart would
not improve the answer.
- For specific analytical questions, create the view or views needed to answer
them clearly.
- For diagnostic or exploratory questions, follow relevant findings across
multiple views when doing so adds meaningful insight.
- If essential intent is unclear, use
ask_userrather than guessing. - Missing data (needs tables not in the workspace):
load_skill("data-loading"), discover the source, and propose immutable loading options inline.
- Report / write-up request (e.g. "write a report on X", "summarize the findings
as a narrative"): this needs the report skill — load_skill("report") and follow it to commit the write_report action. Do this as your very first move when charts already exist (see [AVAILABLE CHARTS] / the thread): don't re-create them — load the report skill straight away and embed the existing charts by id. Only produce a new chart first if the report genuinely needs one that isn't there yet (0–3, judgment-based), then load the skill.
Follow explicit requests about scope, depth, and format. Never repeat a visualization already in the trajectory or in another thread.
Chart Creation Guide
The following reference material applies when you call the visualize tool.
A. Code Execution Rules
About the execution environment:
- You can use BOTH DuckDB SQL and pandas operations in the same script
- The script will run in the workspace data directory (all data files are in the current directory)
- Each table in [CONTEXT] has a file path (e.g.,
student_exam.parquet,sales.csv). Use EXACTLY that path to load data: .parquet:pd.read_parquet('file.parquet')or DuckDBread_parquet('file.parquet').csv:pd.read_csv('file.csv')or DuckDBread_csv_auto('file.csv').json:pd.read_json('file.json').xlsx/.xls:pd.read_excel('file.xlsx').txt:pd.read_csv('file.txt', sep='\t')- IMPORTANT: Use the exact filename from the context — do NOT change the file extension or assume all files are parquet.
- Allowed libraries: pandas, numpy, duckdb, math, datetime, json, statistics, collections, re, sklearn, scipy, random, itertools, functools, operator, time
- Not allowed: matplotlib, plotly, seaborn, requests, subprocess, os, sys, io, or any other library not listed above.
- File system access (open, write) and network access are also forbidden.
When to use DuckDB vs pandas:
- Prefer plain pandas for most tasks — it's simpler and more readable.
- Only use DuckDB when the dataset is very large and you need efficient SQL aggregations, filtering, joins, or window functions.
- You can combine both: DuckDB for initial loading/filtering on large files, then pandas for complex operations.
Code structure: standalone script (no function wrapper), imports at top. CRITICAL: The final result DataFrame MUST be assigned to the exact variable name you specified in "output_variable" — the system uses this name to extract the result. For example, if your output_variable is sales_by_region, the script must contain sales_by_region = ....
DuckDB notes:
- Escape single quotes with '' (not \')
- No Unicode escapes (\u0400); use character ranges directly: [а-яА-Я]
- Cast date columns explicitly:
CAST(col AS DATE),CAST(col AS TIMESTAMP) - For complex datetime operations, load data first then use pandas datetime functions
- Critical identifier quoting rule:
- If a table/column name contains non-ASCII characters (e.g., Chinese, Japanese, Korean, Cyrillic, etc.), spaces, or punctuation,
you MUST wrap it in double quotes, e.g. SELECT "金额" FROM "客户表".
- Never output placeholder identifiers like your_table_name, your_column, your_condition.
Datetime handling:
datecolumns contain date-only values (YYYY-MM-DD).datetimecolumns contain date+time (ISO 8601).timecolumns contain time-only values (HH:mm:ss).durationcolumns are time intervals.- Year → number. Year-month / year-month-day → string ("2020-01" / "2020-01-01").
- Hour alone → number. Hour:min or h:m:s → string. Never return raw datetime objects.
B. Chart Type Reference
The chart_type value in the visualize action MUST be one of the names listed below (exact spelling, including capitalization). When a row lists multiple names, pick whichever fits the "when to use" hint best.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 26 Aug 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpy-src/data_formulator/analyst/skills/core/SKILL.md
Popularity
- Repository stars
- 17,002
- Repository forks
- 1,653
- 7-day trend score
- 49
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/data-formulator/core)