Skip to content

Latest commit

 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artifacture

Multiple visual formats from token-efficient source.

Artifacture gives coding agents a shared library for pages, slide decks, magazines, posters, and interactive explanations. Write the content in MDX, use TSX for custom behavior, or describe a chart in JSON. Components supply the layout, styling, and interaction; exporters produce standalone HTML.

The agent spends tokens on your explanation and data. Repeated HTML, CSS, chart geometry, and presentation controls live in the library.

A repair story told through countable units and rung bars

One library, several formats

Compose charts, diagrams, code, and text inside the format your reader needs. The same component library serves a reading page, a slide sequence, or a poster; each has its own layout and reading order.

Reading page Slide deck
A long-form reading page with diagrams and supporting detail A slide deck with large type and a focused argument
Horizontal magazine Presentation with drill-down details
An editorial magazine spread A fixed-stage presentation with supporting detail
Poster Interactive explanation
A typographic poster An interactive explanation with answer controls

Start with your material

npx skills add theclaymethod/artifacture

Ask your coding agent for an artifact:

Make a data story from these repair records, with charts for outcomes and faults.
Explain this repository's request path as a step-by-step diagram.
Turn this migration plan into a slide deck with supporting detail on demand.

The skill loads the task-specific guidance it needs. It authors editable source, exports the result, and checks it in a browser.

For local development, use Node 22 or newer and run these commands from the checkout:

npm install
npm run ve:export -- examples/visual-explainer-mdx/data-charts.mdx --out dist/charts.html

Compact source, complete output

A chart is a title and a data specification:

{
  "title": "Lamps were most common",
  "source": { "label": "Illustrative workshop records" },
  "spec": {
    "kind": "rung-bars",
    "unit": 1,
    "unitLabel": "device",
    "data": [
      { "label": "Lamps", "value": 24 },
      { "label": "Headphones", "value": 18 },
      { "label": "Kettles", "value": 16 },
      { "label": "Radios", "value": 14 }
    ]
  }
}

The renderer supplies the marks, labels, responsive layout, and exact-data table. Export the example JSON:

npm run ve:chart -- examples/visual-explainer-mdx/lieflat-chart.json --out dist/chart.html

MDX combines prose with components such as LieflatChart, DiagramCanvas, and DiffBlock. TSX adds state and custom visuals. Revisions change the source and reuse the rendering code, keeping layout and interaction boilerplate out of the agent’s response.

Token efficiency comes from this division of work and task-specific guidance. Exported HTML includes the runtime it needs; its file size is separate from the source the agent writes.

Visual tools you can combine

Show Tool Author in
Counts, dated activity, intersections, individual paths LieflatChart JSON / MDX / TSX
A few values to compare DataChart MDX / TSX
Flows, trees, swimlanes, timelines DiagramCanvas MDX / TSX
A sequence revealed step by step DiagramWalkthrough MDX / TSX
Complex architecture, workflows, data flows, lifecycles Archify Typed JSON
Code changes, structured data, comparisons, questions DiffBlock, JsonTree, DecisionMatrix, Quiz MDX / TSX

Data stories

Lieflat is the default chart language. Its five forms—unit-field, rung-bars, barcode, bubble-matrix, and threads—show counts, comparisons, dates, intersections, and individual paths. All five views in the repair story use the same 72 explicitly illustrative records.

Daily arrivals in June, plotted by date with the busiest day annotated

A bubble matrix compares cable, switch, battery, and circuit faults across four device types

Individual threads connect each device to its fault and repair outcome

Use the chart guide for data contracts and authoring examples.

Diagrams and walkthroughs

DiagramCanvas sizes nodes from their labels and routes around unrelated nodes. Flow layouts adapt to available width; dense figures scroll locally, and supported layouts provide mobile alternatives.

DiagramWalkthrough reveals authored steps along the graph’s routes. Playback starts paused, with manual stepping available on mobile and with reduced motion.

A cache-miss walkthrough with playback and step controls

Walkthrough source · Walkthrough API

For larger system maps, Artifacture integrates a pinned Archify runtime with typed schemas and validation.

Artifacture’s export pipeline rendered as an Archify architecture diagram

npm run ve:archify -- setup
npm run ve:archify -- guide "API request with cache fallback" --json
npm run ve:archify -- validate architecture examples/visual-explainer-mdx/artifacture.architecture.json --json
npm run ve:archify -- deliver architecture examples/visual-explainer-mdx/artifacture.architecture.json dist/architecture.html --json

Shared visual defaults

Typography, spacing, and colors come from presets shared across formats. Lieflat defaults to paper gray, charcoal, and direct labels. Algebrica adds serif reading text; Mono Color uses restrained color and asymmetric composition.

Algebrica Mono Color
Algebrica uses serif text and geometry to explain vector projection Mono Color combines an opened mouse photograph with asymmetric typography

Set preset on ExplainerShell, SlideDeck, PresentationDeck, or PosterCanvas. You can also supply a design system.

Export, check, revise

Keep the MDX, TSX, or JSON as the editable source. Share the exported HTML. Browser checks catch mechanical failures; visual review checks composition, reading order, and labels.

npm run ve:verify -- dist/charts.html --json dist/charts.report.json --screens dist/charts-screens

Both required review stages must pass before an artifact is verified. Make revisions in the source and export again. See Verification for the full process.

Editable examples · Templates · Presentation guide · Contributing

Credits and license

MIT. Artifacture began as a fork of nicobailon/visual-explainer.

Visual references include Lieflat Charts, Algebrica, Mono Color, PR Lens, and Pierrick Calvez’s typography guide. Archify is an integrated external runtime. Reference images and noncommercial source implementations are not bundled. See provenance and licenses.

About

Verified visual explainers for coding agents — MDX/React authoring, deterministic design-quality verification, multi-model eval harness

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages