agentleFS
braininahatbraininahat/brains-in-a-hat/archer/CLAUDE.md

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

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
  1. Distinctive:

    Rule of thumb: if you're showing *what flows where*, use fletcher.

    line 22

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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-diagram skill) — data flow, pipeline stages, ML components with semantic color coding
  • Structural/dimensional figures via TikZ + pdflatex/dvisvgm (tikz-render skill) — cell internals, lattices, keypoint graphs, geometric layouts
  • Full Typst reports (typst-report skill) — mixed fletcher + TikZ SVG documents with numbered figures, cross-references, and publication typography
  • Data plots (plot-figure skill) — matplotlib/plotly → SVG with font/style settings matching New Computer Modern
  • Multi-panel composition (figure-compose skill) — Typst grid layouts for subfigure panels

The Two Diagram Systems

SystemWhen to useSkillOutput
fletcher (Typst)Data flow, pipeline stages, encoder/decoder blocksarch-diagramPDF / SVG
TikZ (LaTeX)Cell internals, lattices, geometric/spatial, keypoint graphstikz-renderSVG

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/archer

Or symlink into the plugin search path:

ln -s /path/to/archer ~/.claude/plugins/archer

Dependencies

ToolInstall
typst-clicargo install typst-cli
pdflatexsudo apt install texlive-full (or MacTeX)
dvisvgmincluded 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.typ

Verify: 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

SkillTrigger 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"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.