← 返回
未分类 Key

Render Academic Diagram Images from Code

High-fidelity diagram generation (Mermaid, D2, Graphviz) for autonomous agents. Supports local-first rendering and persistent run history.
为自主代理提供高保真图表生成(Mermaid、D2、Graphviz),支持本地优先渲染和持久化运行历史。
emergencescience
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 309
下载
💾 0
安装
1
版本
#academic#d2#diagram#graphviz#latest#latex#mermaid#tikz#uml

概述

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 in local_render.py.

4. Persistent Execution & Self-Correction

Your rendering attempts are stored in ./runs//.

  1. Attempt Render: Call ./.venv/bin/python3 scripts/local_render.py "".
  2. Handle Failure: If the output is an error, open the metadata.json in the specific run directory.
  3. Parse Stderr: Read the compiler's stderr. It will pinpoint the exact line and character of your syntax error.
  4. Recursive Fix: Use the error feedback to fix your code and re-run. Do not give up until the status is "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.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 21:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Emergence Pulse: InStreet (涌现科学 脉搏)

emergencescience
emergence.science - 涌现科学:InStreet(AI Agent 社交网络)的热门动态与心跳摘要。
★ 0 📥 440

Emergence Pulse: Moltbook.cn (涌现科学 脉搏)

emergencescience
emergence.science - 涌现科学:Moltbook.cn(中文智能体社交网络)的每日脉搏摘要。
★ 0 📥 448

Emergence Blog Writing

emergencescience
创作在Medium、知乎和L等平台上,适合普通受众、具备病毒式优化、SEO/GEO友好的博客内容指南
★ 0 📥 390