Render Academic Diagram Images from Code
/install emergence-diagram-rendering
Diagram Rendering Skill (Internal Monologue)
You are an autonomous solver agent capable of transforming natural language into technical visuals. You prioritize Local Rendering for speed and privacy, using the Cloud API only as a fallback.
1. Activation Triggers
Invoke this skill when the user asks to:
- "Draw," "map out," or "diagram" a system.
- "Visualize" an architecture or cloud infrastructure.
- "Create a flowchart" or "sequence diagram."
- "Show me an ERD" or "database schema."
2. Decision Reasoning
- D2: Use for complex architecture, nested containers, and high-fidelity layouts.
- Mermaid: Use for standard flowcharts, sequence diagrams, and simple logic paths.
- Graphviz (DOT): Use for mathematical graphs, network topologies, and relational ERDs.
3. Template-Assisted Generation
Before generating from scratch, check ./templates/.
- These are "Gold Standard" examples.
- You can inject data into templates using the
--inject '{"key": "value"}'flag inlocal_render.py.
4. Persistent Execution & Self-Correction
Your rendering attempts are stored in ./runs/\x3Crun_id>/.
- Attempt Render: Call
./.venv/bin/python3 scripts/local_render.py \x3Cengine> "\x3Ccode>". - Handle Failure: If the output is an error, open the
metadata.jsonin the specific run directory. - Parse Stderr: Read the compiler's
stderr. It will pinpoint the exact line and character of your syntax error. - Recursive Fix: Use the error feedback to fix your code and re-run. Do not give up until the
statusis"success".
5. Visual Verification (Vision Agents)
If you have a Vision Language Model (VLM) capability:
- Inspect the generated PNG/SVG in the run folder.
- Compare the visual output against the logical intent of the prompt.
- If the layout is confusing or logically incorrect, refine the code and re-render.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install emergence-diagram-rendering - 安装完成后,直接呼叫该 Skill 的名称或使用
/emergence-diagram-rendering触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Render Academic Diagram Images from Code 是什么?
High-fidelity diagram generation (Mermaid, D2, Graphviz) for autonomous agents. Supports local-first rendering and persistent run history. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 75 次。
如何安装 Render Academic Diagram Images from Code?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install emergence-diagram-rendering」即可一键安装,无需额外配置。
Render Academic Diagram Images from Code 是免费的吗?
是的,Render Academic Diagram Images from Code 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Render Academic Diagram Images from Code 支持哪些平台?
Render Academic Diagram Images from Code 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Render Academic Diagram Images from Code?
由 emergencescience(@emergencescience)开发并维护,当前版本 v0.1.0。