/diagram-studio:procedural-svg-animationfrom diagram-studio
Generates, combines, animates, and validates deterministic standalone SVG systems from programmatic geometry, oscillators, paths, particles, fields, simulations, topology, transport, recursive growth, tilings, masks, gradients, and filter graphs. Use for procedural motion studies, generative SVG art, mathematical animation, multi-strata numerical solvers, seeded visual systems, technique exploration, seamless loops, or self-contained animated SVG/HTML where a chart, Mermaid diagram, or manually authored timeline is not the primary abstraction.
Ships in diagram-studio. 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.
Build SVG as a reproducible system where visual state is a function of time, seed, and explicit parameters. Prefer a small composable mechanism over an isolated hand-authored animation.
For an ordered explanation with caller-supplied stage labels, reveal-then-follow
motion and optional final-to-first return, first run
uv run --script <skill-root>/scripts/build_connected_scene.py --help and read
references/connected-scenes.md. Use this content-sized scene helper and its
validate subcommand; it accepts custom labels without pretending to be a
catalog pattern. Keep the catalog validator for catalog outputs. Other
relationships require custom geometry and an explicit geometry/browser audit.
Finish supported ordered scenes with that route's validator and browser
capture. Follow the workflow below for catalog patterns and other mechanisms.
uv run --script skills/procedural-svg-animation/scripts/build_procedural_svg.py --list to inspect the shipped catalog.uv run --script skills/procedural-svg-animation/scripts/build_procedural_svg.py --describe <procedural-svg-id> before using an unfamiliar pattern.references/pattern-families.md when selecting among technique families or designing a new variant.references/multi-strata-mastery.md before changing a topology, transport, front-propagation, agent-field, or fluid solver.references/composition-recipes.md when two or more mechanisms must share one clock or state model.uv run --script skills/procedural-svg-animation/scripts/build_procedural_svg.py --pattern procedural-svg-curl-streamlines --output outputs/flow.svg --seed 104729 --width 960 --height 600 --duration-ms 8000 --palette colorset2
Run from the workspace root; do not change into the skill directory. Interpret every requested relative output path against the task workspace, create its parent directory when needed, and never redirect task artifacts into skills/.
For a catalog pattern with typed parameters, put the pattern, common options, and a parameters object in JSON and pass --config request.json. Query --describe for exact types, defaults, and bounds; do not guess parameter names.
uv run --script skills/procedural-svg-animation/scripts/validate_procedural_svg.py outputs/flow.svg --require-motion --require-standalone --expected-pattern-id procedural-svg-curl-streamlines --expected-seed 104729
references/runtime-and-validation.md for embedding modes, replay, performance, and browser checks.Use the bundled browser capture instead of probing rendering packages:
uv run --script <skill-root>/scripts/render_procedural_svg.py <output.svg> --screenshot <preview.png> --report <browser.json>.
It provisions Playwright, reuses installed Edge/Chrome when managed Chromium is
absent, and captures ordinary plus reduced-motion evidence. Inspect the PNG
after the command succeeds; its hashes and nonblank structure are not a visual
quality verdict. Keep capture outputs in the task workspace.
For a complete browsable pattern catalog, read the catalog command in
references/runtime-and-validation.md and use build_procedural_gallery.py
with an explicit task output directory. Validate that directory with the same
builder arguments plus --check; it checks every managed file. SVG namespace
URLs are format identifiers, not remote dependencies.
Generated text is UTF-8, including Unicode labels in the manifest. For any
necessary Python inspection, use read_text(encoding="utf-8"); the Windows
default encoding cannot decode all catalog labels. After the managed-file
check passes, avoid duplicate ad hoc file-count or URL-regex assertions.
Treat each result as a pipeline:
geometry generator × population/layout × time signal × animated channel × compositor × input × driver
t ∈ [0,1] through one shared clock.references/composition-recipes.md. Preserve quantitative solver geometry, fields and deliberate artistic negative space.Use colorset1 by default and --palette colorset2 for an explicit multicolor request or necessary semantic categories. Read exact tokens from assets/palettes/colorsets.json. Apply one active contract to SVG paint, stops, animated paint values, labels, filters and catalog chrome; use opacity separately. The validator checks authored paint as well as data-palette. Antialiasing, gradients and filter compositing may produce intermediate rendered pixels; their authored inputs must remain canonical tokens.
Emit a stable viewBox, direct <title> and <desc>, semantic groups, finite coordinates, unique IDs, and self-contained paint/filter definitions.
Preserve root audit metadata from the builder: pattern ID and revision, family, techniques, seed, duration, loop flag, motion engine, resolved parameters, and parameter hash.
For multi-strata patterns, preserve ordered data-stratum groups, canonical solver-render correspondence, canonical diagnostics and hashes, the viewport-independent solver-state digest, and the all-invariants status. Preserve solver-native evidence such as Sinkhorn scaling checkpoints and constant plan masses, live heap trial state, a serialized visible network root, and pre/post projection residuals; never infer or cosmetically rewrite numerical state. Use event-derived animated states and the solver-selected semantic static state rather than an arbitrary frame.
Prefer SVG-native CSS or SMIL for portable files. Do not add remote scripts, fonts, styles, images, or runtime imports.
Use seeded precomputation for simulations. SVG is the playback surface, not a reason to run an unbounded physics loop in the browser.
Honor prefers-reduced-motion; keep every mark visible and meaningful when motion is reduced.
Provide pause/replay controls when continuous motion appears beside other content for more than five seconds.
Avoid rapid flashing, large full-frame scale/pan loops, excessive filter regions, and thousands of independently animated DOM nodes.
d3 when data binding, scales, projections, chart marks, or interactive quantitative exploration are the primary problem.mermaid when Mermaid source notation and diagram geometry must be preserved.echarts-animated-svg when animating existing ECharts SVG output.compose-synchronized-svg when many semantic modules must share canonical business or system state.state = f(time, seed, parameters).references/pattern-families.md: family selection, technique signatures, and extension rules.references/multi-strata-mastery.md: solver pipelines, typed parameters, numerical invariants, snapshot loops, and pitfalls for the six mastery patterns.references/technique-matrix.md: comprehensive programmable geometry, timing, channel, compositor, input, and driver capability matrix.references/composition-recipes.md: tested combinations, shared-clock contracts, and failure modes.references/runtime-and-validation.md: portability, embedding, replay, accessibility, performance, deterministic QA, and browser checks.references/research-sources.md: authoritative specifications, API documentation, and primary algorithm sources behind the catalog.assets/pattern-specs.json: machine-readable catalog used by the builder; query it through --list or --describe instead of loading the whole file when one pattern is enough.Keep gallery fixtures under assets/examples/procedural-svg-animation/; normal runtime work must not read them. When adding a reusable mechanism, update the catalog, generator, compact family guidance, gallery, tests, and canonical ID inventory together. Validate exact paths, deterministic hashes, alternate seeds, standalone SVG behavior, reduced motion, desktop/mobile layout, isolated skill use, and the canonical multi-strata adversarial test before marking the skill done.
Use opaque, single-token filled marks without decorative borders first. Read
solidSequence and textOnFill from assets/palettes/colorsets.json.
For colorset1 categories, follow primary red, the dark/middle gray interleave
including black, white, then remaining colors. Preserve numeric ramps and
named semantic ink. The generator keeps concentration/value bands separate
from its category accents. Reuse a
fill for the same semantic role; when roles must be distinct, exhaust every
usable distinct token in the preferred sequence, excluding the actual canvas,
before creating outline or tint combinations. Soft tokens occur late. For text
on a fill, use exactly black or white with the larger WCAG contrast computed
from the actual background; composite opacity before evaluating translucent
backgrounds. Do not infer text color from a hue name.
Keep connectors, axes, signal traces, open line art, physical geometry and
explicit source-fidelity modes. A stroke that depicts a relationship or is the
geometry itself is meaningful. Reserve decorative outlines for a documented
palette overflow or an explicit requested style; mark SVG overflow treatments
with data-outline-tier="overflow". A transient keyboard focus ring remains an
interaction affordance. Use position, whitespace and direct labels for ordinary
selection and grouping.
Use scripts/solid_style.py::category_style for ordered categories. After all
usable solids, cycle allowed border colors with fill contrast at least 3:1,
then solid/dashed/dotted styles, then widths of 1–3 px. After that finite set,
use labels, symbols or split views instead of wider rims or indistinguishable
color combinations.
agents/openai.yaml (opens in a new tab)assets/examples/procedural-svg-animation/gallery.css (opens in a new tab)assets/examples/procedural-svg-animation/gallery.js (opens in a new tab)assets/examples/procedural-svg-animation/index.html (opens in a new tab)assets/examples/procedural-svg-animation/manifest.json (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-alpha-persistence.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-boid-flock.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-cellular-automaton.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-clip-morph.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-counter-rotation.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-curl-streamlines.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-dash-conveyor.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-diffusion-limited.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-distance-contours.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-easing-orchestra.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-fast-marching-front.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-field-glyph-morph.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-fourier-epicycles.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-fractal-lightning.svg (opens in a new tab)assets/examples/procedural-svg-animation/patterns/procedural-svg-gear-train.svg (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin diagram-studio11 skills in this plugin
/compose-synchronized-svgDesigns, builds, synchronizes, and validates giant standalone SVG compositions made from many related diagrams, charts, maps, schematics, illustrations, and explanatory assets. Use when Codex must turn one idea into a coherent 6–16-module megacanvas or a 12–48-module navigable world such as a Path of Exile-style skill tree, giant genealogy, causal atlas, or linked-diagram map; keep recurring concepts visually consistent; propagate canonical values through every relevant view; coordinate focus, time, world-to-district-to-module semantic zoom, or a deterministic camera route for video; and deliver one self-contained interactive SVG with meaningful static and reduced-motion fallbacks./d3Creates, animates, inspects, recomposes, and validates D3-powered HTML and SVG visuals. Use for custom charts, simulations, linked views, visual audits, parametric logos, textures, and portable SVG that need data-driven geometry, joins, layouts, or transitions./diagram-compositionDecomposes a complex idea into related subdiagrams, chooses suitable visual forms, and composes a compact page with explicit grid spans, consistent semantic colors, readable text, shared SVG icons, and meaningful cross-panel connections. Use for dense explanatory figures, architecture plates, visual comparisons, and multi-panel diagrams that need semantic planning before layout; coordinate available diagram and icon skills without requiring them.Other plugins' skills for the same job