danielrosehill/claude-data-analyst-plugin/trend-analysis

Claude Code and agent skill by danielrosehill/claude-data-analyst-plugin

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Identify and report the major trends a dataset depicts — directional changes over time, growth rates, seasonal patterns, segment shifts, and emerging categories. Use when the user wants the headline "what is this data saying" narrative rather than a specific test.

Install

npx vskill@latest install danielrosehill/claude-data-analyst-plugin/trend-analysis

SKILL.md

Trend Analysis

Identify the major trends in a dataset and summarise them in a narrative report.

Inputs

  • Path to a dataset file or folder.
  • Optional: time column name (auto-detected if a single date/datetime column exists).
  • Optional: metric(s) of interest — numeric columns to focus trend analysis on. Default: all numerics.
  • Optional: segment column — to produce per-segment trend breakdowns.

Recommended CLI tooling

  • duckdb — windowed SQL aggregations (time_bucket, moving averages, YoY).
  • uv run --with pandas --with statsmodels python -c '...' — STL decomposition, Mann-Kendall trend test, seasonal detection.
  • mlr (miller) — quick pivots and tallies on CSV without loading pandas.

Procedure

Step 1 — Temporal trends (if time column exists)

For each metric:

  • Overall direction: fit linear regression on the metric vs. time. Report slope, R², and sign (up/down/flat). Supplement with Mann-Kendall test for monotonic trend (robust to outliers and non-linearity).
  • Growth rate: first-to-last period % change, and CAGR if span > 1 year.
  • Level shifts / change points: detect structural breaks (PELT or simple rolling mean comparison).
  • Seasonality: if ≥2 seasonal cycles present, run STL decomposition and report dominant period (weekly, monthly, yearly).
  • Recency: compare last period vs. trailing average — is the trend accelerating, decelerating, or reversing?
Step 2 — Compositional trends (categorical)

For each categorical column:

  • Which categories are growing in share over time?
  • Which are shrinking?
  • Any new entrants appearing only in recent periods?
  • Any categories that disappeared?
Step 3 — Segment trends

If a segment column is provided, repeat Step 1 within each segment and surface:

  • Segments with the strongest growth / decline
  • Segments diverging from the overall trend (Simpson's-paradox watchlist)
Step 4 — Non-temporal trends

If no time column exists, "trend" becomes distributional:

  • Skew, concentration (top-N share, Gini), long-tail structure
  • Dominant vs. rare categories
  • Relationships between paired columns (lean on correlation-analysis for the heavy lifting; summarise headlines only)

Output

Write <dataset>-trends.md structured as a narrative, not a data dump:

  1. Headline — one sentence capturing the single most important trend.
  2. Key trends — 3–7 bullets, each with: what's happening, direction, magnitude, and supporting number.
  3. Segment highlights (if applicable) — who's driving and who's lagging.
  4. Anomalies in the trend — single-period spikes, breaks, reversals worth investigating.
  5. Caveats — short series, data gaps, segment-size issues that limit confidence.
  6. Chart recommendations — name 2–4 specific charts that would best communicate these trends (don't generate images; name them).

The report should read like a briefing a busy stakeholder would understand in 60 seconds.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
12
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/danielrosehill/claude-data-analyst-plugin/trend-analysis/badge)](https://verified-skill.com/skills/danielrosehill/claude-data-analyst-plugin/trend-analysis)

Something wrong with this skill or its page? Tell us.