tikz-iteratelisted
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