Skip to content
Back to skills

572 Usage Guide D71e206f

ASecurity

This skill creates publication-quality phylogenetic tree figures using Bio.Phylo's matplotlib integration. It supports customizing labels, colors, and exporting to various image formats.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
businesspythonbashnode

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 572-usage-guide_d71e206f --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 572 Usage Guide D71e206f?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 572 Usage Guide D71e206f
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-572-usage-guide-d71e206f/badge)](https://www.skillsdirectory.com/skills/tools-only-572-usage-guide-d71e206f)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Tree Visualization - Usage Guide

## Overview

This skill creates publication-quality phylogenetic tree figures using Bio.Phylo's matplotlib integration. It supports customizing labels, colors, and exporting to various image formats.

## Prerequisites

```bash
pip install biopython matplotlib
```

## Quick Start

Tell your AI agent what you want to do:
- "Draw this Newick tree and save as PNG"
- "Create a publication-quality tree figure with bootstrap values"
- "Highlight the primate clade in red"

## Example Prompts

### Basic Drawing
> "Plot this tree with taxa labels"

> "Show me an ASCII representation of this tree"

> "Draw the tree and save as PDF"

### Customization
> "Add branch length labels to the tree"

> "Show bootstrap support values at internal nodes"

> "Make the tree figure taller to fit all labels"

### Coloring
> "Color the human and chimp clades in red"

> "Highlight clades with bootstrap > 90 in green"

### Export
> "Save the tree as SVG for my publication"

> "Export high-resolution PNG at 300 DPI"

## What the Agent Will Do

1. Read the tree file using Bio.Phylo
2. Pre-process tree (ladderize, set missing lengths)
3. Configure figure size based on number of taxa
4. Apply requested customizations (colors, labels)
5. Render tree using matplotlib
6. Save to requested format

## Output Formats

| Format | Best For |
|--------|----------|
| PNG | Presentations, web |
| PDF | Publications (vector) |
| SVG | Web, editing in Illustrator |

## Tips

- Always `ladderize()` trees before drawing for cleaner appearance
- Scale figure height with number of taxa (0.3 inches per taxon works well)
- Set `do_show=False` when saving to file to avoid display issues
- Convert to PhyloXML for better color support
- Use `bbox_inches='tight'` when saving to avoid cropped labels

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.