# answers-charts

answers-charts is a Claude Code skill that builds Matplotlib charts and embeds them directly into answers. It outputs verified PNG and SVG files strictly from supplied numbers.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 171 repo stars
- Author: drawthingsai
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/drawthingsai/local-code-community/tree/HEAD/Apps/LocalCode/Resources/Skills/answers-charts/SKILL.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/answers-charts

## What it does

The skill generates a standalone runner at `outputs/chart_task.py` and places exported visuals into `outputs/charts/`. It relies on an existing Python setup containing Matplotlib 3.11.2 alongside Pillow 13.0.0. Network access and ad-hoc package installations are disallowed. The workflow configures the non-interactive `Agg` backend and formats figures with constrained layouts.

Every visualization exports to both a scalable SVG and a high-resolution PNG rendered at 180 DPI with minimum dimensions of 800 by 450 pixels. Pillow opens the generated image to confirm integrity before the agent marks the job done. The final graphic is embedded into Markdown output via a project-relative path.

Execution happens entirely inside the workspace root without changing directories or tampering with `PYTHONPATH`. Whenever a mathematical plotting request omits domain boundaries, the skill pauses to request missing parameters instead of inventing arbitrary samples.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill answers-charts -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/answers-charts/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/answers-charts/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill answers-charts -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/answers-charts/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill answers-charts -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/answers-charts/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install drawthingsai/local-code-community Apps/LocalCode/Resources/Skills/answers-charts
```

2. **Manually: put the files in place**
- File: `.github/skills/answers-charts/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill answers-charts -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/drawthingsai/local-code-community --path Apps/LocalCode/Resources/Skills/answers-charts
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/answers-charts/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/drawthingsai/local-code-community/tree/HEAD/Apps/LocalCode/Resources/Skills/answers-charts/SKILL.md

## When to use it
- generate clear line and bar plots from tabular records
- render scatter plots for paired numeric observations without network calls
- validate rendered chart dimensions and file health via Pillow
- embed inline PNG graphics alongside downloadable SVG assets

## Example prompts
- Plot monthly churn rates from metrics.json as a line chart under outputs/charts
- Create a horizontal bar chart ranking API endpoints by latency
- Draw a scatter plot comparing memory usage against request throughput

## Similar
- [evident-charts](https://affpapa.org/en/nevibecode/skills/evident-charts.md) — skill · ★ 63 repo stars
- [charts](https://affpapa.org/en/nevibecode/skills/charts.md) — skill · ★ 93 repo stars
- [swift-charts](https://affpapa.org/en/nevibecode/skills/swift-charts.md) — skill · 4300 installs
- [figure-generation](https://affpapa.org/en/nevibecode/skills/figure-generation.md) — skill · 2300 installs
- [mathmodel-figure-templates](https://affpapa.org/en/nevibecode/skills/mathmodel-figure-templates.md) — skill · 1700 installs
- [seaborn](https://affpapa.org/en/nevibecode/skills/tondevrel-seaborn.md) — skill · 167 installs

From the same set: [drawthingsai/local-code-community](https://affpapa.org/en/nevibecode/by/drawthingsai/local-code-community.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
