Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill choosing-trend-or-slope-view -a claude-code
Open on GitHub

What 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-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 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 $pageview for 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-code

2Manually: put the files in place

~/.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/

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.

Similar skills

All skills for Data and databases →

From the same set82

The whole set →
authoring-error-tracking-alerts authoring-error-tracking-alerts guides your agent in configuring PostHog error tracking notifications, selecting lifecycle triggers, and connecting them to Slack or webhooks. CX Codex +1 209installs building-a-dashboard building-a-dashboard — a skill for Claude Code, Codex, and Cursor that builds and updates PostHog dashboards via MCP tools. Coordinates insight reuse and grid layout. CX Codex +1 208installs filtering-bot-traffic filtering-bot-traffic splits human traffic from bots and AI crawlers in PostHog. Use it to clean a metric or to see how much of the traffic runs on autopilot. CX Codex +1 208installs investigating-metric-anomalies investigating-metric-anomalies turns a PostHog Metrics symptom (rising lag, error spike, falling throughput) into a probable cause backed by logs and traces. CX Codex +1 206installs auditing-warehouse-source-health auditing-warehouse-source-health audits PostHog data warehouse sources and syncs to pinpoint broken connectors, failed schemas, and degraded webhooks. CX Codex +1 204installs signals-scout-product-analytics signals-scout-product-analytics — a skill for Claude Code and Codex monitoring core product analytics flows in PostHog. Detects derived-rate regressions across funnels and retention while entrant volume holds steady. CX Codex +1 204installs auditing-warehouse-view-health auditing-warehouse-view-health runs a project-wide check on PostHog materialized views: lists the ones that failed to refresh and points at materialized views nobody queries. CX Codex +1 204installs building-workflows building-workflows is a Claude Code skill for building, patching, and testing PostHog automation graphs over MCP before publishing them in the visual editor. CX Codex +1 204installs

Project sponsors

Companies that keep this analytics open