agentleFS
Evan-Kim2028Evan-Kim2028/agent-skills/skills/frontend/mobile-blog-chart-visual/SKILL.md

mobile-blog-chart-visual

Skill1 starsChanged 3 months agoMITView on GitHub

Mobile-readable **blog / article SVG (and static) charts** without wrecking desktop density — viewBox/fontSize scale formula, soft type floors, label wrap, plot-share, fixed right value column, no max-h / overflow-hidden clip, no chart subtitles under the title. Use when blog figures are squinty, clipped, sparse, "mobile chart", "fix blog charts", or /mobile-blog-chart-visual. Prefer mobile-app-echarts-visual for product card/portfolio ECharts. Prefer tufte for chart-type honesty; browser-verify for e2e proof.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer data density: the plot carries most of the frame.

    line 19
  2. Distinctive:

    Prefer no in-SVG title when HTML title exists (duplicate titles waste height on mobile).

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Mobile blog chart visual

Job: Blog/article charts readable at ~390×844 and useful at ~720–880 article width. Mobile floors are a floor, not a reason to explode type. Prefer data density: the plot carries most of the frame; labels wrap rather than steal the plot.

Scope: Static / SSR SVG and carefully authored blog PNGs. Not product ECharts (card price matrix, portfolio history) — use mobile-app-echarts-visual.

Sources (cite when extending this skill)

SourceWhat we take
Nadieh Bremer — Mobile vs desktop datavizTechnique ladder: scale (non-linear fonts), fit width, stack/horizontal rows, reposition, or two charts — no one-size-fits-all
Responsive SVG charts — viewBox pitfallsUniform viewBox scale stretches text; floors/caps required
Constant font size in responsive SVGsIndustry workarounds for label size under scale
Tableau — mobile dashboard designSimple marks, fewer chrome layers, high-level stats
Tufte (data-ink / density)Plot share ≥ ~0.48; empty gutters = defect

Core formula (always)

rendered_css_px ≈ paint_width × (fontSize_user_units / viewBoxWidth)
min_fontSize(role) = ceil(TARGET[role] × viewBoxW / 332)

Design width 332px (390 viewport, padded figure).

RoleSoft floor @ 332Soft cap @ ~720
Title (prefer HTML h3 text-base+, not in-SVG)13—
Category / row label11≤ ~24
Value tip11≤ ~22
Axis tick10≤ ~20
Source10—

Squint: ≤~9px @ 332 → fail. Oversized: labels >~24px @ 720 or plot share < 0.48 → fail density.

Data density

RulePass
Plot shareplotW / viewBoxW ≥ ~0.48
Wrap over pad≤ 11 chars/line (forces “Umbreon VMAX”-class wrap)
Row pitch~1.7× (1 line) / ~2.15× (2 lines)
Bar thickness~0.4–0.5 of rowH
ValuesFixed right column (textAnchor=end), not tip-after-full-bar
Char widthLabel 0.62×, value 0.65× (Inter 600 — not 0.55 regular)

Chart title rule (hard)

  • One title only: HTML heading immediately above the figure (h3 / section title).
  • No subtitle under that title (no second line restating the axis or “Figure N: …” above the plot).
  • Captions / sources below the plot only (Source: silphcoanalytics.xyz, one insight sentence).
  • Prefer no in-SVG title when HTML title exists (duplicate titles waste height on mobile).

Hard bans

  • max-h-* crushing aspect
  • overflow-hidden on chart frames that clips labels/tips
  • Tip-after-bar without reserved right column
  • Synthetic-only unit tests (must use real strings: $140M, Umbreon VMAX)
  • Chart subtitles after the title

Workflow

  1. List every figure in the article.
  2. Record viewBoxW, fonts, pads, plot share, frame classes.
  3. Soft floors + wrap + fixed value column.
  4. Assert plot share + desktop soft caps.
  5. Strip subtitles; source under plot.
  6. Verify 390 and desktop.
  7. e2e: blog geometry probe (see verification.md).

Verification (V1–V14)

See references/verification.md. Critical:

#Check
V5/V13No clip; longest tip complete
V11Plot share ≥ 0.48
V12Desktop soft cap
V14No overflow-hidden clip
V15No subtitle under title

Hand off

NeedSkill
Product ECharts (card/portfolio)mobile-app-echarts-visual
Chart type honestytufte
Sticky chrome / buttonsproduct-chrome-craft / product-ui-craft
Browser e2ebrowser-verify

Done criteria

  • V1–V3, V11–V15 at dual viewports
  • Real-string unit tests green
  • Blog geometry e2e green (or documented skip with reason)
  • Live mobile screenshot: no clip, no subtitle under title

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.