# choosing-trend-or-slope-view

choosing-trend-or-slope-view — a skill that settles what “change over time” means before a chart gets built: the full trend interval by interval, or only the gap between the two ends.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 204 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/choosing-trend-or-slope-view/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/choosing-trend-or-slope-view

## What it does

Ask an agent how much signups moved between January and March and it can guess wrong. This skill makes it put one short either/or first: every interval across the range, or just the first and last point. Someone who already said “slope chart” or “when did it spike” skips that question and gets the chart straight away.

Both readings come from the same `TrendsQuery` over the same dates. The line keeps `trendsFilter.display` at `ActionsLineGraph` and shows dips and spikes. For endpoints the agent calls `posthog:query-trends` and flips the result card to Slope: one line per series, first interval to last, delta printed in the legend.

The slope reads the first and last interval only, so the date range and the grouping decide the answer. Group by month and you compare the first month with the last; group by day and you get first day against last. An unfinished final period stays as it is, joined by a dashed line. One series against its previous period is a job for a line with `compareFilter`; the slope earns its place when many series move at once.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/choosing-trend-or-slope-view/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/choosing-trend-or-slope-view/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/choosing-trend-or-slope-view
```

2. **Manually: put the files in place**
- File: `.github/skills/choosing-trend-or-slope-view/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/choosing-trend-or-slope-view
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/choosing-trend-or-slope-view/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -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/choosing-trend-or-slope-view/SKILL.md

## When to use it
- Pick a line or a slope before the chart is drawn
- Compare start and end across many series without the noise in between
- Flip the `posthog:query-trends` result card to the Slope view
- Persist a slope on a dashboard with `ChartDisplayType.SlopeGraph`
- Overlay last period on this one using `compareFilter`

## Example prompts
- How much did activations change from January to March? Just the start and the end.
- Compare this week to last across all channels and show which ones climbed.
- Chart `$pageview` for the quarter and tell me when it spiked.

## Similar
- [formatting-insight-axes](https://affpapa.org/en/nevibecode/skills/formatting-insight-axes.md) — skill · 444 installs
- [trend-researcher](https://affpapa.org/en/nevibecode/plugins/trend-researcher.md) — plugin · ★ 1013 repo stars
- [trend-discovery](https://affpapa.org/en/nevibecode/skills/trend-discovery.md) — skill · 2100 installs
- [trend-spotter](https://affpapa.org/en/nevibecode/skills/trend-spotter.md) — skill · 1200 installs
- [design-trend-analyzer](https://affpapa.org/en/nevibecode/skills/design-trend-analyzer.md) — skill · 181 installs
- [PeepTrend: YouTube Gaming Trend Finder](https://affpapa.org/en/nevibecode/mcp/peeptrend-youtube-gaming-trend-finder.md) — MCP server

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
