Skip to content
Agentmart
Submit a tool

artifact-diagramming

How to draw a diagram inside an artifact - when a picture earns its place, and the hand-authored inline SVG mechanics that keep it legible in light and dark.

Skill by FrauH0lle

IndexedGPL-3.0★ 16
Write a review

Chalk Labs

Need help deploying artifact-diagramming?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/frauh0lle-artifact-diagramming

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

How to draw a diagram inside an artifact - when a picture earns its place, and the hand-authored inline SVG mechanics that keep it legible in light and dark. Attached by the artifact skills that carry visuals; read it before drawing rather than invoking it on its own.

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/artifact-diagramming

What's inside

Skill name
artifact-diagramming
Description
How to draw a diagram inside an artifact - when a picture earns its place, and the hand-authored inline SVG mechanics that keep it legible in light and dark. Attached by the artifact skills that carry visuals; read it before drawing rather than invoking it on its own.
License
GPL-3.0
Instructions
84 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Diagramming in artifacts

Draw as the engineer who has to live with the decision, not as a decorator. A
diagram earns its place when it lets a cold reader see a mechanism they would
otherwise assemble from prose - where data flows, which components talk, what
changes between two options, what state a request moves through. If a sentence
says it faster, write the sentence.

A Markdown artifact has no diagram lane: the viewer's Markdown renderer draws
no SVG and understands no diagram fence, so a picture there is a fenced code
block at best. When a diagram carries the point, author the artifact as HTML.

## What to draw

**Depict the mechanism, not its name.** A box labeled "cache" says less than
the prose; the path a request takes through it, the two stores it sits between,
and the arrow that disappears when the cache is removed say what the words
can't. Show the parts the argument hinges on - the boundary being crossed, the
hop being added, the data that moves - and leave out the parts that don't.

**Comparing options? Draw the difference.** Two architectures side by side, a
before and an after, the one edge each option adds or removes - the reader
should be able to point at what they are choosing between. A separate labeled
box per option, with nothing connecting them to the system, is not a
comparison; it is a restated option list.

**Match complexity to the stakes.** A one-hop question is a three-box diagram;
a migration that reroutes writes through a queue needs the queue, the writer,
the reader, and the ordering arrow. Draw as much as the decision actually turns
on - no forced minimalism, and no inventory of the whole system either.

**Label the arrows.** An unlabeled arrow means "related somehow"; `writes`,
`invalidates`, `polls every 30s` is information. A legend earns its place only
when the same encoding (dashed, colored, doubled) repeats; otherwise put the
meaning on the mark itself.

## Inline SVG mechanics

Hand-author inline `<svg>` with native shapes (`rect`, `circle`, `line`,
`polyline`, `path`) and `<text>`. Static diagrams need no library or script.
Inline page scripts can support interaction, but external scripts and images
are blocked; there is no CDN to fall back to.

- **Size by `viewBox`.** Set `viewBox="0 0 W H"`, omit `width`/`height`, and let
  CSS scale it (`max-width: 100%; height: auto`). Choose W and H for the
  content, not a preset. Wide flows read left to right; layered stacks read top
  to bottom.
- **Theme through the page's tokens.** Route every color through a CSS custom
  property in a `style` attribute - `style="stroke: var(--ink)"`.
  `currentColor` is another choice for strokes,
  text, and arrowheads, since it inherits the page foreground in both themes.
  Never write a hardcoded hex, a named color, or `white`/`black` inside a
  diagram: near-black strokes vanish on a dark ground and light fills glare on
  it. Reserve the page's accent token for the element that carries meaning -
  the option leaned toward, the hop under discussion - and check it reads on
  both grounds.
- **Arrowheads are markers or polygons.** A `<defs><marker>` referenced by
  `marker-end="url(#arrow)"` with a fragment-internal id, or a small `<polygon>`
  at the line's end. Never an image.
- **Keep text legible.** Aim for 12-16px at the displayed size, including on a
  phone. Use `text-anchor` for alignment and short labels of a word or three.
  Give dense figures a content-specific minimum width inside their own scroll
  container, or reflow/split them. Explanatory sentences belong
  in the caption below the figure, not inside the drawing, and code belongs in a
  `<pre>` beside it rather than as SVG text.
- **Leave generous padding** around shapes and labels. Cramped diagrams are the
  single most common failure.
- **Align to a grid.** Shared baselines and even gaps are most of what makes a
  hand-drawn diagram read as deliberate; eyeballed offsets read as noise.
- **Keep one visual vocabulary** across a page's diagrams - boxes for things,
  arrows for movement or causality, the accent only on the current focus - so a
  sequence reads as one picture evolving rather than a new drawing each time.
- **One figure, one claim.** Wrap the `<svg>` in a `<figure>` with a
  `<figcaption>` stating what the picture shows, and give the `<svg>`
  `role="img"` plus an `aria-label` carrying the same claim for readers who
  cannot see it. That atomic image role is for static diagrams, not an SVG
  containing focusable controls: preserve their semantics and provide a
  non-hover route to any essential detail.
- **Stay self-contained.** No `<script>`, `<style>`, or `<foreignObject>` inside
  the SVG. Gradients, patterns, and `<use>` reference ids in the same fragment
  (`href="#id"`). Long decorative path data means the drawing wants a real
  graphics tool - simplify instead.

From FrauH0lle/mevedel, GPL-3.0.

More from FrauH0lle/mevedel

Signals

Stars
16
Forks
1
Open issues
0
Last commit (this folder)
Sep 6, 2026 (1 month ago)
Last release
Oct 22, 2026 (9 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from FrauH0lle

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get artifact-diagramming running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying artifact-diagramming?

CallGet help
Cite this page

artifact-diagramming skill. Agent Mart. https://agentmart.dev/skills/frauh0lle-artifact-diagramming (last updated 2026-10-24)