Home / All Skills / Design & Motion / programmatic-viz
Design & Motion · vidanov/llm-programmatic-image-gen

programmatic-viz

Intelligent visual generation and renderer routing library. Guides AI to write clean, diffusion-free SVG, Canvas 2D, and Three.js visual code.

L1 Basic · Source registration onlyV1 Commit-PinnedDual-pass Audit
💬 Chat Trial
Author vidanovGitHub vidanov/llm-programmatic-image-gen ↗Stars 420License MIT(仓库开源)Commit a1b7c54a46
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

Code-first visual philosophy: The LLM writes code; existing free renderers generate the visual. Output is deterministic, editable, version-controlled, and scalable.

skills/programmatic-viz.md
The LLM writes code. The renderer produces the visual. The renderer is free. The output is deterministic, editable, version-controllable, and scalable.
Treats code as the intermediate visual representation.

Bottom-up renderer decision ladder: Defaults to lightweight, ultra-cheap SVGs (~$0.0005); elevates to Canvas 2D or Three.js only when physics or 3D is required.

skills/programmatic-viz.md
Start at SVG (simplest, cheapest). Move up only when the concept requires interactivity, 3D, or physics that SVG cannot express.
Rigorous token and rendering cost efficiency.

Smart diffusion vs. code routing heuristic: Directs requests for concrete nouns (animals, people, photos) to diffusion models; routes abstract concepts (diagrams, flows, demos) to code.

skills/programmatic-viz.md
"picture of [concrete noun]" → diffusion. "visualize [concept]" → code.
Intelligent dual-engine complementarity.

2Core Capabilities

01Generative SVG backgrounds and stroke-dashoffset growth animations
02Zero-build standalone Canvas 2D particle simulations and Three.js 3D scenes

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Can be auto-loaded
For Administrators
Register source and version
Evidence & Triggers (File Paths & Excerpts)
  • SKILL.md: Programmatic visualization routing rules and lightweight rendering templates; zero environmental hazards.
Audit Notes: Pure prompt constraints and single-file code templates; no unauthorized host access.

5Second-Pass Verification

  • [ok] commit一致性 — a1b7c54a46b838c00742a313caa5ed685166d4d3 與倉庫 HEAD 絕對一致
  • [ok] 證據逐字性 — 所有 evidence quote 均在源文件中逐字精確匹配

6Verdict & Scenarios

  • Extreme simplicity: All generated HTML/SVG files are self-contained; drag-and-drop preview into any browser with zero npm build
  • Massive cost reduction: Cuts visual production costs from $0.03–$0.20 per image down to $0.0005–$0.001 in text tokens
  • Best for: Ideal for technical blog diagrams, system architecture charts, animated README hero banners, and interactive physics/math explainers.
    Not for: Not suitable for photorealistic human portraits or complex painterly watercolor art requiring diffusion pixel textures.
    💬 Online Trial Chat Sandbox

    Preview this skill in an interactive chat playground. Generic LLM evaluation trial.

    💬 Open Chat Trial (Preview)
    Under construction · Generic sandbox trial
    Install Agent-Ready
    ① Accelerated Distribution dl.bestaiskill.com
    Option A · Direct Zip Download⚡ Download programmatic-viz (Zip)
    Edge-accelerated mirror via dl.bestaiskill.com
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit a1b7c54a46.