Agent skill

Chart Visualization

by HezaoHezao in HezaoHezao/poirot

Generate charts: select type, extract data, render image. An agent skill from HezaoHezao/poirot.

MITAuto-check passedData & Analytics

Install Chart Visualization

skills CLI
$ npx skills add HezaoHezao/poirot --skill chart-visualization -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HezaoHezao/poirot chart-visualization --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HezaoHezao/poirot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/poirot/backend/agents/skill/builtin_skills/creative/chart-visualization .claude/skills/chart-visualization && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
chart-visualization
GitHub stars
250
Token cost
~1k tokens
SKILL.md length
221 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Generate charts: select type, extract data, render image. An agent skill from HezaoHezao/poirot.

  • Works in 3 steps: Select Chart Type → Prepare Data → Generate Chart
  • Tasks that involve Data visualization
  • SKILL.md covers Overview, Chart Selection Guide, Workflow and Pitfalls
  • Calls python3 and pip

What it does

Chart Visualization is an agent skill from HezaoHezao/poirot. Generate charts: select type, extract data, render image.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering Data visualization. It works with Matplotlib. The repository describes itself as: Poirot is a deep research agent kernel built for those who care about how agents are architected. The licence is MIT.

When your agent uses it

  • Tasks that involve Data visualization

Example prompts

  • “/chart-visualization”

Requirements

  • Python 3
  • Node.js
  • Pre-approved tools (allowed-tools): bash, write_file, read_file

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Select Chart Type
  2. Prepare Data
  3. Generate Chart

What it can do on your machine

Read from SKILL.md and the folder at commit 86bf279. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • bash
    • write_file
    • read_file

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Chart Visualization loads about 1k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 221 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HezaoHezao/poirot at commit 86bf279, republished under its MIT licence (© HezaoHezao). 221 words, ~1,011 tokens.

