Data explorer
A data explorer is one report.json: the data rows, the filters, and the blocks on each tab. This skill's template draws it like an analytics tool: tabs in a top bar, a strip of numbers (top) and a list of evidence rows (bottom) that stay on every tab, the blocks of the tab between them, and a filter sidebar where every name keeps one color across the page. You decide what to show; the template owns how it looks. You write no HTML, CSS or page script.
The page is for people: they scan it, filter it and comment on it. An agent that needs the numbers reads report.json, so shape the page for its human reader and add nothing to it for agents.
Words are the scarcest thing on the page. A reader scans numbers, colors and bars; prose goes in method.
When the reader has to choose between options or approve a plan, write a report instead: a page with the answer first.
The block reference is references/blocks.md; read it before step 1.
Steps
Questions. From the request, write the 3 to 6 questions the reader wants answered. Each becomes a tab. Name each one's shape from the first column of Which block for which question, from the rows for a tab, not
toporbottom. Done when every question has a shape and none overlaps another.Profile. Write a short script that prints, for each source file, its row count, every field with its type, range and share of nulls, and a few sample rows. Read the source's README for what each field means and how it was counted. Done when you can name the fields and the join keys each question needs, and the caveats the README states.
Entities and filters. Pick the one or two entities the reader thinks in (customers, repositories, countries, types of work) and the period or mode they switch between. Each entity becomes a
listfilter, and the period atabsfilter. A filter'sfieldis the link: every dataset with a column of that name follows the filter, and every block that shows that column (a chart'sseriesorx, a bar list'slabel, a matrix'sxory, anentitytable column) colors each name the same way and filters the page when clicked. A scatter'slabelfilters too; its colors come fromseries. A histogram's bin filters by its range onx, with no filter to declare. So name those columns after the filter's field, in every dataset. Done when each entity and period is a filter and you know which datasets carry its column.Prep. Write
prep.py(orprep.mjs) next to the report. It reads the raw files and writesreport.jsonwith aggregated rows: one dataset per block shape, plus one dataset of evidence rows (the people, tickets or items behind the numbers). Every number on the page is computed here, so a rerun on new data rebuilds the report. Fold any long tail into one row namedOther …and keep missing values asNot setorUnknown: the template sorts those last and grays them. Two rules keep the numbers honest:- Exclusions apply everywhere. Filter an account
methodsays is left out (a bot, a test user) from the source rows once, before any aggregation, so no ranking, "top" column or fact can pick it, not only the main lists. - No partial period against a full one. When the data stops mid-period (2026 to November 11), give that period no change against the last full one: a cut-short year reads as a collapse. Compare a trailing full window instead, like the last 12 months against the full year before, and leave partial periods out of year-over-year return rates. Done when the script runs from scratch, an excluded account appears in no dataset, and it prints the headline numbers you'll quote.
- Exclusions apply everywhere. Filter an account
Blocks. Put 4 to 6 numbers in
top(astatsblock) and the evidence rows inbottom(atablewith"style": "rows"); both stay on every tab. On each tab, pick 2 to 6 blocks by the question's shape, using the table in references/blocks.md, and mix them: a tab of only line charts reads as a chart dump, a tab with a table, a matrix and a bar list reads as an instrument. Open the first tab with afactsblock: 2 or 3 numbers that answer the request, each with one sentence. Done when every block answers its tab's question and no two blocks show the same numbers.Words, last. Write a short product-like
titleand asubtitle(the source and the date range), atitleper block that names what is measured, and anoteonly where a block would mislead without it or says how to use it ("Click a row to filter"). A partial period is labeled as one ("2026 to Nov 11"), and a fact that compares periods names two of the same length. Definitions, caveats and how you counted go inmethod. Done when no block has a sentence the numbers already show.Build and look. Build the page as Build it says, and fix every error and warning the build prints; each says how. Then look at it like a reader, in every screenshot (light, dark and phone), or without Node in your host's preview if it has one: labels collide or are cut, a block is empty or flat, colors disagree between blocks, a tab without a table or matrix, a fact the blocks don't support. Change the blocks or the prep, not the template. Done when the build exits 0 and you have opened every screenshot of the last build, or, without Node, when
report.jsonkeeps every limit and you have looked at the page.Hand back the paths to
report.htmlandreport.json, the screenshot folder if you built with--shots, and three lines: what the report answers, the most surprising finding, and anything the data couldn't answer. The page is one file that opens from disk or any static host. When the reader wants to share it, publish it to Drop ashtml, following thevitehub-dropskill: the link is private, a rebuild on new data becomes a new version at the same URL, and readers can comment on the numbers.
Build it
The page is assets/page.html with report.json, assets/style.css and assets/app.js in its slots. Fill it the first way your environment allows:
With Node, run the build. It checks
report.jsonagainst every limit and names the fix, fills the page, and with--shotsscreenshots every view. It needs this skill'sscripts/andassets/folders side by side; when the skill isn't on disk, unpack it withmkdir -p /tmp/de-skill && curl -sL https://drop.vitehub.dev/.well-known/agent-skills/data-explorer.tar.gz | tar xz -C /tmp/de-skill. It loads packages from the folder you run it in. Set that folder up once:mkdir -p /tmp/de-build && cd /tmp/de-build && npm init -y && npm i vega vega-lite playwright && npx playwright install chromiumThen build from
/tmp/de-build, where<skill>is this skill's folder and<dir>the report's, both absolute:node <skill>/scripts/build.mjs <dir>/report.json <dir>/report.html --shots <dir>/shotsWithout
playwright, drop--shots. Withoutvegaandvega-lite, the page loads Vega from jsDelivr when it opens, so it needs a network connection.Without Node, such as in a chat app's sandbox, fill assets/page.html yourself, with any language:
report.jsongoes inside<script id="report-data">with every<written as\u003c,style.cssinside<style id="rp-style">, andapp.jsinside<script id="rp-app">. Set the<title>. When a file of this skill isn't on disk, read it asskill://data-explorer/assets/app.js(orstyle.css) from Drop's MCP server, or athttps://drop.vitehub.dev/.well-known/skills/data-explorer/assets/, and paste it in: the page runs only what it holds, and says which file is missing. It loads Vega from jsDelivr, so it needs a network connection. Nothing checks the limits on this path, so comparereport.jsonwith the limits in references/blocks.md before you hand it back.
When the blocks don't fit
Try another block, a different aggregation in the prep script, or two smaller blocks first. If the question still needs a chart the blocks can't draw, use one vega block with a Vega-Lite spec (see references/blocks.md). The build counts these, so keep them rare and say why in your hand-back.