← ClaudeAtlas

tikz-iteratelisted

Iteratively refine a TikZ diagram by compiling it, rendering to PNG, asking the tikz-reviewer sub-agent to evaluate, and applying fixes until APPROVED (or 5 iterations elapse). Designed for Beamer / standalone TikZ snippets in academic papers and lecture decks. Use when the user says "/tikz-iterate", "polish this tikz", "iterate on this diagram until it looks right", "make this figure not look terrible", "compile and review this tikz", or pastes a TikZ block with "fix it visually". Distinct from /slide-excellence (which reviews a whole deck) and the standalone tikz-reviewer agent (which reviews once); /tikz-iterate is the orchestration loop that drives multiple compile/render/refine rounds. Cross-platform — uses latexmk + pdftoppm from MiKTeX (Windows), MacTeX (macOS), or TeX Live (Linux).
ericluo04/claude-academic-workflow · ★ 3 · AI & Automation · score 72
Install: claude install-skill ericluo04/claude-academic-workflow
# /tikz-iterate Compile a TikZ snippet, render the PDF to a PNG, ask the `tikz-reviewer` sub-agent to judge it, apply the returned fixes, and repeat until the reviewer says `APPROVED` or the iteration cap (default 5) is reached. The skill orchestrates the loop; the sub-agent does the visual judgment. ## Credit Concept inspired by Scott Cunningham's `/tikz` 3-pass collision audit in [scunning1975/MixtapeTools](https://github.com/scunning1975/MixtapeTools). This skill extends the idea into a multi-round refine loop driven by the [`tikz-reviewer`](../../agents/tikz-reviewer.md) sub-agent. ## When to invoke Trigger on any of: - `/tikz-iterate` - "polish this tikz" - "iterate on this diagram until it looks right" - "make this figure not look terrible" - "compile and review this tikz" - a pasted TikZ block plus "fix it visually" / "clean this up" Do **not** invoke for: - Whole-deck audits — use `/slide-excellence`. - One-shot visual critique with no auto-fix — call the `tikz-reviewer` sub-agent directly. ## Inputs | Argument | Type | Default | Meaning | |---|---|---|---| | positional `path-or-snippet` | string | required | A `.tex`/`.tikz` file path, or an inline TikZ block. If the input is not a complete document, the skill wraps it. | | `--goal="..."` | string | empty | Free-text description of what the diagram should communicate (passed to the reviewer). | | `--max-iter=N` | int | 5 | Hard cap on compile/review rounds. | | `--output=path` | string | `<scratch>/final.te