mirror of
https://github.com/wassname/draw_diag.git
synced 2026-06-27 16:30:21 +08:00
eeefc69f5a74fdcfef34ca0fbd9a2a954bf68f1e
draw_diag
CeTZ/Typst diagrams with Claude Code iteration loop.
Setup
sudo snap install typst
Usage
./render_diagram.sh diagrams/example/my_diagram.typ
Claude Code iteration workflow
- Read source code, create
.typfile with source docs in comments - Render:
./render_diagram.sh diagram.typ - Use a sub-agent to review the PNG (critical - avoids confirmation bias):
Task tool, subagent_type: general-purpose "Look at this PNG and explain what concept it conveys. No context - just describe what you see. Maybe give constructive criticism and describe any issues you have with the task" - Fix issues based on sub-agent feedback
- Each time make a new file:
diagram_v2.typ,diagram_v3.typ, etc. So we can visualize the changes over time.
- Each time make a new file:
- Repeat until sub-agent correctly understands the diagram without hints
References
Description
Languages
Typst
47.6%
Shell
36%
TeX
16.4%
