Emergent Science Render API Skill: Rendering TikZ, Mermaid, Graphviz, D2 in Agent

Introduction

In documentation, technical proposals, or thesis drafts, Agents can often generate source code for Mermaid, Graphviz, or TikZ. However, the local environment often lacks the corresponding compilation chain: the LaTeX/TikZ environment is heavy, and Graphviz and D2 require separate installation. Pasting the source code into a Markdown preview usually doesn’t render the image in most editors. Below is an introduction to the Official Emergence Science Skill on SkillHub: Rendering Professional Diagrams (TikZ, Mermaid, Graphviz, D2) via the Emergence Science Render API. This solution offloads rendering to the remote Emergence Science Render API; the Agent organizes the request according to skill instructions and retrieves diagram results that can be embedded into documents.

What is This

One-sentence positioning: For clients supporting Agent Skills, this skill renders diagram source code such as TikZ, Mermaid, Graphviz, and D2 into professional diagrams via the Emergence Science Render API.

  • Coordinate: @user_1acc1bde/emergence-render-image
  • Version: 1.0.0
  • Source: community (as tagged by SkillHub)
  • Category: design-media
  • Publisher: user_1acc1bde (Both the page and the description are branded as “Official Emergence Science Skill”)

SkillHub Page: https://www.skillhub.cn/skills/user_1acc1bde/emergence-render-image
Skill Package Address (Registered on SkillHub): https://api.skillhub.cn/user_1acc1bde/emergence-render-image

Core Functionality

Based on the public SkillHub description and tags, the verifiable capabilities are as follows:

  1. Multi-engine Diagram Rendering: Supports four common expression methods where “writing source code produces vector/professional diagrams”: TikZ, Mermaid, Graphviz, and D2.
  2. Remote Render API: Does not rely on local installation of TeX, Graphviz, or D2 CLI; rendering is completed by the Emergence Science Render API (Specific request parameters and return formats are subject to the installed SKILL.md; the current public download interface does not return the body content, so unverified fields are not expanded upon in this article).
  3. Requires API Key: The SkillHub tag is requires_api_key=true. Users must prepare valid API credentials for Emergence Science themselves before use and configure them according to the skill instructions.

Installation and Activation

The installation method provided by SkillHub is: Let the Agent read the official installation instructions and then install this skill coordinate.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is already present:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation (CLI + default Skills) according to the SkillHub documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Source description: https://skillhub.cn/install/skillhub.md

2. Install This Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/ and may not be loaded by the client.

skillhub install @user_1acc1bde/emergence-render-image --dir <your Agent skills directory>

Common path examples listed in the SkillHub documentation:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

3. Natural Language Installation (Page Prompt)

The SkillHub skill page also provides a copyable prompt. The general meaning is: Based on https://skillhub.cn/install/skillhub.md, install @user_1acc1bde/emergence-render-image. In Agents with the SkillHub installation flow integrated, you can directly send this prompt to complete the same steps.

After completing the steps above, restart or refresh the Agent’s skill list to confirm that @user_1acc1bde/emergence-render-image appears in the available skills, then configure the Key required for the Render API (the tag clearly indicates an API Key is required).

Typical Usage

The public page does not include reproducible end-to-end example commands; the actual interaction method should follow the SKILL.md inside the installation package (General Agent Skill format). Without the body text of SKILL.md, we can only summarize the usage outline consistent with the introduction:

  1. In the conversation, specify the type of diagram to draw (TikZ / Mermaid / Graphviz / D2) and the structural requirements.
  2. The Agent generates the corresponding source code under the skill constraints and calls the Emergence Science Render API to render it.
  3. Use the returned diagram for replies, documents, or attachments (Specifically whether it is PNG, SVG, or another format is subject to the skill and API documentation).

If skillhub install or the API download fails, you can first check the SkillHub page to confirm if the skill is still available for installation, or contact the publisher user_1acc1bde regarding package availability updates.

Applicable Scenarios and Notes

Who is it for

  • People who need to stably produce paper-grade TikZ or engineering-common Mermaid / Graphviz / D2 within Agent workflows but do not want to maintain a local rendering environment.
  • The content side is categorized as design-media, leaning towards illustration and media output, rather than general code generation.

Limitations and Notes

  • API Key: requires_api_key=true. Rendering cannot be completed without configuring a Key; do not commit the key to repositories.
  • Network and Compliance: Rendering goes through a remote API. You must ensure the runtime environment can access the Emergence Science service and comply with its terms of use.
  • Installation Availability: Based on SkillHub crawl data, the installation count is registered as 0, and skillhub install may encounter 404 errors in some environments; it is recommended to confirm the status on the SkillHub page before installation.
  • Data Metrics: SkillHub registers a rating of 100000 and 899 downloads (Page statistics fluctuate; subject to real-time SkillHub display at the time of writing).

Conclusion

If your pain point is “The Agent can write diagrams, but they cannot be rendered locally,” this skill connects TikZ, Mermaid, Graphviz, and D2 uniformly to the Emergence Science Render API, making it suitable as a supplementary capability for the design-media category. Official Entrances:

  • SkillHub: https://www.skillhub.cn/skills/user_1acc1bde/emergence-render-image
  • Skill Package Registration Address: https://api.skillhub.cn/user_1acc1bde/emergence-render-image
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye