Skip to content
fmschulzPublic

About

Public documentation, examples, and AI agent skill for TreeViz.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

TreeViz

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

Use TreeViz from an AI agent

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.

Examples

Click a preview to open its session. See the examples guide for source data, methods and reconstruction limits.

Circular viral tree with metadata rings
1. Mirusviricota
SILVA taxonomy with nodes sized by sequence count
2. SILVA taxonomy
Radial TARA Oceans metazoan taxonomy
3. TARA Oceans Metazoa
Archaeal tree with gene-acquisition connections
4. Archaeal gene acquisitions
Radial tree spanning Bacteria, Archaea and Eukaryota
5. Tree of life
Rectangular S. aureus CC398 tree with annotation columns
6. S. aureus CC398
Microbial tree of life with clade colors
7. PhyloPhlAn tree of life
Circular bioreactor genome tree with heatmap rings
8. Bioreactor MAGs
Gut microbiota cladogram comparing HMP and MetaHIT cohorts
9. HMP and MetaHIT microbiota

Guides: browser, Python and agent automation.

Repository contents

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.

About

Public documentation, examples, and AI agent skill for TreeViz.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages