Agent skill

Dashmotion

by csthink in csthink/dashmotion

Create dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the…

MITAuto-check passedDevelopment

Install Dashmotion

skills CLI
$ npx skills add csthink/dashmotion --skill dashmotion -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install csthink/dashmotion dashmotion --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/csthink/dashmotion.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/dashmotion .claude/skills/dashmotion && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dashmotion
GitHub stars
176
Token cost
~3.5k tokens
SKILL.md length
1,730 words
Files
10 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Create dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the…

  • Works in 6 steps: Pick the mode → The two animation contracts (both modes) → Shared design tokens → …
  • The user asks for a flowchart
  • SKILL.md covers Step 1 — Pick the mode, Step 2 — The two animation…, Step 3 — Shared design tokens and Step 4 — Accessibility &…, plus 3 more sections
  • Runs Python scripts from its folder; calls python3, npx and ffmpeg

What it does

Dashmotion is an agent skill from csthink/dashmotion. Create dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the system (Diagrid/Temporal landing-page style). Use this skill whenever the user asks for a flowchart, workflow, pipeline, process diagram, state machine, system architecture, infrastructure, cloud, microservices, or network topology diagram — and especially when they mention "animated", "flowing", "dynamic", "alive"…

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts and reference files (for example `references/architecture-mode.md`, `references/flow-mode.md` and `references/layout-script.md`).

It sits in Development, covering Diagrams. It works with Mermaid. The repository describes itself as: Animated technical diagrams from plain English or Mermaid — a Claude skill, self-contained HTML/SVG. The licence is MIT.

When your agent uses it

  • The user asks for a flowchart
  • Process diagram
  • System architecture
  • Network topology diagram — and especially when they mention animated

Example prompts

  • “animated”
  • “flowing”
  • “dynamic”
  • “/dashmotion”

Requirements

  • Python 3
  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Pick the mode
  2. The two animation contracts (both modes)
  3. Shared design tokens
  4. Accessibility & motion (non-negotiable)
  5. Produce the file
  6. Structural self-check (before delivering)

What it can do on your machine

Read from SKILL.md and the folder at commit ae2fe4f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • npx
    • ffmpeg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dashmotion loads about 3.5k tokens when it runs, and up to ~10k if it reads all its reference files. Until then it costs about 228 tokens; SKILL.md has 1,730 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~228
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~10k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from csthink/dashmotion at commit ae2fe4f, republished under its MIT licence (© csthink). 1,730 words, ~3,534 tokens.

Download SKILL.mdSave it as .claude/skills/dashmotion/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
dashmotion
description
Create dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the system (Diagrid/Temporal landing-page style). Use this skill whenever the user asks for a flowchart, workflow, pipeline, process diagram, state machine, system architecture, infrastructure, cloud, microservices, or network topology diagram — and especially when they mention "animated", "flowing", "dynamic", "alive", "GIF-like", or want a diagram for a landing page, README, docs, or product demo. Also use it to convert Mermaid source (a mermaid code block or .mmd file) into an animated diagram — "animate this mermaid", "make this flowchart move". Prefer this over static diagram output whenever the diagram represents anything that moves: requests, events, data, jobs, messages, or control flow.
version
2.2.4

Dashmotion

Create professional animated technical diagrams as single self-contained HTML files. The name is the implementation: stroke-dashoffset animation + animateMotion — that's all there is. Output is vector, loops forever, weighs a few KB, and opens in any browser.

Step 1 — Pick the mode

User wantsModeRead
Steps, sequence, branching, parallel execution, state transitions ("what happens, in what order")Flowreferences/flow-mode.md + resources/template-flow.html
Components, services, infrastructure, containment, topology ("what the system is made of")Architecturereferences/architecture-mode.md + resources/template-architecture.html

Mixed request ("show our microservices AND how an order flows through them") → Architecture mode; the animated request path is the flow. Only produce two separate files if the process has branching logic that the topology can't express.

