设计 · vidanov/llm-programmatic-image-gen
programmatic-viz
Generate visuals by writing rendering code. Routes requests to the correct approach: diffusion models for photorealistic/artistic images, or code generation (SVG, Canvas 2D, Three.js, Blender, Godot, Manim) for diagrams, animations, visualizations, and technical content. Activates on any request to create a visual, image, illustration, diagram, animation, or 3D scene.
L1 基础 · 登记来源即可V1 已固定Dual-pass Audit
管控等级描述 skill 的能力与建议配套的管控措施,不代表质量或安全认证,也不表示可用或不可用。是否使用由用户和管理者决定。不同 agent 宿主对权限的约束各不相同,请勿假定宿主一定会提供安全兜底。第三方 skill 版权归原作者,使用风险由使用者自行承担。
1实现原理 · 为什么它能做到
代码生成核心哲学:大模型负责编写代码,现有免费图型引擎负责最终渲染。输出具备绝对确定性、可编辑性、版本控制与低成本扩展能力。
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.
用代碼作為圖像中間表示
自底向上的渲染器階梯決策:首選最輕量、最經濟的 SVG(成本僅約 $0.0005);僅當遇到交互性、3D 空間或物理模擬需求時,才向上躍遷至 Canvas 2D 或 Three.js。
skills/programmatic-viz.md
Start at SVG (simplest, cheapest). Move up only when the concept requires interactivity, 3D, or physics that SVG cannot express.
極致的 Token 與渲染成本控制
擴散模型與代碼繪圖分流啟發式準則:當用戶要求具體名詞圖片(如動物、人物、照片)時路由至擴散模型;當要求可視化抽象概念(如圖表、系統架構、動態演示)時強制作為代碼生成。
skills/programmatic-viz.md
"picture of [concrete noun]" → diffusion. "visualize [concept]" → code.
智能分流雙引擎互補
2核心能力
01SVG 生成式背景與數學曲線生長動畫
02免構建單文件 Canvas 2D 粒子與 Three.js 空間場景
4管控建议与判定依据
建议配套管控措施
面向 Agent
可自动加载
面向管理者
登记来源与版本
判定依据(文件路径与关键语句摘要)
- SKILL.md: 代碼繪圖分流與輕量渲染模板規則庫,純指令約束,零安全隱患
审计说明: 純提示詞規則庫與單文件代碼模板,生成標準 HTML/SVG/Python 代碼,無未授權的本地環境提權
5第二遍独立确认
- [ok] commit一致性 — a1b7c54a46b838c00742a313caa5ed685166d4d3 與倉庫 HEAD 絕對一致
- [ok] 證據逐字性 — 所有 evidence quote 均在源文件中逐字精確匹配
6结论
适合: 適用於技術博客插圖、系統架構圖、動態 README Hero Banner、交互式物理演示與數學科普視覺化。
不适合: 不適用於需要寫實人物照片、精細油畫水彩質感的藝術插畫場景。
💬 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 Agentagent 读 JSON 指南后会自动从本站下载安装,无需更多说明。
② Upstream GitHub
GitHub Repo ↗
Pinned to commit a1b7c54a46.