mcpField
D
data-forms

data-forms

github.com/huytieuData & databases1.3k110 installsUpdated 6d ago
Repository

About data-forms

data-forms is a data-visualization skill for selecting chart forms and applying clear visual encoding. It is intended for people building survey and analytical charts, with a picker covering 21 forms and guidance on emphasis, labels, and rendered-image checks.

Key features

  1. 01Choose chart forms based on data
  2. 02Catalog of 21 chart forms
  3. 03Apply encoding and labeling rules
  4. 04Check rendered output and failure modes

Use cases

  1. 01Chart a survey response distribution
  2. 02Compare groups or points in time
  3. 03Show trends, rankings, or text themes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/huytieu/cog-second-brain --skill data-forms

After installing, type/data-formsin Claude Code to confirm it loaded.

Bundled filesreferences/forms.md

Details

From the project README

data-forms

A repertoire, not a style. Distilled from Lenny's Newsletter data illustrations (2025-2026 survey issues) — what makes those charts work is not the palette, it's the form selection and the encoding discipline. Both are portable to any visual language.

For the visual layer, use whatever the destination already has: your product's brand tokens for in-product surfaces, the built-in dataviz skill for palette construction and accessibility, your house style for personal sites. This skill decides what shape the data takes — the layer above color.

Start here: the picker

What the data doesReach forForm #
One question, 3-6 ordered answersOrdered column · Waffle · Nested bands1 · 6 · 7
One question, many multi-select answersRanked bar · Valence bar3 · 4
Same metric, two points in timePaired columns · Slope2 · 9
Same metric, 3+ points in timeTime-series area · Bump13 · 18
One metric across 7-10 ordered bucketsStaircase column14
One metric across many unordered segmentsSmall multiples · Dot plot8 · 17
Signed score (-100…+100, net, delta)Diverging bar5
Two groups compared across many rowsDumbbell16
Agreement / Likert across several statementsCentered stacked row19
Segments × several metricsPill matrix10
Open-text answersWord cloud · Coded theme bar11 · 3
A relationship the numbers can't carryMetaphor diagram · Two-column flow12 · 20
A named segmentation from clusteringPersona cards15
Two dimensions, few labeled pointsNamed-quadrant scatter21

Full catalog with mockups and failure modes: references/forms.md.

Six decisions that matter more than the form

1. Write the takeaway before you pick a form. Finish the sentence "The point of this chart is ___." If you can't, you have a table, not a chart, and no form will save it. That sentence becomes the headline. Two legal headline modes:

  • Claim, for comparisons and analysis — "Burnout is surging, and optimism is fading"
  • Question verbatim, when the chart is the answer distribution — "How worried are you about layoffs?"

Never a field name. "Burnout by company size" is a spreadsheet tab.

2. Print every value. The reader should never estimate against an axis. Number sits adjacent to its mark. This is what earns you the right to do #3.

3. Delete the axis. Baseline only — no y-axis, no gridlines, no ticks. Exceptions: time series and slope charts, where the shape is the message and needs a reference grid. Everywhere else the axis is scaffolding you forgot to remove.

4. No legend when a direct label fits. Category name goes on or beside its mark. A legend is justified only when one key serves several panels (small multiples) or encodes a dimension orthogonal to position (valence, group membership).

5. Highlight two, mute the rest. In a nine-category comparison, only the one or two subjects named in the headline get emphasis; everyone else recedes. The chart should argue the headline, not present the table. If the highlighted subject isn't actually the outlier, the chart just disproved your headline — change the headline, not the data.

6. Show the caveat in-frame. Small n, margin of error, non-response, "percentages sum past 100 because multi-select" — put it in the chart, not a footnote. A dashed outline on a non-significant bar with a bracket reading "difference within margin of error" is more credible than a clean chart plus a disclaimer nobody reads.

And one restraint: at most one annotation. Point at the thing a reader would otherwise miss. Zero is fine. Two is clutter.

Encoding rules of thumb

  • Color means something or it isn't there. Don't color bars that a label already distinguishes. Reserve saturation for the subject of the headline.
  • Sequential ramp = magnitude or rank. Diverging ramp = signed. Categorical = identity. Mixing these is the most common way a chart lies.
  • Per-column scales in a matrix. In form 10, each metric gets its own ramp and its own direction, otherwise "dark = high" fights "dark = bad."
  • Neutral is an unfilled outline, not grey. Grey reads as missing data.
  • Redundant encoding is fine where there's no axis — a word cloud can size and color by frequency; nothing is being wasted.
  • Order carries meaning. Sort by value unless the categories are inherently ordered (time, buckets, Likert). Keep the same order across every panel of a small multiple.
  • Bars start at zero, always. If zero isn't meaningful for the metric, you wanted a dot plot (form 17), not a bar.
  • Anthropomorphize only when the subject is human. Waffle grids of people, emoji anchors, persona illustrations — these earn their keep for sentiment and headcount, and read as cheap for latency and revenue.

Workflow

  1. State the takeaway in one sentence.
  2. Classify what the data does (distribution / ranking / comparison / trend / correlation / composition / qualitative) and pick from the picker table.
  3. Read that form's entry in references/forms.md — especially its failure mode. If your data triggers the failure mode, take the alternative listed there.
  4. Apply the six decisions and the encoding rules.
  5. Build it in whatever the destination uses.
  6. Render it and look at the image. Not the DOM, not the spec — the pixels. Run the checklist. Fix what you see and re-render.

Pre-ship checklist

Read the rendered image and answer each. A "no" is a fix, not a note.

  • Headline states a finding or asks the literal question — not a field name
  • Every mark carries its value, legible at 50% zoom
  • No legend that direct labels could have replaced
  • Emphasis lands on the subject of the headline; everything else recedes
  • Longest label doesn't collide with, wrap under, or overflow its mark
  • Bars start at zero; no truncated scale
  • ≤1 annotation
  • Squint test: at 25% zoom the shape of the answer still reads
  • Caveats (n, margin of error, multi-select) visible in-frame
  • The form's own failure mode from references/forms.md does not apply

Reference

references/forms.md — 21 forms, each with an ASCII mockup, when to use it, and the condition under which it stops working.

Comments

Markdown supported