Choosing Trend Or Slope View
PostHogOfficialPublished by PostHog
- Skill
- Guidelines
- Data and AI
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a framework for interpreting ambiguous user requests regarding change over time. It distinguishes between visualizing the full path of data (a line chart showing every interval) and comparing only the net change between two points (a slope chart). By identifying the user's intent—whether they want to see the journey or just the final result—the agent can select the appropriate visualization method to ensure clarity in data reporting.
What it does
- Identifies ambiguity in user requests about change over time.
- Distinguishes between trend line visualization and slope chart visualization.
- Provides a standard clarification prompt for users when intent is unclear.
- Explains how to configure queries for both line and slope views.
- Highlights the importance of the grouping interval in determining slope endpoints.
When to use it
- When a user asks how a metric changed, grew, or dropped between two points.
- When a user requests a 'slope chart' or 'slopegraph'.
- When a user asks for 'before vs after' or 'start vs end' comparisons.
- When comparing the relative movement of multiple series simultaneously.
Advantages
- Prevents misinterpretation of data by clarifying the user's analytical goal.
- Ensures the correct visualization is chosen for the specific question asked.
- Reduces noise by offering a slope view for simple net-change comparisons.
- Provides context for when to use line charts versus slope charts.
Usage examples
- “How did our signups change from January to March?”
- The agent asks if the user wants to see the monthly trend (line chart) or just the net change from January to March (slope chart) before rendering.
- “Show me a slopegraph of user activity by region.”
- The agent identifies the request for a slope view and renders the data as a series of lines connecting the first and last intervals.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/posthog/choosing-trend-or-slope-view/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip choosing-trend-or-slope-view.zip -d .agents/skills
Documentation by PostHog
Choosing a trend line vs a slope view
"How did X change between A and B?" is ambiguous. Two charts answer two different questions, so clarify before you build unless the user already named one:
Change over time (line) — the value at every interval across the range. Shows the path: dips, spikes, when it moved. This is the default trend.
Start vs end (slope) — only the first and last point, one line per series connecting them. Shows the net change and, across many series, which rose, which fell, and any rank flips — without the noise of the path between.
When the request could be either, ask a short either/or, e.g.:
Do you want to see how it moved across the whole period (a line chart), or just the change from the start to the end (a slope chart)?
If the user clearly wants one — "just tell me how much it grew start to end" → slope; "show me the trend / when did it spike" → line — skip the question and build it.
How to render each
Both come from the same TrendsQuery over the same date range — the slope is
that series collapsed to its first and last point, not a different query.
Change over time → line
Default trends behavior. Create or run a TrendsQuery and leave
trendsFilter.display as ActionsLineGraph (the default, "change over time"):
{
"kind": "TrendsQuery",
"series": [{ "kind": "EventsNode", "event": "$pageview", "math": "total" }],
"dateRange": { "date_from": "2025-01-01", "date_to": "2025-03-31" },
"trendsFilter": { "display": "ActionsLineGraph" }
}Start vs end → slope
Run the trend with posthog:query-trends. The result card Max renders has a
Line / Bar / Slope view toggle — switch it to Slope to show each series as
a single line from its first to its last point, with the per-series change in the
legend. Tell the user they can flip to the Slope view on the result.
The slope view is best for a clean before→after comparison, especially with several series/categories whose relative movement matters. Pick a date range whose two ends are the points you want compared (the slope uses the first and last interval).
Important limits
Two surfaces, one computation. Both the inline slope (Max's
query-trendsresult card) and the saved-insight slope (ChartDisplayType.SlopeGraph) show the same thing: the first interval's value vs the last interval's value, at the chosen group-by interval. The grouping defines the slope - group by month to compare the first vs last month, by day for the first vs last day. Use the inline view for a quick before-and-after on a result you're already looking at; use the saved display to persist it on a dashboard. A still-accumulating final period is shown as-is with a dashed connector, the same affordance the line chart uses for an incomplete tail.For period-over-period on a single series (this month vs last), a line with
compareFilter: { "compare": true }overlays the two periods; a slope is the better fit when comparing the endpoints of many series at once.
Files
- ATTRIBUTION.mdAdded by AutoGineer875 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md3.7 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "choosing-trend-or-slope-view", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: a5d30e775d092e16e198f7b582f1f66dac2cee45
Published by: PostHog (https://github.com/PostHog)
Publisher: PostHog (https://github.com/PostHog)
Licence: MIT License (https://github.com/PostHog/skills/blob/a5d30e775d092e16e198f7b582f1f66dac2cee45/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- PostHog
- Publisher
- PostHog (Official)
- Source
- PostHog/skills · skills/omnibus/choosing-trend-or-slope-view · commit a5d30e7
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by PostHog or PostHog.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download choosing-trend-or-slope-view.zip