agentleFS
huytieuhuytieu/COG-second-brain/.claude/skills/data-forms/SKILL.md

data-forms

Skill1.3k starsChanged 4 months agoMITView on GitHub

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 the caveat). Style-agnostic — use with whatever palette or design system the destination already has. Use when charting survey results, benchmark data, usage metrics, or research findings for a post, brief, deck, or report, and whenever the default bar chart feels like it's burying the point.

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 2 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the huytieu/COG-second-brain repository that our weekly crawl found: only 4 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 49
  2. Distinctive:

    Color means something or it isn't there: Don't color bars that a label already distinguishes.

    line 77
  3. Distinctive:

    Bars start at zero, always: If zero isn't meaningful for the metric, you wanted a dot plot (form 17), not a bar.

    line 88
  4. Very specific:

    Read that form's entry in references/forms.md — especially its failure mode.

    line 99
  5. Distinctive:

    Render it and look at the image: Not the DOM, not the spec — the pixels.

    line 103
  6. Distinctive:

    Read the rendered image and answer each.

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.