Data forms

From huytieu/COG-second-brain · View interactive version

Data forms is an AI agent skill from the GitHub repository huytieu/COG-second-brain. Pick the right way to represent a dataset so a reader gets the finding in three seconds — a catalog of 20+ chart and diagram forms with when-to-use and failure modes, plus the encoding decisions that make any of them readable (takeaway headline, direct labels, kill the axis, highlight-and-mute, show

How to use this skill

Skill file

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 does | Reach for | Form # |

|---|---|---|

| One question, 3-6 ordered answers | Ordered column · Waffle · Nested bands | 1 · 6 · 7 |

| One question, many multi-select answers | Ranked bar · Valence bar | 3 · 4 |

| Same metric, two points in time | Paired columns · Slope | 2 · 9 |

| Same metric, 3+ points in time | Time-series area · Bump | 13 · 18 |

| One metric across 7-10 ordered buckets | Staircase column | 14 |

| One metric across many unordered segments | Small multiples · Dot plot | 8 · 17 |

| Signed score (-100…+100, net, delta) | Diverging bar | 5 |

| Two groups compared across many rows | Dumbbell | 16 |

| Agreement / Likert across several statements | Centered stacked row | 19 |

| Segments × several metrics | Pill matrix | 10 |

| Open-text answers | Word cloud · Coded theme bar | 11 · 3 |

| A relationship the numbers can't carry | Metaphor diagram · Two-column flow | 12 · 20 |

| A named segmentation from clustering | Persona cards | 15 |

| Two dimensions, few labeled points | Named-quadrant scatter | 21 |

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:

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

distinguishes. Reserve saturation for the subject of the headline.

Mixing these is the most common way a chart lies.

direction, otherwise "dark = high" fights "dark = bad."

by frequency; nothing is being wasted.

(time, buckets, Likert). Keep the same order across every panel of a small multiple.

dot plot (form 17), not a bar.

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.

  1. 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.

  1. Apply the six decisions and the encoding rules.
  2. Build it in whatever the destination uses.
  3. 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.

Reference

references/forms.md — 21 forms, each with an ASCII mockup, when to use it, and the

condition under which it stops working.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.