More screenshots

    Works with the AI Agents you already use

    Editable Scientific Diagrams with TikZ

    by mi li

    1

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

    Free

    5.0 (1 review)

    Editable Scientific Diagrams with TikZ

    Example session with this skill installed

    Create an English teaching architecture diagram, no more than 160 mm wide. Start with synchronized temperature and pressure observations. Split into temperature calibration and pressure screening, then summarize identical windows in each branch. Join only complete window IDs and concatenate the two scalar summaries, preserving K and kPa as separate channels. Use Times New Roman text, black-and-white styling and clear orthogonal arrows. Provide complete editable TikZ source, a PDF, a 600 dpi PNG and a separate caption. This example contains no experimental results.

    • Read your context and instructions
    • Compiled the editable scientific diagrams
    • Generated the document

    This original teaching example uses two aligned processing branches and an explicit concatenation step. Temperature and pressure summaries are joined by complete window IDs and retain distinct K and kPa channels.

    Complete editable source: example-en.tex

    % Original teaching architecture; reflow when labels or canvas change.
    \documentclass[tikz,border=0pt]{standalone}
    \def\FigureLanguage{en}
    % Input after documentclass, before begin{document}; XeLaTeX/LuaLaTeX.
    % Authors may define the Figure*Font commands before input to override defaults.
    % English-only documents can set FigureLanguage=en without loading CJK support.
    \providecommand{\FigureLanguage}{zh}
    \providecommand{\FigurePrimary}{zh}
    \makeatletter
    \@ifundefined{ifFigureEnglishOnly}{%
      \newif\ifFigureEnglishOnly
      \def\FigureFontEnglishMode{en}%
      \edef\FigureFontSelectedMode{\FigureLanguage}%
      \ifx\FigureFontSelectedMode\FigureFontEnglishMode\FigureEnglishOnlytrue\fi
    }{}
    \makeatother
    \providecommand{\FigureCJKFont}{SimSun}
    \providecommand{\FigureLatinFont}{Times New Roman}
    \providecommand{\FigureMathFont}{TeX Gyre Termes Math}
    \ifFigureEnglishOnly
      \usepackage{fontspec}
      \typeout{FIGURE-CJK-FONT: not requested (English-only)}
    \else
      \usepackage[UTF8,fontset=none]{ctex}
    \fi
    \usepackage{amsmath}
    \usepackage{unicode-math}
    \ifFigureEnglishOnly\else
    \IfFontExistsTF{\FigureCJKFont}
      {\setCJKmainfont{\FigureCJKFont}\typeout{FIGURE-CJK-FONT: \FigureCJKFont}}
      {\setCJKmainfont{FandolSong-Regular}
       \typeout{FIGURE-CJK-FONT: FandolSong-Regular (fallback)}
       \PackageWarningNoLine{paperfigure}{Chinese font fallback: FandolSong-Regular}}
    \fi
    \IfFontExistsTF{\FigureLatinFont}
      {\setmainfont{\FigureLatinFont}\typeout{FIGURE-LATIN-FONT: \FigureLatinFont}}
      {\setmainfont{Latin Modern Roman}
       \typeout{FIGURE-LATIN-FONT: Latin Modern Roman (fallback)}
       \PackageWarningNoLine{paperfigure}{Latin font fallback: Latin Modern Roman}}
    \IfFontExistsTF{\FigureMathFont}
      {\setmathfont{\FigureMathFont}\typeout{FIGURE-MATH-FONT: \FigureMathFont}}
      {\setmathfont{latinmodern-math.otf}
       \typeout{FIGURE-MATH-FONT: Latin Modern Math (fallback)}
       \PackageWarningNoLine{paperfigure}{Requested math font unavailable; using Latin Modern Math}}
    % For individual bold letters/Greek symbols, not a replacement for bold equations.
    % symbf follows bold-style; use symbfup/symbfit for explicit upright/italic.
    \providecommand{\FigureBoldSymbol}[1]{\symbf{#1}}
    
    \newcommand{\FigureLabel}[4][]{\parbox[c]{#1}{\centering #3\par}}
    \usetikzlibrary{arrows.meta}
    \begin{document}
    \fontsize{9.5}{11.875}\selectfont
    \begin{tikzpicture}[x=1mm,y=-1mm,line width=.6pt,
     every node/.style={inner sep=0pt,outer sep=0pt},>={Stealth[length=2mm,width=1.4mm]}]
    \path[use as bounding box] (0,0) rectangle (160.000000,88.000000);
    \draw (40.000000,4.000000) rectangle (120.000000,15.000000);
    \draw (4.000000,29.000000) rectangle (76.000000,40.000000);
    \draw (84.000000,29.000000) rectangle (156.000000,40.000000);
    \draw (4.000000,48.000000) rectangle (76.000000,59.000000);
    \draw (84.000000,48.000000) rectangle (156.000000,59.000000);
    \draw (40.000000,73.000000) rectangle (120.000000,84.000000);
    \draw (40.000000,21.000000) -- (80.000000,21.000000);
    \draw (80.000000,21.000000) -- (120.000000,21.000000);
    \draw (40.000000,67.000000) -- (80.000000,67.000000);
    \draw (80.000000,67.000000) -- (120.000000,67.000000);
    \draw (80.000000,15.000000) -- (80.000000,21.000000);
    \draw[->] (80.000000,67.000000) -- (80.000000,73.000000);
    \draw[->] (40.000000,21.000000) -- (40.000000,29.000000);
    \draw[->] (40.000000,40.000000) -- (40.000000,48.000000);
    \draw (40.000000,59.000000) -- (40.000000,67.000000);
    \draw[->] (120.000000,21.000000) -- (120.000000,29.000000);
    \draw[->] (120.000000,40.000000) -- (120.000000,48.000000);
    \draw (120.000000,59.000000) -- (120.000000,67.000000);
    \node[anchor=center] at (80.000000,9.500000) {\FigureLabel[76mm]{}{Synchronized sensor observations}{}};
    \node[anchor=center] at (40.000000,34.500000) {\FigureLabel[68mm]{}{Calibrate temperature}{}};
    \node[anchor=center] at (120.000000,34.500000) {\FigureLabel[68mm]{}{Screen pressure samples}{}};
    \node[anchor=center] at (40.000000,53.500000) {\FigureLabel[68mm]{}{Summarize common windows}{}};
    \node[anchor=center] at (120.000000,53.500000) {\FigureLabel[68mm]{}{Summarize common windows}{}};
    \node[anchor=center] at (80.000000,78.500000) {\FigureLabel[76mm]{}{Join complete windows and concatenate summaries}{}};
    \end{tikzpicture}
    \end{document}
    

    Caption

    Original teaching workflow without experimental data. Synchronized temperature and pressure observations share a predefined window identifier. Each branch produces one scalar summary per window, in K and kPa respectively. Only windows with both summaries are joined; concatenation preserves the two physical units and does not average them. Arrows denote processing dependencies.

    Rendered outputs and verification

    The source was compiled locally using XeLaTeX. The PDF measures approximately 160 by 88 mm and contains vector paths with embedded Times New Roman text and no detected embedded raster images. The PNG is 3780 by 2079 pixels with 600 dpi metadata. The requested math font fell back to Latin Modern Math; that fallback is disclosed even though this example has no mathematical labels. The layout was visually reviewed for label containment, balanced branches and clear arrow routing.

    The actual PDF and PNG accompany this release as example-en.pdf and example-en.png. The image shown in this listing should be the corresponding actual PNG, not an unrendered source preview. This example is local validation evidence; a live marketplace execution has not yet been verified.

    Reuse

    Save the complete source as example-en.tex and compile it with XeLaTeX in an environment with the required packages and fonts. Modify the scientific brief and labels, then reflow and rebuild the layout before using it in a paper. Confirm the target journal's final dimensions and formatting requirements. No experimental results or publication-acceptance claims are made.

    example-en.pdf

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    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

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Software
    Python 3.10+
    Optional
    XeLaTeX and figure-specific TeX packages (compilation)pypdfium2 5.9.0 (PDF inspection and rendering)Pillow 12.2.0 (PNG saving)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.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed12 days ago

    What's inside

    Creator

    mi li

    mi li

    wow

    Frequently Asked Questions

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

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

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

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

    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.

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

    New in Technical Documentation

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.

    Free