Editorial illustrations

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

Editorial illustrations is an AI agent skill from the GitHub repository huytieu/COG-second-brain. Generate meaning-carrying editorial data-illustrations in the monotykamary / Linear aesthetic (near-black grayscale, Inter display + mono labels, hairline framed figures) with a single coral accent. This is a GENERATIVE GUIDE, not a template gallery: it teaches the "claim -> geometry" method so any

How to use this skill

Skill file

Editorial illustrations — claim → geometry

The look you want (monotykamary.com, linear.app/now) is not a chart library. It is

a discipline: every figure is a single argument rendered as geometry, framed in

a hairline box, captioned in mono uppercase with the meaning, drawn in grayscale

with exactly one accent. Get the discipline right and any shape reads as "house."

Copy templates blindly and it reads as slop.

Do not reach for a fixed set of charts. Reach for the method below and build the

figure this specific sentence needs. The six worked examples in

references/worked-examples.md are proof the method generalizes, not a menu.

The core move

Take the one sentence the figure must prove. Find that sentence's structure.

Render the structure so the reader believes the sentence before reading it.

The caption is the thesis, written first. If you can't state the figure's claim in

one sentence, you don't have a figure yet, you have decoration. Stop.

Method (run this every time)

  1. Write the claim. One declarative sentence. This becomes the <figcaption>

verbatim. Example: "Nothing is billable until work crosses the delivery boundary."

  1. Name the claim's structure. Which of these is the sentence really about?

Match to a geometric primitive:

| If the claim is about… | Render it as… | Atom (§5) |

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

| a spectrum / more-vs-less / a gradient | ordered cells, rising fill | 5a |

| ranked magnitudes / shares / a comparison | horizontal bars, real axis | 5b |

| a sequence with a tipping point | stage grid + traveling dot | 5a + rail |

| mutual causation / a feedback relationship| two coupled orbits + bridge | 5d |

| a branch / decision under uncertainty | node-and-branch SVG tree | 5c |

| one thing changing form / a data pipeline | stage rail, a glyph per stage| 5e |

| accumulation toward a target | stacked / filling bar | 5a/5b |

| a boundary / inside-vs-outside | a framed region + a crossing | compose |

| a distribution / where mass sits | dot-strip or small-multiples | compose |

If nothing matches, compose a new primitive from the atoms in

references/design-system.md §5. The novelty is expected and welcome; the

tokens and restraint are what must stay constant.

  1. Locate the point. Which single element proves the claim? That one gets

--accent (coral). Everything else stays grayscale. One accent, maybe two.

No point → the figure has no thesis → go back to step 1.

  1. Draw in the system. Apply references/design-system.md: tokens, the

typography law (display = Inter 480–540 tight; everything else mono, tiny,

UPPERCASE labels), the framed-figure chrome, 720-wide SVG viewBox, hairlines

only, no chartjunk.

  1. Add motion only if it demonstrates the claim. A dot that pauses before a

boundary; a pulse crossing between two loops; a signal falling down a branch.

2–6s, ease-in-out, and always killed under prefers-reduced-motion. If motion

doesn't show the argument, omit it. Static is fine and often better.

  1. Caption it. Mono, 8px, uppercase, above-the-rule. State the meaning, not the

data source alone. ("…because X," not "Figure 3.")

The aesthetic in one breath

off-white on a light page (both token sets in design-system.md). Framed figures

on a faint surface; backdrop-filter: blur(16px) on dark, a hairline + faint

shadow on light.

7–11px, labels/captions UPPERCASE. Never a second sans, never a bold display.

#D97757, on the point only. (Set --accent: var(--ink) for monotykamary-faithful

pure grayscale.)

no shadows, no gradients except a single axis-direction hairline.

Full spec + copy-paste token blocks (dark AND light) + primitive CSS:

references/design-system.md. Worked examples with the claim→geometry reasoning:

references/worked-examples.md. Non-chart editorial elements (metric strip, status

aside, kicker+sigil, numbered chapter index, prose type, inline cards):

references/elements.md. Live rendered proof (coral house style, toggleable):

assets/gallery.html.

The figure follows the host page's theme (ALWAYS)

A figure is a guest on someone's page. It must match that page's light/dark, not

impose its own. A dark exhibit panel dropped into a light article reads as a foreign

object (learned the hard way, 2026-07-22).

a host site may default light and carry its own theme toggle (e.g. Charter serif heads + Public Sans body,

blue accent) that stamps data-theme="light"|"dark" on <html> — figures there

must follow data-theme, defaulting light.

media query.** Use :root[data-theme="dark"] .yourfig { … }, NOT

@media (prefers-color-scheme: dark). Real bug (2026-07-22): a figure keyed on the

media query rendered dark on the light blog because the viewer's OS was dark and

the page theme was light. The page's data-theme is the source of truth; the media

query only applies on hosts that have no toggle. On a toggled host, match the site's own

dark tokens (ground #171b22, line #262c36, ink #f1f5f9) so the figure's dark

panel sits in the site's dark, not a foreign near-black.

default = the host's default theme, plus a :root[data-theme="dark"] .fig override

(and a @media (prefers-color-scheme: dark) override too ONLY if the host has no

toggle). Costs nothing, future-proofs the figure.

(keep #D97757 only for large node fills); on near-black use #D97757 directly.

the palette tokens swap. Grayscale-ramp + one coral accent holds on both grounds.

Output contract

figure (or shared token :root), inline SVG, no external requests.

always token-based with prefers-color-scheme + :root[data-theme] overrides, and

reduced-motion-safe. Both are house rules, not optional.

data-URIs or fall back to system-ui/ui-monospace.

passes raw HTML through verbatim via build.py). The blog is light, so the

light tokens apply; keep the dark override for portability. Rebuild with

python3 build.py; the built page uses absolute asset paths so preview it via a

local server or a self-contained standalone copy, never a bare file:// open

(that renders the post unstyled). See a local self-contained HTML preview.

Verify (mandatory — this is a UI/UX output)

Per the Visual Verification rule, a DOM check is not enough. Render it and look.

  1. Open the figure in browser-harness, screenshot it (evidence_shot).
  2. Read the image against the claim: does the geometry make the sentence obvious?

Is coral on the point and nowhere else? Any clipped mono text, misaligned SVG

labels, off-by-one bar math, broken responsive stack at ≤720px?

  1. Fix what you see, re-shot to prove it. Check the light variant too.
  2. Confirm motion stops under reduced-motion.

Anti-slop checklist (reject the figure if any fail)

rounded rectangles.

Blog figure kit

For blog posts, start from the kit before inventing new chrome: references/blog-figure-kit.md (six patterns, screenshot and tweet frames, gotchas) and assets/blog-figure-kit.html (live figures plus the full stylesheet). Body diagrams use these figures; ASCII stays in an animated header only.

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.