Skip to content
Skills Library
Science & research · Building & coding

figure

/figure

Generates complete, runnable visualization code for research figures. Produces matplotlib/seaborn Python scripts for quantitative data and Mermaid diagrams for conceptual relationships, workflows, and taxonomies. Use when the user asks for charts, graphs, visualizations, figures, or diagrams. Produces code only — does not render images directly.

Licence
MIT
Last repository change
20.05.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 20.05.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Generates complete, runnable visualization code for research figures. Produces matplotlib/seaborn Python scripts for quantitative data and Mermaid diagrams for conceptual relationships, workflows, and taxonomies. Use when the user asks for charts, graphs, visualizations, figures, or diagrams. Produces code only — does not render images directly.

Original author description

Generates complete, runnable visualization code for research figures. Produces matplotlib/seaborn Python scripts for quantitative data and Mermaid diagrams for conceptual relationships, workflows, and taxonomies. Use when the user asks for charts, graphs, visualizations, figures, or diagrams. Produces code only — does not render images directly.

How it works

  1. Figure Types
  2. Decision guide
  3. Output Format
  4. Code requirements
  5. Validation (always run after generating Python code)
  6. How to run
Original SKILL.md headings · 86 lines, 341 words
SKILL.md preview
---
name: figure
description: >
  Generates complete, runnable visualization code for research figures. Produces matplotlib/seaborn
  Python scripts for quantitative data and Mermaid diagrams for conceptual relationships, workflows,
  and taxonomies. Use when the user asks for charts, graphs, visualizations, figures, or diagrams.
  Produces code only — does not render images directly.
license: MIT
metadata:
  author: archora
  version: "1.1"
  website: https://archora2026.com/
---

# Figure Generator

Generate publication-quality visualization code for research figures.

## Figure Types

| Type | Use for | Format |
|------|---------|--------|
| **matplotlib** | Quantitative data: bar charts, scatter plots, line graphs, heatmaps, box plots | Python |
| **seaborn** | Statistical visualizations: distributions, regressions, pair plots | Python |
| **Mermaid** | Conceptual diagrams: workflows, taxonomies, hierarchies, timelines | Mermaid |

## Decision guide

- Numbers, measurements, time series → **matplotlib/seaborn**
- Concepts, relationships, processes → **Mermaid**
- When in doubt: generate both

## Output Format

````markdown
## Figure 1: [Title]

**Caption:** [Full figure caption as it would appear in a paper — what is shown and the key takeaway]

**Description:** [What this figure shows and why it matters for the research]

**Type:** Python (matplotlib/seaborn)

```python
import matplotlib.pyplot as plt
import numpy as np

# [Complete, runnable code with realistic placeholder data]
plt.tight_layout()
plt.savefig('figure1.png', dpi=300)
plt.show()
```
````

## Code requirements

- **Complete and runnable** — no placeholders like `your_data_here`
- **All imports included** — never reference a library without importing it
- **Realistic placeholder data** — use domain-appropriate values and ranges
- **Publication quality** — `dpi=300`, proper axis labels, legend, title
- **Accessible colors** — avoid red/green only distinctions

## Validation (always run after generating Python code)

Before presenting code to the user, validate syntax with Python's AST parser:

```bash
python -c "import ast; ast.parse(open('figure1.py').read()); print('✅ Syntax OK')"
```

If the check fails, fix the syntax error and re-validate before showing the result.

**For inline code blocks**, validate with:
```python
import ast
code = """
# paste generated code here
"""
try:
    ast.parse(code)
    print("✅ Syntax OK")
except SyntaxError as e:
    print(f"❌ Syntax error: {e}")
```

> Note: AST validation checks syntax only — it does not catch runtime errors (e.g. wrong data shapes). Always include comments explaining how to adapt placeholder data to real data.

## How to run

**Python figures:**
```bash
pip install matplotlib seaborn numpy
python figure1.py
```

**Mermaid diagrams:**
- Paste into [mermaid.live](https://mermaid.live)
- Or use any Markdown renderer that supports Mermaid (Obsidian, GitHub, etc.)

Versions

RepositoryScoreLicence
This page · richard-kim-79/archora-skills100MIT
vectorize-io/hindsight100MIT
piabrota/skills100MPL-2.0
piabrota/nix-os100MPL-2.0

Database snapshot: 13.11.2026 · package version cb74f0f368fd (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95academic-plotting
    Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates…
  • 100scientific-figures
    Standards and craft for publication-quality scientific figures and data visualization — choosing the right chart, honest encoding, colour-blind-safe palettes, vector vs raster, figure/caption design, and reproducible figure code (matplotlib/seaborn, ggplot2, plotly) plus…
  • 100academic-plotting
    Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates…
  • 100scientific-figures
    Create, style, export, and validate publication-quality scientific and technical figures. xy is the preferred default (matplotlib.pyplot-compatible for easy migration); matplotlib/seaborn/plotly also supported. Use when the user asks for a "publication figure", "paper figure",…
  • 100python-visuals
    Python visual creation and matplotlib/seaborn patterns for PBIR reports. Automatically invoke when the user mentions "Python visual", "matplotlib in Power BI", "seaborn in Power BI", "pythonVisual", or asks to "create a Python visual", "add a matplotlib chart", "write a Python visual script".
  • 100scientific-visualization
    Creates and audits truthful, accessible, publication-ready scientific figures with Matplotlib, Seaborn, or Plotly. Use it for figure design, multi-panel layouts, uncertainty and missing-data displays, color/contrast review, image metadata validation, and journal export planning.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.