OR Key
drop another .md file to compare - side-by-side diff against snappy-chart

snappy-chart

Turns your data into a clear chart.
personal 2 files

What it does for you

Turns your data into a clear chart.

What it produces

A recent result, so you can see the kind of work it returns.

loading…

How to get it

These run inside the Snappy workspace. Want this working in your business? I set skills like this up with you, in one focused week.

Work with me
For developers how this skill is built, graded, and how it runs

at a glance- the short version

actorThing that
auditorThing that judges (must be different - see CONSTITUTION
eval modeauto-shape
categoryTBD
stages4

what's inside - the parts that make up a skill 3/4 present

A skill is just a few plain-text files. Only the main one is required. The rest are optional, added as the work needs them. This is what the skill is made of; how it runs is just below.

The skill
state/skills/snappy-chart/SKILL.md present
the skill itself, in plain text
The main file. It says what the skill is and lays out the steps in plain English.
Code
state/skills/snappy-chart/api.ts present
code the skill can run
Reusable code this skill can call when it needs to.
Scripts
state/bin/snappy-chart/ not present
helper scripts
Optional. Added when a skill has a few commands to run.
Loader
state/skills/snappy-chart/AGENTS.md present
what the AI loads on the fly
Loaded automatically the moment this skill is needed. Kept short on purpose.

how it runs - the shared frame every skill uses 4/5 present

Every skill runs the same way. One part does the work, a separate part checks it, and a short loader hands the AI exactly what it needs for the job. Anything this skill doesn't use shows a one-line note saying why, on purpose, not by accident.

makes the work The worker
present
Thing that the worker
Does the actual work. Whatever it produces is what gets checked next.
checks the work The reviewer
present
Thing that judges (must be different - see CONSTITUTION the checker
A separate checker grades the work, so the part that made it can't approve its own work.
frame
learns Self-correction
not present

This skill doesn't fix its own gaps yet.

tidies up Background fixes
present
queued for rewrite runs in the background
Bigger fixes that can't be made on the spot get queued and rewritten in the background later.
remembers Run history
present
state/log/evals.ndjson auto-shape runs
Every run is written down here, so the next time this skill is used it already knows how the last runs went.
Critical rules the things this skill must not get wrong
No must-not-break rules called out for this skill. Anything important lives in the writeup below.

what it has learned - fixes written back in over time sample

When a run hits something this skill didn't handle, the fix gets written back into the skill so it doesn't happen again. FIXED means it was corrected on the spot. LOGGED means it's queued for a bigger rewrite. Either way, the skill gets a little better and never makes the same mistake twice.

  1. Loading feedback rows…

how the work flows- who makes it, who checks it

actor Thing that
1 generator
Compose OpenUI Lang
Compose the chart through compose_inline by default, or direct Lang when
what this step does
Compose the chart through compose_inline by default, or direct Lang when the exact OpenUI body matters. Use OpenUI primitive chart composition (BarChart, LineChart, PieChart, etc. from the genui-library). Do not emit [[TOOL:Lang]] markers. Chart signatures are not object-row APIs: Do not pass [{label: "A", value: 10}] directly to BarChart or PieChart. That renders as object placeholders and bad percentages in the cockpit.
2 generator
Render in cockpit
The chart appears inline in snappy-os as a generative-UI card via the Lang renderer in dispatch-card.tsx.
auditor Thing that judges (must be different - see CONSTITUTION
3 auditor
Score
```typescript

SKILL.md- the skill, written out in plain English

snappy-chart

The chart skill - purpose TBD.

One paragraph: what this skill does, why it exists, and what failure mode it prevents. If you can't name a failure mode, the skill probably doesn't need to exist - leave it out. Replace this paragraph as soon as the first agent runs the skill and discovers the real shape.

Observed user requests

These are the prompts that triggered this skill being scaffolded:

  • "make that chart better with trend arrows for each skill"
  • "now make that chart better - show it as a grouped bar chart with trend arrows for each skill"
  • "show me a bar chart with three data points: A=10, B=25, C=15"

The Steps section below is a first-draft response to this cluster - refine as eval scores accumulate.

Steps

1. Parse request

Extract the data and chart type from the prompt. Support bar, line, area, pie, and radar charts. Normalize data shape to {labels, datasets}.

2. Compose OpenUI Lang

Compose the chart through compose_inline by default, or direct Lang when the exact OpenUI body matters. Use OpenUI primitive chart composition (BarChart, LineChart, PieChart, etc. from the genui-library). Do not emit [[TOOL:Lang]] markers.

Chart signatures are not object-row APIs:

labels = ["A", "B", "C"]
values = [10, 25, 15]
series = [Series("Data", values)]
bar = BarChart(labels, series, "grouped")
pie = PieChart(labels, values, "donut")

Do not pass [{label: "A", value: 10}] directly to BarChart or PieChart. That renders as object placeholders and bad percentages in the cockpit.

3. Render in cockpit

The chart appears inline in snappy-os as a generative-UI card via the Lang renderer in dispatch-card.tsx.

4. Score

score("snappy-chart", run_id, {
  score: valid_chart ? 1.0 : 0.0,
  primary_issue: valid_chart ? null : "invalid-data-shape",
});

Eval

Actor: the thing that produces the output (a dispatch model, a CLI, or the state/lib/snappy-chart.ts library if one exists). Auditor: the thing that judges (must be different - see CONSTITUTION invariant #3). Name both explicitly.

Score convention:

OutcomeScore
Pass on first try1.0
Failed first, auto-fix applied, re-check passed0.5
Still failing or unrecoverable0.0

If you cannot name a deterministic auditor, switch the frontmatter to eval: manual and log to state/log/pending-eval.ndjson - but fight to avoid manual. Manual is the escape hatch that leaks the thesis.

Gotchas

  • List concrete failure modes you hit while building. Examples: "API

returns 200 with empty body"; "round-tripped text has a , artifact where em-dashes used to be"; "cache file is stale after 12h."

  • If a gotcha matches an entry in user memory (see ~/.claude/CLAUDE.md),

cite the memory name so future agents can follow the trail.

AGENTS.md- what the AI loads when this skill comes up

snappy-chart - loader

Per-turn rules for snappy-chart. Full reference: state/skills/snappy-chart/SKILL.md.

Critical Rules

  1. Compose charts through the current live-surface contract. Default to

compose_inline. Use direct Lang only when you must hand-author the exact OpenUI body. Never emit [[TOOL:Lang]] markers.

  1. Ground the data first. Do not draw a chart until the numbers are real.

Use actual tool results or normalized input from the turn. No fabricated labels, counts, or trend claims.

  1. Normalize chart input. Convert source data into a consistent shape the

chart can reason about before composing. If the data is malformed or too ambiguous to chart honestly, say so and ask for the missing structure.

  1. Use OpenUI chart signatures exactly. BarChart, LineChart, and

AreaChart take labels plus [Series(name, values)]. PieChart takes labels plus values. Never pass {label, value} object rows directly to chart components.

  1. Comparison must read instantly. The surface should make the pattern

obvious at a glance: what is up, what is down, what matters, and what the user should inspect next.

  1. Trend indicators should use standard Lang primitives. Use tags,

callouts, labels, tables, or supporting rows where needed. Do not invent custom SVG or TSX for a normal chart explanation.

  1. Scope-only by default. Render the chart as a preview or structured

answer unless the user explicitly asked to persist, schedule, or publish something from it.

  1. Refinement means improve the same charting surface. For prompts like

"better", "again", or "make this clearer", preserve the underlying data and improve hierarchy, fidelity, comparison, labeling, or supporting context instead of swapping to an unrelated generic card.

  1. Durability uses artifacts, not ui.openui. If a chart view becomes a

reusable live app, it persists via artifact lang_body and reopens via OpenArtifact.

Commands

purposetool / command
compose chart surfacecompose_inline
hand-author exact chart LangLang
inspect component signaturesListComponents
reopen saved chart artifactOpenArtifact
eval logstate/log/evals.ndjson (skill: snappy-chart)
list chart primitives`grep -oE '"[A-Z][a-zA-Z]+Chart[^"]*"' web/node_modules/@openuidev/react-ui/dist/genui-lib/openuiChatLibrary.js \sort -u`

Self-Test

  • [ ] I will use compose_inline by default, not marker emission.
  • [ ] I will ground the numbers before charting them.
  • [ ] I will use flat arrays and Series(...), never object rows in charts.
  • [ ] I will improve the existing chart on refinement turns instead of falling back to a generic recap card.
  • [ ] I will not reference resources/ui.openui or a file-backed chart surface.
  • [ ] I will use standard OpenUI primitives for comparison and trend cues.

Found a gap? Edit this file. <!-- footer-injection-point -->

api.ts- the code it can call

#!/usr/bin/env npx tsx
/**
 * state/skills/snappy-chart/api.ts — sidecar stub for the snappy-chart skill.
 *
 * This file is created by the scaffolder so a fresh skill folder is
 * structurally valid. Replace the placeholder with the real implementation
 * the moment the skill needs executable logic, OR move the implementation
 * to `state/lib/snappy-chart.ts` (preferred — the lib path is what
 * `eval: shape` validates against).
 *
 * If this skill has no backing code (prose-only slash command), delete this
 * file and rely on `eval: auto-shape` in SKILL.md.
 */
export const SKILL_NAME = "snappy-chart" as const;

export function describe(): string {
  return "The chart skill — purpose TBD.";
}

if ((() => { try { return import.meta.url === `file://${process.argv[1]}`; } catch { return false; } })()) {
  console.log(JSON.stringify({ skill: SKILL_NAME, describe: describe() }, null, 2));
}

scripts- helper scripts it can run

prose-only skill - 2 inline code blocks live in SKILL.md above (no state/bin/ sidecar yet).

how we check it- the checks, plus the last 10 runs

rubric auto-shape no rubric declared
recent no runs actor/auditor: unverifiable
deps none declared

no recent runs logged - the eval contract is declared but nothing has been graded yet