choosing-trend-or-slope-view — Claude Code skill: line vs slope
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.
no license 204 installs ★ 101 updated 2026-10-24
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a claude-codeWhat choosing-trend-or-slope-view 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.
What it helps with
- 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-trendsresult card to the Slope view - Persist a slope on a dashboard with
ChartDisplayType.SlopeGraph - Overlay last period on this one using
compareFilter
Example prompts for the agent
- 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
$pageviewfor the quarter and tell me when it spiked.
How to install choosing-trend-or-slope-view
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a claude-code2Manually: put the files in place
~/.claude/skills/choosing-trend-or-slope-view/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/choosing-trend-or-slope-view/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a codex2Manually: put the files in place
.agents/skills/choosing-trend-or-slope-view/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a cursor2Manually: put the files in place
.cursor/skills/choosing-trend-or-slope-view/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/choosing-trend-or-slope-view2Manually: put the files in place
.github/skills/choosing-trend-or-slope-view/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/choosing-trend-or-slope-viewManually: put the files in place
.devin/skills/choosing-trend-or-slope-view/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about choosing-trend-or-slope-view
How do I install choosing-trend-or-slope-view in Claude Code?
Run npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a claude-code; the skill file lands at ~/.claude/skills/choosing-trend-or-slope-view/SKILL.md.
What does choosing-trend-or-slope-view do?
It makes the agent ask whether you want the whole trend or only the two endpoints, then renders the matching PostHog chart.
When is a slope better than a line?
A line keeps the path with every interval. A slope collapses the series to its first and last point, which reads cleanly when several series are compared at once.