Verified visual explainers for coding agents. Artifacture turns MDX/React sources into self-contained HTML artifacts: architecture diagrams, code walkthroughs, literate diff explainers, comparison tables, and slide decks. It then proves they hold up, with a deterministic 200+ check design-quality verifier (layout, contrast, responsiveness, AI-slop tells), small blind LLM rubric passes, and a multi-model eval harness. Kimi, GLM, DeepSeek, Claude, and Codex all produce passing output from the same ~3k-token authoring contract.
Artifacture began as a fork of nicobailon/visual-explainer and preserves its spirit; see Credits below.
Ask your agent to explain a system architecture, review a diff, or compare requirements against a plan. Instead of ASCII art and box-drawing tables, it authors MDX/React source, generates a self-contained HTML artifact, and opens it in your browser.
> draw a diagram of our authentication flow
> /visual-explainer:diff-review
> /visual-explainer:plan-review ~/docs/refactor-plan.md
> generate this in Blueprint style
Long-form explainer generated via /generate-video --style=long-form. Local render — no cloud, no API keys.
Mono-Industrial — the default aesthetic. Space Grotesk display, Space Mono labels, optional Geist Pixel Square for one moment of surprise per page. Grayscale canvas, status colors only on values.
The same MDX source under the Terminal preset — one of six locked aesthetics. Swap the preset, keep the content: the design system changes, the source never does.
Real output, deployed. Every link is an unedited artifact from the pipeline: one self-contained HTML file, view-source friendly. The full set lives at claytonkim.com/artifacture-examples.
Architecture diagram · computed layout, linearizes on mobile |
Literate diff + quiz · background, walkthrough, comprehension check |
Diff / terminal / JSON blocks · build-time Shiki, ANSI, collapsible trees |
Slide deck · scroll-snap, keyboard nav, PDF export |
Magazine · horizontal full-bleed spreads |
Poster · fixed canvas, PNG export |
Six presets · one source, six locked aesthetics |
Explainer page · the default scrollable format |
Video formats (9:16 reel, 16:9 long-form) render to MP4 through Hyperframes; sample clips are in docs/features.md.
- ve-verify (
scripts/verify/): a 200+ check deterministic design-quality gate — static scans, real-browser measurement (390px overflow, WCAG contrast in both themes, Mermaid render), and small blind LLM rubric passes. Exit codes and JSON reports make it usable as a CI gate. Its own eval suite of seeded-violation fixtures proves each check fires. - Tiered agent docs: SKILL.md is a ~2.5k-token bootstrap plus one ~300-token card per use case (
cards/). A covered flow reads about 3,100 tokens instead of 62,000. Deep references load only on escalation. - 17 shared components (
visual-explainer-mdx/components.tsx): DiagramCanvas with computed layout and CSS-only mobile linearization, build-time Shiki CodeBlock, DiffBlock, TerminalBlock, JsonTree, an interactive Quiz, MermaidBlock with zoom/pan chrome, decks, posters, and more. Strict-export integrity checks catch bad edge ids and undefined components at build time. - PresentationDeck (
visual-explainer-mdx/presentation.tsx): a second deck engine for presented (not scrolled) decks — a fixed 1920×1080 stage scaled to fit any screen, collapsible slide rail, keyboard nav, and drill-down primitives (click-to-expand cards/sheets with a click-anywhere-to-close guard, ladder/fanout diagrams, metrics, steppers). Fully--ve-*token-driven so every preset skins it; its behavioral contract is pinned by a headless eval suite (npm run ve:eval-presentation). See docs/presentation-deck.md for when to use it vsSlideDeck. /explain-diff: a literate diff mode (background → intuition → walkthrough → quiz), adapted from Geoffrey Litt's prompt pattern.- Model-matrix eval harness (
evals/model-matrix/): the same briefs across Kimi, GLM, DeepSeek, Claude, and Codex, scored on deterministic compliance plus a blind screenshot judge. Point it at your own model in about ten minutes. - One-command team sharing:
share.shdeploys to Vercel (zero setup, public) or sharehtml on Cloudflare (stable update-in-place URLs, team SSO via Cloudflare Access, comments). Seedocs/TEAM-SHARING.md. - External design systems +
ve:learn: brand token sets are user-owned artifacts resolved from a registry outside the skill ($ARTIFACTURE_DESIGN_DIR→~/.artifacture/design-systems/→ repodesign-systems/) and inlined into exports by preset name.npm run ve:learn -- <code-file|url|image> --name <slug>drafts a system from a token source, a live page, or an image palette; deterministic heuristics are pinned by their own eval suite (evals/design-systems/). The repo ships the mechanism only — systems (typically private brand tokens) live in your own registry. Seedocs/design-systems.md.
Any agent with skills support (Claude Code, Codex, Cursor, and others), via the skills CLI:
npx skills add theclaymethod/artifactureFirst generation clones the render pipeline to ~/.artifacture (one-time,
Node >= 22); full-clone installs use the repo in place.
Claude Code, as a plugin:
git clone https://github.com/theclaymethod/artifacture.git
/plugin marketplace add ./artifactureManual, for any harness that reads file-based skills:
git clone --depth 1 https://github.com/theclaymethod/artifacture.git /tmp/artifacture
cp -r /tmp/artifacture/plugins/visual-explainer ~/.agents/skills/visual-explainer
rm -rf /tmp/artifactureFor the upstream project, see nicobailon/visual-explainer.
| Command | What it does |
|---|---|
/generate-web-diagram |
Generate an HTML diagram for any topic (inline SVG by default, Mermaid fallback) |
/generate-visual-plan |
Generate a visual implementation plan for a feature or extension |
/generate-slides |
Generate a magazine-quality slide deck (vertical, or --magazine for horizontal editorial layout) |
/generate-poster |
Generate a single-canvas poster via poster-ai |
/generate-video |
Generate an explainer MP4 via Hyperframes (--style=long-form or --style=reel) |
/render-video |
Convert an existing HTML deck or magazine to an MP4 |
/diff-review |
Visual diff review with architecture comparison and code review |
/plan-review |
Compare a plan against the codebase with risk assessment |
/project-recap |
Mental model snapshot for context-switching back to a project |
/fact-check |
Verify accuracy of a document against actual code |
/share |
Share an HTML page via sharehtml team access or Vercel fallback |
The agent also kicks in automatically when it's about to dump a complex table in the terminal (4+ rows or 3+ columns) — it renders HTML instead.
For private team sharing setup, see docs/TEAM-SHARING.md.
- Features: the full capability reference, including all output modes, aesthetics, and how generation works.
- Design systems: the external design-system registry format, resolution order,
ve:learntoken learning, and the agent-assisted refinement flow. - PresentationDeck vs SlideDeck: which deck engine to reach for, the drill-down primitives, and the eval-pinned behavioral contract.
- Team sharing: one-command deploys to Vercel or a team-gated Cloudflare space.
- Skill docs: what an agent actually reads, plus the per-use-case cards.
- Verifier: the deterministic design-quality gate and its eval suite.
- Model-matrix harness: benchmark your own model or agent on the same briefs.
- Requires a browser to view HTML output
- Results vary by model capability
- Demo capture requires
ffmpeg(always) plus either Playwright MCP oragent-browser(either one works) - Video output (
/generate-video,/render-video) requires Node ≥ 22 and FFmpeg; the skill runshyperframes-doctor.shat the start of any video command and aborts with install hints if prerequisites are missing
Artifacture is derived from nicobailon/visual-explainer (MIT) by Nico Bailon — the original skill concept, aesthetic system, and template library. Borrows ideas from Anthropic's frontend-design skill and interface-design.
The /explain-diff literate diff mode adapts Geoffrey Litt's explain-diff prompt. The Nothing aesthetic adapts dominikmartn/nothing-design-skill. Team sharing integrates jonesphillip/sharehtml as an optional backend. The component-contract and token-economics approach was informed by measuring modem-dev/sideshow's surface model. SVG text measurement guidance references chenglou/pretext.
Diagram rules and philosophy paraphrased (with attribution) from cathrynlavery/diagram-design (MIT, Cocoon AI).
Video output wraps HeyGen's Hyperframes (Apache 2.0) — local HTML → MP4 rendering via headless Chrome + GSAP + FFmpeg.
MIT








