Создание TikZ-диаграмм с ревью

design

new-diagram is a Claude Code skill that scaffolds a TikZ diagram from a curated snippet gallery, enforces collision-prevention rules, compiles the file, and iterates with a reviewer agent until the diagram is approved. The gallery ships eight templates: a causal DAG, mediation path, difference-in-differences, event study, horizontal timeline, scatter plot with OLS fit, flowchart, and supply-demand curves. The skill runs a mandatory Python checker (check-tikz-prevention.py) to catch P3/P4 violations, compiles the standalone file with xelatex, invokes the tikz-reviewer subagent with citations from tikz-measurement.md, and loops up to five rounds until APPROVED. Optionally it converts the output PDF to SVG for Quarto. Aimed at researchers and educators who need publication-quality scientific figures without writing TikZ from scratch.