# Editable Scientific Diagrams with TikZ

> Generate editable, publication-quality TikZ diagrams for scientific papers with bilingual support and layout verification.

Editable Scientific Diagrams with TikZ is a free AI agent skill on Agensi by mi li, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [mi li](https://www.agensi.io/creators/mi-li)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Rating: 5.0 out of 5 from 1 review
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/editable-scientific-diagrams-with-tikz
- Tags: documentation, latex, tikz, academic-writing, research

## About this skill

Create editable TikZ diagrams for research papers, including workflows, model architectures and physical-principle schematics. This skill guides your agent through scientific structure, academic typography, layout, compilation and review.

### What it does

- **Purpose-aware structure:** distinguishes research roadmaps, algorithms, model architectures and physical schematics, with guidance tailored to each figure’s role.
- **Multilingual typography:** supports Chinese, English and bilingual labels. Defaults to SimSun for Chinese and Times New Roman for English, with author overrides and disclosed font fallbacks.
- **Editable mathematics:** preserves LaTeX equations and common academic notation, including Greek letters, statistical symbols, matrices and calculus.
- **Scientific consistency review:** guides checks of notation, units, data interfaces, merge operations, branch conditions and loop termination. These checks require review of the author’s scientific description.
- **Checked exports:** provides a standalone Python helper to compile figures and inspect PDF dimensions, font embedding, text bounds, raster content and basic language-character presence.

### How it works

1. Provide the figure’s purpose, supported component relationships, labels, equations, language and intended dimensions.
2. The agent selects a suitable structure and creates a complete, self-contained TikZ document.
3. When the required tools are available, the helper compiles the source and produces a PDF and optional PNG.
4. The agent inspects the rendered result, revises observed problems and reports actual fonts, dimensions and unresolved findings.

### Outputs

- Complete editable `.tex` source
- Compiled PDF when rendering is available
- PNG at the requested resolution
- A separate caption and concise review notes

PDF output is vector-first; imported raster content is reported separately. PNG export supports 72–1200 dpi, subject to a 40-megapixel limit per page. The default 150 dpi PNG is a preview.

### Requirements

Rendering requires Python 3.10+, XeLaTeX and the TeX packages used by the figure. Chinese and bilingual examples use `ctex`. PDF inspection requires `pypdfium2`; PNG saving additionally requires `Pillow`.

Fonts must be available in the execution environment. Dependencies are not installed automatically. The release was tested on Windows; other operating systems remain unverified.

### Example uses

- Model architectures with parallel paths and explicitly defined merge operations
- Algorithm diagrams with labelled decisions, feedback paths and stopping conditions
- Scientific workflows with consistent terminology and clear dependencies
- Physical-principle schematics with boundary conditions, units and governing equations

The package includes four original teaching diagrams and an academic-symbol proof sheet. Version 1.0.0 passed 38 local tests covering normal operation, boundary conditions and failure handling.

### Known limitations

Mechanical checks do not establish scientific correctness or guarantee freedom from visual overlap. Each

## Requires

- Python 3.10+
- Optional: XeLaTeX and figure-specific TeX packages (compilation)
- Optional: pypdfium2 5.9.0 (PDF inspection and rendering)
- Optional: Pillow 12.2.0 (PNG saving)
- Optional: ctex and available CJK fonts (Chinese/bilingual compilation)

Your agent needs local file and command execution. PDF/PNG output requires the optional dependencies above. Without them, only editable source is provided and verification remains incomplete. Font fallbacks are reported. Tested on Windows.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Editable Scientific Diagrams with TikZ skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Can I edit the diagram?

Yes. The output includes a complete editable TikZ/LaTeX document.

### Does it support Chinese and English?

Yes: Chinese, English and bilingual labels. Default text fonts are SimSun and Times New Roman, with author overrides and disclosed fallbacks.

### Is every PDF purely vector?

TikZ paths and text are vector-first. Imported raster images remain raster and are reported separately.

### What if I do not have XeLaTeX?

Editable source can still be provided, but compilation and visual verification are marked incomplete.

### Can I commercially use generated figures?

The included licence permits retaining, editing, publishing and commercially using generated figure outputs, subject to applicable third-party rights. It does not grant redistribution or resale of the skill package itself.

### Does it guarantee scientific accuracy or journal acceptance?

No. Mechanical checks support author review; scientific claims, visual layout and journal requirements must be checked for each task.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
