/tools:artifactfrom tools
Use when building or improving HTML/CSS artifacts, React pages, dashboards, landing pages, explainers, demos, SVG diagrams, UI prototypes, or visual outputs where design quality, subject-specific treatment, responsive behavior, and render verification matter.
Ships in tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Approach this as the design lead at a small studio known for their versatility, giving every client a visual identity pitched at the treatment the task actually calls for. Make deliberate choices about palette, typography, and layout that are specific to this subject, and avoid templated designs.
Calibrate treatment, not whether to design. A doc deserves the same craft as a landing page — what changes is the treatment that craft is delivered in.
Many requests call for a more utilitarian treatment: a plan, a memo, a demo. Make it polished: include real typographic hierarchy, considered spacing, and a proper palette, but avoid over-designing. Most pages do not need a flashy, gigantic hero. Keep flourishes tasteful and limited.
Some requests call for an editorial treatment: a landing page, a game, an app or tool they'll keep or share.
When unsure: a well-composed page is never the wrong answer; an over-designed visual identity sometimes is.
Fundamentals below apply to everything. The editorial process after that runs only when the read above says so.
Before layout or visuals, define what the viewer should understand at a glance:
Users do not care how the system works behind the scenes unless that mechanism changes trust, timing, risk, or accountability. For operational explainers, prefer this order: what needs attention, who owns it, why it matters, where to act, what happened after action.
The first viewport must communicate the artifact's core idea without requiring the reader to understand implementation internals.
Honor what's already there Look for an existing design system first — CLAUDE.md, a tokens or theme file, existing component styles. When one exists, apply it; everything below fills gaps and never overrides. Precedence is always: the user's own words, then the project's existing system, then your choices.
Ground it in the subject. If the subject isn't already clear, pin it: one concrete subject, its audience, and the page's single job. The subject's own world — its materials, instruments, vernacular — is where distinctive choices come from. Build with real content throughout, never lorem.
Pair typefaces Typography carries the page even when the page isn't about typography. The Artifact CSP blocks font CDNs, so don't link a webfont URL and risk a silent fallback. Instead inline the face as a @font-face data URI. Keep running text near 65 characters wide; set a type scale and stay on it; give headings text-wrap: balance, body text room to breathe, and uppercase labels a touch of letter-spacing.
Choose neutrals, don't default to them. A pure mid-grey reads as unconsidered; a grey with a slight hue bias toward the page's accent reads as chosen. Pure white and near-black are fine grounds when they suit the subject — the point is that the neutral was picked, not inherited.
Design both themes. The page renders in the viewer's theme: prefers-color-scheme carries the OS preference, and the viewer's toggle stamps data-theme="dark" / data-theme="light" on the root element, which must override the media query in both directions. The robust pattern is token-level: define the palette as custom properties on :root, redefine only the tokens under @media (prefers-color-scheme: dark) — style components through the tokens, never directly inside the media query — then redefine them again under :root[data-theme="dark"] and :root[data-theme="light"]. Give the second theme the same care as the first — don't naively invert; keep contrast legible and the accent working on both grounds. A design that deliberately commits to one visual world (a neon arcade screen, a letterpress invitation) may stay single-theme — make it a choice, not an omission.
Let layout do the spacing. Lay out sibling groups with flex or grid and gap, not per-element margins that silently collapse or double. Wide content — tables, code, diagrams — gets overflow-x: auto on its own container so the page body never scrolls sideways. Reach for font-variant-numeric: tabular-nums wherever digits line up in columns.
Avoid AI-generated design AI-generated design currently clusters around a few looks: warm cream (#F4F1EA) with a serif display and terracotta accent; near-black with a lone acid-green or vermilion pop; broadsheet hairline rules with dense columns; a purple-to-blue gradient hero on white; Inter or Space Grotesk as the "safe" face; emoji as section markers; everything centered; rounded-lg everywhere; accent bar/rail on rounded cards. Where the user pins down a visual direction, follow it exactly — their words always win, including when they ask for one of these looks. Where nothing is specified, don't spend that freedom on one of these defaults.
Build cleanly Be cognizant of overlapping elements, cascade collisions, silent font fallbacks; visual bugs hide in the gap between source and output. Close every non-void element, double-quote attributes, give keyboard focus a visible state, respect prefers-reduced-motion. For generative or decorative graphics, reach for Canvas or WebGL rather than hand-authoring long SVG path data.
CSS rules When writing the CSS, watch your selector specificities. It is easy to generate classes that cancel each other out — a type-based selector like .section fighting an element-based one like .cta over padding and margins between sections. Structure the cascade so it doesn't silently undo your spacing.
Writing the copy Words are design material, not decoration. Write from the user's side of the screen — name things by what people recognize, not how the system is built (a person manages notifications, not webhook config). Active voice; a control says exactly what happens ("Publish", then a toast that says "Published"). Errors explain what went wrong and how to fix it — no apologies, no vagueness. Specific beats clever.
Structure is information Structural devices, numbering, eyebrows, dividers, labels, should encode something true about the content, not decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence - like a real process or a typed timeline where order carries information the reader needs. Question if choices like numbered markers actually make sense before incorporating them.
When it's a UI, not a document A dashboard or tool is scanned and operated, not read top-to-bottom, so the craft shifts from typography to information design. Surface the summary before the detail; encode state in form as well as number — a pill, a chip, a severity stripe — so what needs attention reads at a glance. Semantic color (good / warning / critical) is separate from the accent hue and doesn't count as your accent. Give sparklines and charts the same care as type: an area fill, a faint grid, an emphasized endpoint. What's interactive should look interactive.
SVG is the right tool when the artifact needs inspectable, precise, scalable meaning:
Build SVGs with meaningful structure:
viewBox, grouped layers, labels, titles, descriptions, and readable ids or classes.<title> and <desc> where the SVG carries important meaning.Do not avoid SVG just because it is visual code. Use it when it is the clearest representation of the idea. Use Canvas or WebGL instead when the visual is high-volume, generative, particle-based, heavily animated, or performance-sensitive. Use HTML/CSS for ordinary layout and controls.
Completion criterion: every SVG has a clear semantic reason to exist, no unreadable long path data unless unavoidable, and it remains legible at mobile and desktop widths.
SVGs fail when they are only technically valid. Treat complex SVG as an interface, not decoration.
Use this loop for system maps, flows, architecture diagrams, timelines, or dense conceptual visuals:
Prefer real text, grouped layers, reusable classes, and short connector paths. Use curved connectors only when they improve reading order. If the diagram contains a user-facing workflow, make the user-facing surface visually dominant and make backend machinery secondary.
Completion criterion: after desktop and mobile screenshots before completion, the SVG explains the idea at a glance, has no clipped text or collisions, and still preserves enough detail for inspection.
Before writing code, sketch a short design plan — a compact token system with color, type, and layout:
Then build, following the plan and deriving every color and type decision from it.
The stance shifts: the client has already rejected proposals that felt templated, and is paying for a distinctive point of view. Make opinionated calls, and take one real aesthetic risk where it serves the work.
Review the design plan against the subject before building: if any part of it reads like the generic default you would produce for any similar page, revise that part, and note what you changed and why. Only after you've confirmed the plan's uniqueness do you write the code, following the revised plan exactly.
Principles
When the artifact is a deliverable someone will study, share, or operate — an explainer, a system explorer, a study guide, a decision tool — build bespoke at the flagship tier. Reusable visual components cannot produce this tier — a shared kit is exactly what makes pages look generated.
Declare the tier before building. State explicitly whether you're building utilitarian (quick internal page, kit allowed) or flagship, so the user can correct the calibration in one word. Requests to be studied or shared default to flagship; the keyword "flagship" always means it. The flagship contract: identity (palette, three type faces, micro-flourishes) derived from the subject's own world; 10–20 purpose-built devices; 2–4 interactive devices that each explain something (hundreds of lines of JS is normal, not excessive); honesty devices wherever the source material is messy; and a minimum of three render→critique→patch passes — never present a first render as done.
Flagship workflow, in order:
references/grounding.md — extract real data BEFORE design: verbatim quotes tagged REAL/PARAPHRASED/ILLUSTRATIVE, numbers computed by script, graph layouts generated with Graphviz rather than hand-placed.references/devices.md — the craft vocabulary: identity, structure, explanatory, interaction, and honesty devices, with the material→device selection table.kit/behaviors/ — copy-paste interaction modules with no visual opinion (tooltip, pan/zoom, hover-dim ego networks, stepper with scroll autoplay, data-driven line chart). Inline them; style their class hooks with the page's own tokens.references/iteration.md — the render→critique→patch protocol, the 10-question quality rubric, the screenshot matrix (interaction states, 100% crops, mobile, console), and known cascade traps.For quick utilitarian pages only — an internal dashboard, a memo, a status report where speed matters more than identity — reuse the kit in kit/ instead of improvising parts. Never build a flagship artifact from kit parts, and never let the kit's neutral identity substitute for a subject-derived one.
How to use it:
kit/tokens.css into the artifact and swap token values for the project's brand (palette, fonts); keep token names. Components read only tokens, so both themes keep working after a retheme.kit/gallery.html renders every component in both themes — the source of truth is kit/components/*.md; if you change a component, update the gallery too, then screenshot it as the regression check.Components:
kit/components/page-header.md — quiet header: eyebrow, title, meta, actions. The anti-hero.kit/components/stat-tile.md — KPI row: value, unit, semantic delta, stable height.kit/components/status-pill.md — categorical state pills and row severity stripes.kit/components/data-table.md — scannable rows: overflow wrapper, sticky header, numeric alignment, empty state.kit/components/callout.md — info/ok/warn/crit blocks that must not be skimmed past.kit/components/timeline.md — typed events in real order, mono timestamps.kit/components/definition-list.md — key-value facts about one record.kit/components/sparkline.md — inline trend SVG: line, area, endpoint dot, point-generation math.kit/components/svg-diagram.md — diagram scaffold: lanes, nodes, edges, arrow marker, priority classes.For full charts, follow the dataviz skill; the kit's semantic tokens (--ok/--warn/--crit) and accent are the shared vocabulary between both.
For static HTML that can open directly, verify the file exists and inspect it in browser when feasible.
For apps or components, run the dev server when feasible and verify with browser screenshots:
document.body.scrollWidth === window.innerWidth.prefers-reduced-motion when motion is significant.For flagship-tier artifacts, verification is not one pass: follow the full protocol and quality rubric in references/iteration.md.
If browser verification is unavailable, state that limitation and run the strongest available static checks, such as lint, build, typecheck, or targeted HTML/CSS inspection.
Completion criterion: the artifact is implemented, visible, responsive, checked in both themes where applicable, and matches the treatment and visual plan.
kit/behaviors/README.md (opens in a new tab)kit/behaviors/hoverdim.js (opens in a new tab)kit/behaviors/linechart.js (opens in a new tab)kit/behaviors/panzoom.js (opens in a new tab)kit/behaviors/stepper.js (opens in a new tab)kit/behaviors/tooltip.js (opens in a new tab)kit/components/callout.md (opens in a new tab)kit/components/data-table.md (opens in a new tab)kit/components/definition-list.md (opens in a new tab)kit/components/page-header.md (opens in a new tab)kit/components/sparkline.md (opens in a new tab)kit/components/stat-tile.md (opens in a new tab)kit/components/status-pill.md (opens in a new tab)kit/components/svg-diagram.md (opens in a new tab)kit/components/timeline.md (opens in a new tab)kit/exemplars/flagship-agent-failures.html (opens in a new tab)kit/exemplars/research-synthesis.html (opens in a new tab)kit/gallery.html (opens in a new tab)kit/tokens.css (opens in a new tab)references/devices.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/advisorUse when the user asks to consult the advisor, wants transcript-aware strategic guidance, wants a second opinion on ongoing agent work, provides a transcript for review, is stuck, is choosing between candidates, or wants to know whether completed work is ready. Always run the advisor as a separate GPT-6 Astra agent with the exact recovered advisor system prompt./browser-useAutomates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages./codex-model-routingUse when spawning Codex subagents or Codex threads and choosing among GPT-5.6 Luna, Terra, and Sol, plus Spark and GPT-6 Astra, with the appropriate effort. Use this with orchestrating-subagents whenever delegation involves model overrides, reasoning effort, Explore agents, checker/fixer loops, or fan-out work.npx claudepluginhub joaquincampo/my-plugins --plugin tools