brains-in-a-hat / archer
CLAUDE.md4 starsChanged 8 months agoMITView on GitHub
archer = *architecture + figurer* A brains-in-a-hat plugin for producing publication-ready scientific figures: ML architecture diagrams, TikZ renderings, Typst research reports, and matplotlib/plotly data plots. Rule of thumb: if you're showing what flows where, use fletcher. If you're showing what's inside a cell or how geometry works, use TikZ. Or symlink into the plugin search path: The arch-diagram skill uses a local Typst package. It must be installed once: Verify: typst compile --check skills/arch-diagram/examples/ctc-pipeline.typ
- Installs packages
In this repositoryOne other file it gives its agents.
- brains-in-a-hat/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Rule of thumb: if you're showing *what flows where*, use fletcher.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
archer — Publication-Quality Scientific Visualization
archer = architecture + figurer
A brains-in-a-hat plugin for producing publication-ready scientific figures: ML architecture diagrams, TikZ renderings, Typst research reports, and matplotlib/plotly data plots.
What archer does
- Architecture diagrams via Typst + fletcher (
arch-diagramskill) — data flow, pipeline stages, ML components with semantic color coding - Structural/dimensional figures via TikZ + pdflatex/dvisvgm (
tikz-renderskill) — cell internals, lattices, keypoint graphs, geometric layouts - Full Typst reports (
typst-reportskill) — mixed fletcher + TikZ SVG documents with numbered figures, cross-references, and publication typography - Data plots (
plot-figureskill) — matplotlib/plotly → SVG with font/style settings matching New Computer Modern - Multi-panel composition (
figure-composeskill) — Typst grid layouts for subfigure panels
The Two Diagram Systems
| System | When to use | Skill | Output |
| fletcher (Typst) | Data flow, pipeline stages, encoder/decoder blocks | arch-diagram | PDF / SVG |
| TikZ (LaTeX) | Cell internals, lattices, geometric/spatial, keypoint graphs | tikz-render | SVG |
Rule of thumb: if you're showing what flows where, use fletcher. If you're showing what's inside a cell or how geometry works, use TikZ.
Installation
cc --plugin-dir /path/to/archerOr symlink into the plugin search path:
ln -s /path/to/archer ~/.claude/plugins/archerDependencies
| Tool | Install |
typst-cli | cargo install typst-cli |
pdflatex | sudo apt install texlive-full (or MacTeX) |
dvisvgm | included with texlive-full |
@local/diagrams:0.1.0 (Typst package)
The arch-diagram skill uses a local Typst package. It must be installed once:
mkdir -p ~/.local/share/typst/packages/local/diagrams/0.1.0
cp skills/arch-diagram/lib.typ ~/.local/share/typst/packages/local/diagrams/0.1.0/
# Or symlink so edits to lib.typ propagate automatically:
ln -s "$(pwd)/skills/arch-diagram/lib.typ" \
~/.local/share/typst/packages/local/diagrams/0.1.0/lib.typVerify: typst compile --check skills/arch-diagram/examples/ctc-pipeline.typ
Quick Start
# Create an architecture diagram
/diagram Draw the CTC pipeline: poses → CNN1D → BiGRU → CTC → phonemes
# Render all figures in a directory
/render-figures paper/figures/
# Review a figure for publication quality
# (activate the figure-reviewer agent)Skills Reference
| Skill | Trigger phrases |
arch-diagram | "architecture diagram", "fletcher diagram", "visualize the model", "draw the pipeline" |
tikz-render | "TikZ figure", "compile LaTeX", "cell internals", "convert .tex to SVG" |
typst-report | "create a report", "write a Typst report", "research report PDF" |
plot-figure | "create a plot", "training curves", "ablation chart", "visualize metrics" |
figure-compose | "combine figures", "multi-panel", "arrange subfigures", "figure grid" |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