Mermaid input — if the request contains Mermaid source (a ```mermaid block, a .mmd file, or pasted code), ALSO read references/mermaid-input.md before anything else. Supported: flowchart/graph and stateDiagram-v2; other diagram types are unsupported — say so and offer alternatives. The mode routing above still applies (mermaid is syntax, not semantics), and layout is always recomputed top-down regardless of the source's declared direction.

Read the mode reference file before you start. Its layout arithmetic is what scripts/layout.py implements (Step 5) — read it to author a clean semantic graph and to apply the color/shape/animation style layer to the script's geometry (and to hand-compute the fallback). It encodes what prevents the common failures: overlaps, arrows through boxes, broken loops.

Step 2 — The two animation contracts (both modes)

Flowing dashed connectors — stroke-dashoffset
css
.flow { stroke-dasharray: 5 5; animation: dashmove 0.75s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -10; } }
  • The offset delta MUST equal one full stroke-dasharray period (here 5+5=10), or the loop visibly jumps.
  • Negative offset flows in the path's drawing direction → always author connector d from source to target.
  • 0.6–0.9s reads as "electric current"; slower than 1.5s reads as broken.
Traveling dots — <animateMotion>
svg
<circle r="3.5" class="dot" fill="#34d399">
  <animateMotion dur="2s" repeatCount="indefinite"
    path="M400 178 L400 204 L170 204 L170 222"/>
</circle>
  • path reuses the connector's d verbatim; the dot rides exactly on the line.
  • The circle has no cx/cy — animateMotion positions it.
  • Stagger with begin="0.7s" etc. 3–6 dots total per diagram; put them where direction is informative (fan-outs, merges, the main request path), never on every edge.
  • In Architecture mode a dot is semantically a request/message in flight — route dots along realistic end-to-end journeys.

Step 3 — Shared design tokens

  • Page: #020617, 40px grid pattern (#0f1b33, 0.5px lines), JetBrains Mono when locally installed, else a system monospace stack (ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace) — no web-font fetch, the file is fully self-contained.
  • Text: labels #e2e8f0 13px/500, sublabels #64748b 10px, legend 11px.
  • Node corner rx="8"; START/END pills rx = height/2.
  • One shared arrowhead marker using context-stroke (inherits each line's color):
svg
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
  <path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</marker>
  • Connector endpoints stop 4px short of node edges so arrowheads don't pierce borders.
  • Every connector <path> MUST have fill="none" (or sit in a <g fill="none">) — SVG defaults to black fill and an L-shaped path renders as a giant black polygon without it.
  • Z-order paint sequence: grid → connectors → dots → nodes. Nodes mask line ends; dots vanish "into" nodes instead of sliding over them.
  • ViewBox: 0 0 W H where H = lowest element bottom + 50. Never negative coordinates.

Step 4 — Accessibility & motion (non-negotiable)

  • Wrap ALL CSS animation in @media (prefers-reduced-motion: no-preference).
  • SMIL ignores that media query → keep the template's inline script that removes .dot elements under reduced motion and wires the visible ⏯ pause toggle (animation-play-state: paused + svg.pauseAnimations()).
  • SVG gets role="img" + <title> + <desc>.

Step 5 — Produce the file

dashmotion ships a deterministic layout engine, scripts/layout.py (pure stdlib). It does the coordinate arithmetic the mode references describe — row packing, branch gaps, boundary padding, orthogonal rail/lane routing — and renders the finished HTML: geometry + the mode style layer + your copy. So you do not hand-compute coordinates or hand-transcribe 35 rects and 38 path ds into a template (both are slow). You decide the semantics and the copy; the script writes the file. Full contract in references/layout-script.md.

Script path — use it whenever python3 is available:

  1. Parse the request — or the Mermaid source per references/mermaid-input.md — into the semantic graph JSON of references/layout-script.md. This is your judgement layer, and it carries everything the diagram needs:
    • structure: nodes (type + tier for architecture — omit tier for ungrouped/single-group arch (engine auto-layers), write it for multi-group, see layout-script.md; per-node group for boundary membership; flow shape written only for pills & decisions — never "shape": "step", steps omit it), edges (kind), groups, journeys, any legendExtra, classDef retention;
    • copy: title, subtitle, and (architecture) a summary of exactly three cards (accent cyan/violet/rose, title, items[]) — the human-facing wording is yours to write, here, in the JSON.
  2. Write it to a temporary path, not the output folder — e.g. "$TMPDIR/dashmotion-graph.json" (or any mktemp path) — then run python3 <this-skill-directory>/scripts/layout.py "$TMPDIR/dashmotion-graph.json" --render <topic>-dashmotion.html. The semantic JSON is a throwaway build intermediate; the delivered HTML does not depend on it, so never write it beside the .html — the user's folder should contain only the finished diagram. The script computes the geometry, applies the style layer (node fills/strokes by type, the opaque-base + styled-rect masking pair, flow/flow-async/flow-auth connector classes by edge kind, per-journey dot colors with staggered, chained begin), drops in your copy, and writes the complete, self-contained, ready-to-ship file. Edges flagged "loop": true are rendered as the ↻ label annotation, not a path.
  3. Run Step 6 against that file. The renderer is structurally sound by construction, but Step 6 is still the authority — run it.
  4. You keep final say over everything visual: to adjust wording, emphasis, journeys, or types, edit the JSON and re-render (cheap and deterministic); to tweak a label or a colour by hand, edit the emitted file directly. What you no longer do is photocopy coordinates — the script owns geometry (plan A) and now the boilerplate around it.

Do not author the JSON, then also hand-write the HTML — that re-incurs the exact transcription cost this path removes. Render, check, deliver.

Hand-computed fallback — only when python3 is unavailable: do the layout arithmetic from the mode reference explicitly before writing coordinates, copy the template, replace SVG content / title / header / legend / summary cards (keep CSS + pause toggle + reduced-motion script), pick 3–6 dot paths copying connector d values and staggering begin. This is the pre-2.2 path — slow, but it needs no Python.

Tell the user the file opens directly in any browser.

GIF/MP4 export (only if asked)

Never render frames by hand. Screen-record the open file (macOS ⌘⇧5), or headless: npx timecut <file.html> --viewport=1200,900 --duration=3 --fps=30 --output=flow.mp4 then ffmpeg -i flow.mp4 flow.gif. A 3s capture loops seamlessly when all durations divide 3s — prefer 0.75s / 1.5s / 3s when GIF export is the goal.

Show full SKILL.md (681 more words)Show less

Step 6 — Structural self-check (before delivering)

The file is not done when it's written — it's done when it passes this check. The --render output is structurally sound by construction, but the check is still mandatory (it's also your guard for the hand-computed fallback, whose coordinates fail in predictable ways — the connector layer far more often than the text layer). Verify; don't assume.

Mechanized path (use it whenever python3 is available): run the bundled checker against the file you just wrote —

bash
python3 <this-skill-directory>/scripts/check_diagram.py <your-file>.html

It deterministically detects the failure classes below (overlaps, connectors through boxes, dash-loop seams, out-of-bounds, dots off their line, black-fill, endpoint pierce, dangling begin refs, malformed XML). Fix every reported violation and re-run until it prints 0 violations. Do NOT hand-walk the arithmetic when the script is available, do NOT write your own ad-hoc verification script, and never verify by opening a browser or taking screenshots — the script is the authority; items it can't see (label collisions, exact boundary padding, legend placement) you still check by reading the numbers.

If the input was Mermaid, also mechanize the fidelity recount (checklist item 6): save the source to a temp .mmd and run —

bash
python3 <this-skill-directory>/scripts/check_fidelity.py <source>.mmd <your-file>.html

Fix until it prints PASS. It verifies every source node/edge/group label appears verbatim and the connector count matches the source's edge count. So keep labels and legend entries exactly as the source wrote them — do not reword, merge two source strings into one, or add parentheses (a legend entry v2 点线橙框 must stay v2 点线橙框, never v2 治理骨架(点线橙框)). This is the same low-recall trap as the structural check: prose "I kept it verbatim" misses real drift; the script doesn't.

Prose fallback (only if python3 is unavailable): verify each item below with arithmetic on the actual numbers (write the comparisons out), not by eyeballing the code. Fix every violation and re-check until the list is clean.

  1. Overlaps — for every pair of same-row elements: left.x + left.width + gap ≤ right.x (gap ≥ 20 flow / 40 architecture). For every stacked pair: top.y + top.height + gap ≤ bottom.y. A boundary must fully contain its children with ≥ 20px padding on all four sides; partial overlap between any two boxes is always a bug.
  2. Connectors through boxes — walk every path segment by segment: between its endpoints it must not enter any node rect. Check every horizontal rail's y against the rects it passes (rect.y ≤ y ≤ rect.y + height means a collision); same for vertical drops' x. Fix by re-routing with the rail pattern, not by nudging boxes until something else breaks.
  3. Animation loops — for each animated class: |stroke-dashoffset delta| must be an exact multiple of the stroke-dasharray period sum (e.g. 5 5 → 10), including connectors that override the dasharray inline (an async 2 4 edge animated by a -10 keyframe seams every cycle — give it its own keyframes). For each animateMotion, name the single connector whose d it traces — a dot path that spans two connectors sails straight through the component between them; split it into chained per-hop dots instead. Every begin="X.end+…" must reference an id that exists.
  4. ViewBox bounds — no negative coordinates anywhere; every rect's x+width/y+height and every path coordinate stays inside 0 0 W H; H ≥ lowest element bottom + 20; the legend sits below the lowest boundary (architecture).
  5. Connector & markup hygiene — every connector <path> resolves to fill="none"; endpoints stop ~4px short of the target border and never reach inside a box; no -- inside SVG comments (<!-- A -- B --> closes the comment early and leaks stray text into the document).
  6. Mermaid fidelity (mermaid input only) — mechanized by check_fidelity.py above; run it and fix to PASS. It recounts against the source: node rects/pills == source node IDs (START/END pills added only for [*]); connector paths + ↻-rendered loops == source edges after expanding chains and &; every node, edge, group, and legend label appears verbatim (legend entries merged from a 图例 subgraph included — keep their exact text). Without python3, recount by hand. Details in references/mermaid-input.md.

Deliver the file only after a pass where nothing needed fixing.

Output contract

One self-contained .html: embedded CSS, inline SVG, no external assets, no JS dependencies — only the ~15-line inline pause/reduced-motion script. Renders correctly opened from the filesystem.

© csthink, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references) in skills/dashmotion of csthink/dashmotion.

  • SKILL.md
  • references/architecture-mode.md
  • references/flow-mode.md
  • references/layout-script.md
  • references/mermaid-input.md
  • resources/template-architecture.html
  • resources/template-flow.html
  • scripts/check_diagram.py
  • scripts/check_fidelity.py
  • scripts/layout.py

Open the folder on GitHubat commit ae2fe4f

Compare with similar skills

Dashmotion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dashmotion compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dashmotion this skillcsthink/dashmotion176—~3.5kAutomated safety check: PassMIT
Archify Diagramstt-a1i/archify79k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Code Graph Mermaid Diagramstrailofbits/skills7.4k1 repos~1.7kAutomated safety check: PassCC-BY-SA-4.0
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    79k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check: notes
  • Code Graph Mermaid Diagrams

    trailofbits/skills

    Official

    Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.

    7.4k GitHub starsUsed in 1 repo~1.7k tokens
    DevelopmentAuto-check passed
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed

Works with

Categories

Questions about Dashmotion

What does Dashmotion do?

Create dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the…. Dashmotion is an agent skill from csthink/dashmotion. Create dark-themed, animated technical diagrams as self-contained HTML+SVG files — flowcharts whose connectors visibly flow, and architecture diagrams where requests travel as light dots through the system (Diagrid/Temporal landing-page style).

When should I use Dashmotion?

Dashmotion fits situations like: the user asks for a flowchart; process diagram; system architecture; network topology diagram — and especially when they mention animated.

How do I install Dashmotion in Claude Code?

Run `npx skills add csthink/dashmotion --skill dashmotion -a claude-code`. Or copy the skill folder (skills/dashmotion in csthink/dashmotion) into .claude/skills/dashmotion in your project. Claude Code loads it when a task matches its description.

How do I install Dashmotion in Codex?

Run `npx skills add csthink/dashmotion --skill dashmotion -a codex`. Or copy the skill folder (skills/dashmotion in csthink/dashmotion) into .agents/skills/dashmotion in your project. Codex loads it when a task matches its description.

Can I use Dashmotion in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add csthink/dashmotion --skill dashmotion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dashmotion, .gemini/skills/dashmotion, .github/skills/dashmotion and .opencode/skills/dashmotion in your project.

What does Dashmotion need to run?

Going by SKILL.md and its folder, Dashmotion needs Python for the scripts in its folder and the command-line tools its instructions call (python3, npx and ffmpeg). Our summary lists: Python 3; Node.js.

Does Dashmotion access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Dashmotion safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Dashmotion use?

Dashmotion is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dashmotion use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.8k tokens, read only when the agent opens those files.

What are the alternatives to Dashmotion?

Skills that share tags, products or a category with Dashmotion: Archify Diagrams (tt-a1i/archify, 79k stars), Diagram Design (cathrynlavery/diagram-design, 45k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Code Graph Mermaid Diagrams (trailofbits/skills, 7.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dashmotion?

csthink (a GitHub user) maintains it in csthink/dashmotion, which has 176 GitHub stars. The repository was last updated on June 16, 2026.

Source: csthink/dashmotion on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.