Skip to content

Require chart captions and a geometry sanity check before shipping - #35

Merged
codeswithroh merged 1 commit into
mainfrom
fix/chart-caption-geometry
Jul 23, 2026
Merged

Require chart captions and a geometry sanity check before shipping#35
codeswithroh merged 1 commit into
mainfrom
fix/chart-caption-geometry

Conversation

@codeswithroh

Copy link
Copy Markdown
Owner

What this changes

Real skill output included a scatter-plot-plus-trend-line card with axis labels but no heading, floating next to a stat list with no stated connection between them — plus a trend line that didn't clearly anchor to the plotted point range. Every other card-shaped component in the show-don't-tell table already requires a caption; a chart, which needs one more than most, was the one exception.

  • references/component-patterns.md — a note directly under the show-don't-tell table: a chart is not exempt from its own requirement. Every chart/graph card needs a one-line heading or caption, and must be tied explicitly to any related stats/claims next to it rather than floating unexplained.
  • references/anti-slop-checklist.md — new checklist item next to the existing SVG-validation item, since scripts/validate_assets.py only confirms well-formed XML, not whether the data marks mean anything. Requires an actual look before shipping: trend lines span the real plotted range, bar heights reflect labeled values, etc.

Closes #29

Test plan

  • Verified fence balance and no stray "preset" mentions in both edited files
  • Confirmed placement reads naturally alongside the existing show-don't-tell table and SVG-validation checklist item

Real skill output included a scatter-plot-plus-trend-line card with
axis labels but no heading, floating next to a stat list with no
stated connection between them — and a trend line that didn't appear
to clearly anchor to the plotted point range. Every other card-shaped
component in the show-don't-tell table already requires a caption; a
chart, which needs one more than most, was the one exception.

- references/component-patterns.md: added a note directly under the
  show-don't-tell table stating a chart is not exempt from its own
  requirement — every chart/graph card needs a one-line heading or
  caption, and must be tied explicitly (visually or in copy) to any
  related stats or claims sitting next to it rather than floating
  unexplained.
- references/anti-slop-checklist.md: new checklist item next to the
  existing SVG-validation item, since `scripts/validate_assets.py`
  only confirms well-formed XML, not whether the data marks mean
  anything. Requires an actual look before shipping: trend lines span
  the real plotted range, bar heights reflect labeled values, etc.

Closes #29

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codeswithroh
codeswithroh merged commit 064810b into main Jul 23, 2026
@codeswithroh
codeswithroh deleted the fix/chart-caption-geometry branch July 23, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data-visualization cards need a required heading/caption; generated chart geometry isn't verified against its data

1 participant