Download SKILL.mdSave it as .claude/skills/chart-visualization/SKILL.md (or your agent's skills folder).
name
chart-visualization
description
Generate charts: select type, extract data, render image.
allowed-tools
bash, write_file, read_file
enabled
true
related-skills
data-analysis, consulting-analysis
license
MIT
author
Adapted from deer-flow (Bytedance, MIT)

Chart Visualization

Overview

Transform data into visual charts. Intelligently select the most suitable chart type, extract parameters, and generate a chart image.

Poirot note: The original deer-flow skill uses a bundled scripts/generate.js (Node.js + charting library). Poirot doesn't bundle that script. Use bash with Python (matplotlib/plotly) as the rendering engine instead. Install: pip install matplotlib plotly.

Chart Selection Guide

Data PatternRecommended ChartWhen
Time SeriesLine / AreaTrends over time
ComparisonsBar / ColumnCategorical comparison
DistributionHistogram / BoxplotFrequency distribution
Part-to-WholePie / TreemapProportions
RelationshipsScatterCorrelation
FlowSankeyFlow between stages
Multi-dimensionalRadarCompare across dimensions
ProcessFunnelStage conversion
HierarchyOrg chart / Mind mapTree structure
GeographicMapSpatial data

Workflow

1. Select Chart Type

Analyze the user's data features:

  • Time dimension? → Line/Area
  • Categories? → Bar/Column
  • Proportions? → Pie/Treemap
  • Correlation? → Scatter
  • Flow? → Sankey
  • Multiple dimensions? → Radar
2. Prepare Data

Extract data from user input, format as Python data structure:

python
data = {
    "labels": ["Jan", "Feb", "Mar", "Apr", "May"],
    "values": [120, 150, 180, 200, 220],
    "title": "Monthly Revenue",
    "xlabel": "Month",
    "ylabel": "Revenue ($K)"
}
3. Generate Chart
bash
python3 -c "
import matplotlib
matplotlib.use('Agg')  # non-interactive backend
import matplotlib.pyplot as plt

labels = ['Jan', 'Feb', 'Mar', 'Apr', 'May']
values = [120, 150, 180, 200, 220]

fig, ax = plt.subplots(figsize=(10, 6))
ax.plot(labels, values, marker='o', linewidth=2, markersize=8)
ax.set_title('Monthly Revenue', fontsize=16, fontweight='bold')
ax.set_xlabel('Month', fontsize=12)
ax.set_ylabel('Revenue ($K)', fontsize=12)
ax.grid(True, alpha=0.3)
plt.tight_layout()
plt.savefig('.poirot/outputs/chart.png', dpi=150, bbox_inches='tight')
print('Saved to .poirot/outputs/chart.png')
"
Common Chart Types via matplotlib
bash
# Bar chart
python3 -c "
import matplotlib; matplotlib.use('Agg')
import matplotlib.pyplot as plt
cats = ['A', 'B', 'C', 'D']
vals = [23, 45, 12, 67]
plt.bar(cats, vals, color=['#4CAF50', '#2196F3', '#FF9800', '#F44336'])
plt.title('Category Comparison')
plt.savefig('.poirot/outputs/bar.png', dpi=150)
"

# Scatter plot
python3 -c "
import matplotlib; matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
x = np.random.randn(100)
y = x * 0.8 + np.random.randn(100) * 0.5
plt.scatter(x, y, alpha=0.6, c='steelblue')
plt.title('Correlation Scatter')
plt.savefig('.poirot/outputs/scatter.png', dpi=150)
"

# Pie chart
python3 -c "
import matplotlib; matplotlib.use('Agg')
import matplotlib.pyplot as plt
labels = ['Product A', 'Product B', 'Product C']
sizes = [45, 35, 20]
plt.pie(sizes, labels=labels, autopct='%1.1f%%', startangle=90)
plt.title('Market Share')
plt.savefig('.poirot/outputs/pie.png', dpi=150)
"

Pitfalls

  • matplotlib backend: always use matplotlib.use('Agg') for non-interactive (headless) rendering. Without it, matplotlib may try to open a GUI window.
  • Chinese characters: matplotlib may not render CJK by default. Set font: plt.rcParams['font.sans-serif'] = ['SimHei', 'Arial Unicode MS']
  • DPI: use dpi=150 for crisp images. dpi=300 for print quality.
  • File size: PNG is standard. Use SVG for vector (plt.savefig('chart.svg')).
  • Color palettes: use colorblind-friendly palettes. Avoid red/green only.

© HezaoHezao, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in poirot/backend/agents/skill/builtin_skills/creative/chart-visualization of HezaoHezao/poirot.

Open the folder on GitHubat commit 86bf279

Compare with similar skills

Chart Visualization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Chart Visualization compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chart Visualization this skillHezaoHezao/poirot250—~1kAutomated safety check: PassMIT
MatplotlibzLanqing/codex-claude-academic-skills4.6k17 repos~2.9kAutomated safety check: PassMIT
Scientific Visualizationmims-harvard/OptimusKG14619 repos~6.3kAutomated safety check: PassMIT
SeabornzLanqing/codex-claude-academic-skills4.6k16 repos~4.9kAutomated safety check: PassBSD-3-Clause
Plot From DataTrae1ounG/paper-plot-skills8611 repos~583Automated safety check: PassNone
Scientific Figure MakingChenLiu-1996/figures4papers8.1k—~557Automated safety check: PassCustom licence

Similar skills

  • Matplotlib

    zLanqing/codex-claude-academic-skills

    Low-level plotting library for full customization. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 17 repos~2.9k tokens
    Data & AnalyticsAuto-check passed
  • Scientific Visualization

    mims-harvard/OptimusKG

    Create publication figures with matplotlib/seaborn/plotly. An agent skill from mims-harvard/OptimusKG.

    146 GitHub starsUsed in 19 repos~6.3k tokens
    Data & AnalyticsAuto-check passed
  • Seaborn

    zLanqing/codex-claude-academic-skills

    Statistical visualization with pandas integration. An agent skill from zLanqing/codex-claude-academic-skills.

    4.6k GitHub starsUsed in 16 repos~4.9k tokens
    Data & AnalyticsAuto-check passed
  • Plot From Data

    Trae1ounG/paper-plot-skills

    Generate publication-quality matplotlib figures by selecting a pre-built paper style and substituting user data.

    861 GitHub starsUsed in 1 repo~583 tokens
    Data & AnalyticsAuto-check passed
  • Scientific Figure Making

    ChenLiu-1996/figures4papers

    Covers publication-ready matplotlib figures for academic papers, slides, and reports—bars, trends, scatter, heatmaps, and multi-panel layouts—with this…

    8.1k GitHub stars~557 tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • Plot From Image

    Trae1ounG/paper-plot-skills

    Reproduce any academic paper figure from an uploaded image using accumulated style experience.

    861 GitHub starsUsed in 1 repo~868 tokens
    Data & AnalyticsAuto-check passed

More from HezaoHezao/poirot

All 23 skills in this repo
  • Requesting Code Review

    HezaoHezao/poirot

    Pre-commit review: security scan, quality gates, auto-fix. An agent skill from HezaoHezao/poirot.

    250 GitHub starsUsed in 5 repos~1.6k tokens
    Auto-check passed
  • Research Paper Writing

    HezaoHezao/poirot

    ML paper pipeline: experiment design to submission. An agent skill from HezaoHezao/poirot.

    250 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Paper Review

    HezaoHezao/poirot

    Structured peer-review of academic papers. An agent skill from HezaoHezao/poirot.

    250 GitHub stars~1.8k tokensUpdated 2 mo ago
    Auto-check passed
  • Blogwatcher

    HezaoHezao/poirot

    Monitor blogs and RSS/Atom feeds via blogwatcher-cli. An agent skill from HezaoHezao/poirot.

    250 GitHub stars~854 tokensUpdated 2 mo ago
    Auto-check passed
  • Bootstrap

    HezaoHezao/poirot

    Onboarding conversation to generate a user profile. An agent skill from HezaoHezao/poirot.

    250 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Code Documentation

    HezaoHezao/poirot

    Generate docs: README, API reference, architecture, guides. An agent skill from HezaoHezao/poirot.

    250 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Chart Visualization

What does Chart Visualization do?

Generate charts: select type, extract data, render image. An agent skill from HezaoHezao/poirot. Chart Visualization is an agent skill from HezaoHezao/poirot. Generate charts: select type, extract data, render image.

When should I use Chart Visualization?

Chart Visualization fits situations like: tasks that involve Data visualization.

How do I install Chart Visualization in Claude Code?

Run `npx skills add HezaoHezao/poirot --skill chart-visualization -a claude-code`. Or copy the skill folder (poirot/backend/agents/skill/builtin_skills/creative/chart-visualization in HezaoHezao/poirot) into .claude/skills/chart-visualization in your project. Claude Code loads it when a task matches its description.

How do I install Chart Visualization in Codex?

Run `npx skills add HezaoHezao/poirot --skill chart-visualization -a codex`. Or copy the skill folder (poirot/backend/agents/skill/builtin_skills/creative/chart-visualization in HezaoHezao/poirot) into .agents/skills/chart-visualization in your project. Codex loads it when a task matches its description.

Can I use Chart Visualization in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HezaoHezao/poirot --skill chart-visualization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chart-visualization, .gemini/skills/chart-visualization, .github/skills/chart-visualization and .opencode/skills/chart-visualization in your project.

What does Chart Visualization need to run?

Going by SKILL.md and its folder, Chart Visualization needs the command-line tools its instructions call (python3 and pip). Our summary lists: Python 3; Node.js. Its frontmatter pre-approves these tools: bash, write_file, read_file.

Does Chart Visualization access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Chart Visualization safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Chart Visualization use?

Chart Visualization is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chart Visualization use?

About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chart Visualization?

Skills that share tags, products or a category with Chart Visualization: Matplotlib (zLanqing/codex-claude-academic-skills, 4.6k stars), Scientific Visualization (mims-harvard/OptimusKG, 146 stars), Seaborn (zLanqing/codex-claude-academic-skills, 4.6k stars) and Plot From Data (Trae1ounG/paper-plot-skills, 861 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chart Visualization?

HezaoHezao (a GitHub user) maintains it in HezaoHezao/poirot, which has 250 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on July 28, 2026.

Source: HezaoHezao/poirot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.