# creating-box-plot-insights

The creating-box-plot-insights Claude Code skill builds box plot insights in PostHog from product analytics or SQL. It runs on requests to chart a numeric distribution, compare medians, or save an insight.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 148 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/creating-box-plot-insights/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/creating-box-plot-insights

## What it does

The skill chooses between a standard Trends query and a SQL visualization in PostHog. For Trends, it sets the event property, time interval, and BoxPlot display, runs the query, saves the result, then checks the saved insight.

A SQL chart needs precomputed minimum, quartiles, median, mean, and maximum values. The skill checks the statistics, grouping, and series and cell limits before saving and querying the visualization again. Use the `querying-posthog-data` skill before writing or changing HogQL. PostHog can omit a box when its row contains an invalid summary.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill creating-box-plot-insights -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill creating-box-plot-insights -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill creating-box-plot-insights -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/creating-box-plot-insights
```

2. **Manually: put the files in place**
- File: `.github/skills/creating-box-plot-insights/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill creating-box-plot-insights -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/creating-box-plot-insights
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill creating-box-plot-insights -a opencode
```

### 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/PostHog/ai-plugin/tree/HEAD/skills/creating-box-plot-insights/SKILL.md

## When to use it
- chart an event property's numeric distribution
- compare distributions across dates or groups
- turn SQL query results into a box plot
- validate and save a PostHog visualization

## Example prompts
- Create a PostHog box plot for an event's numeric property.
- Compare group medians with SQL and save the chart in PostHog.
- Validate and save a box plot for the values in this date range.

## Similar
- [creating-experiments](https://affpapa.org/en/nevibecode/skills/creating-experiments.md) — skill · 431 installs
- [creating-replay-vision-scanners](https://affpapa.org/en/nevibecode/skills/creating-replay-vision-scanners.md) — skill · 326 installs
- [planetscale-query-insights-and-tags](https://affpapa.org/en/nevibecode/skills/planetscale-query-insights-and-tags.md) — skill · 2000 installs
- [creator-insights](https://affpapa.org/en/nevibecode/skills/creator-insights.md) — skill · 151 installs
- [analytics-insights](https://affpapa.org/en/nevibecode/skills/analytics-insights.md) — skill · ★ 1596 repo stars
- [insights](https://affpapa.org/en/nevibecode/commands/son-nguyen-insights.md) — command · ★ 1198 repo stars

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 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
