Discover and explore top open-source AI tools and projects—updated daily.
opentikzAI-driven TikZ diagram generation for research papers
Top 96.7% on SourcePulse
Summary
OpenTikZ addresses the challenge of creating publication-ready TikZ diagrams for academic papers. It offers a curated library of copyable icons and editable templates, integrated with an AI skill (e.g., Claude Code plugin) that enables users to generate, modify, and compile figures directly from natural language descriptions or existing images. This provides researchers and engineers with a fast, reliable method for producing high-quality, vector-based diagrams that seamlessly integrate with LaTeX documents.
How It Works
The project provides a structured library of TikZ elements, categorized into atomic icons and complex, parametric templates. Its core innovation lies in the integration with AI agents via a dedicated skill. Each template includes an edit_contract that guides the AI, ensuring edits are accurate, adhere to a shared color palette and layout, and result in compilable LaTeX code. This approach contrasts with raw LLM TikZ generation, offering guaranteed compilation, stable node names for re-editing, and consistent styling, significantly improving the reliability and efficiency of diagram creation.
Quick Start & Requirements
The recommended quick start involves installing the OpenTikZ Claude Code plugin: /plugin marketplace add https://github.com/opentikz/opentikz followed by /plugin install opentikz@opentikz. Users then interact with the skill using commands like /opentikz:using-opentikz and natural language prompts. Alternatively, the repository can be cloned, and the skills/using-opentikz/SKILL.md can be used with GitHub-reading agents. Local development and validation require Python 3.x, jsonschema, a LaTeX toolchain (e.g., latexmk), and an SVG backend (dvisvgm or pdf2svg + pdfcrop). Official resources include the website, browse gallery, and contribution guidelines.
Highlighted Details
Maintenance & Community
The project is actively maintained via GitHub Actions for CI and site deployment. Community interaction is facilitated through Discussions for Q&A and feature requests, and Issues for bug reports and concrete tasks. Contribution guidelines are detailed in CONTRIBUTING.md and docs/DESIGN_GUIDE.md.
Licensing & Compatibility
The project employs a dual-licensing strategy: the code (scripts, build tooling) is licensed under MIT, permitting broad use and modification. The graphic content (TikZ figures, icons, previews) is dedicated to the public domain via CC0 1.0 Universal. This permissive licensing allows for unrestricted commercial use and integration into closed-source projects without copyleft concerns.
Limitations & Caveats
The README does not explicitly detail limitations such as alpha status or known bugs. However, the reliance on AI agents for advanced features may introduce variability in output quality depending on the agent's capabilities. Furthermore, local setup requires specific LaTeX and SVG toolchain dependencies, which could pose an initial hurdle for users without these environments.
3 months ago
Inactive