View, annotate and edit phylogenetic trees in your browser. Add metadata, choose a rectangular, circular or radial layout, and export SVG, PNG or PDF figures. Save your work as an editable session.
TreeViz is built to be driven by AI coding agents such as Claude Code and
Codex. Install the treeviz-agent skill from this repository, then describe
the figure in plain language. The agent loads the tree and metadata, styles the
figure through the TreeViz browser API, checks the layout diagnostics and
exports the result. The same app also works by hand in the browser.
Open TreeViz · Documentation · Agent automation · Getting started
Copy the skill directory into the agent's skills folder:
git clone --depth 1 https://github.com/fmschulz/treeviz.git
# Claude Code
mkdir -p ~/.claude/skills
cp -R treeviz/.agents/skills/treeviz-agent ~/.claude/skills/
# Codex
mkdir -p ~/.codex/skills
cp -R treeviz/.agents/skills/treeviz-agent ~/.codex/skills/Restart the agent so it loads the skill. The skill uses the hosted app at
https://treeviz.newlineages.com/?api=1, so the agent also needs a way to
drive a browser, such as Playwright, agent-browser or Claude in Chrome. To
update the skill, pull the clone and copy the directory again.
Example request:
Use the treeviz-agent skill. Draw tree.nwk as a circular tree, color the
leaves by the phylum column in metadata.tsv, add a heatmap ring for the
abundance columns, and export an SVG and a .treeviz.json session.
The agent automation guide describes the workflow, and the browser API reference lists every method and command.
Click a preview to open its session. See the examples guide for source data, methods and reconstruction limits.
![]() 1. Mirusviricota |
![]() 2. SILVA taxonomy |
![]() 3. TARA Oceans Metazoa |
![]() 4. Archaeal gene acquisitions |
![]() 5. Tree of life |
![]() 6. S. aureus CC398 |
![]() 7. PhyloPhlAn tree of life |
![]() 8. Bioreactor MAGs |
![]() 9. HMP and MetaHIT microbiota |
Guides: browser, Python and agent automation.
| Path | Contents |
|---|---|
.agents/skills/treeviz-agent/ |
Agent skill: SKILL.md, references and helper scripts |
docs/ |
Documentation site source, published to fmschulz.github.io/treeviz |
examples/ |
Python script that builds example sessions with the treeviz-phylo package |
The application source is maintained separately. Report problems in the issue tracker.








