Skip to content
Skills Library
Data & analytics · Analysis

trend-analysis

/trend-analysis

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.

Licence
MIT
Last repository change
15.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 15.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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.

Triggers from the description

what is this data saying
Original author description

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.

How it works

  1. Inputs
  2. Recommended CLI tooling
  3. Procedure
  4. Output
Original SKILL.md headings · 63 lines, 440 words
SKILL.md preview
---
name: trend-analysis
description: 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.
---

# 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.

Versions

RepositoryScoreLicence
This page · danielrosehill/claude-data-analyst-plugin90MIT
benchflow-ai/skillsbench100Apache-2.0
radarist/structured-analytic-skills100MIT
zircote-plugins/sigint100MIT
SkillMedev/skills90MIT

Database snapshot: 13.11.2026 · package version e0732445bad1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100cohort-analysis
    Perform cohort analysis on user engagement data — retention curves, feature adoption trends, and segment-level insights. Use when analyzing user retention by cohort, studying feature adoption over time, investigating churn patterns, or identifying engagement trends.
  • 100anysite-trend-analysis
    Discover and track emerging trends across Twitter/X, Reddit, YouTube, LinkedIn, and Instagram using anysite MCP server. Identify viral content, monitor topic momentum, detect trending hashtags, analyze search patterns, and track industry shifts. Supports multi-platform trend…
  • 90intel-legal-ai-cagr
    Use when discussing legal AI market growth projections, CAGR figures, funding trends, major platform players, sub-segment growth rates (contract review, drafting, research, compliance), or the competitive landscape for legal AI. Covers the 22.3% CAGR to 2030 consensus estimate,…
  • 95cohort-analysis
    Perform cohort analysis on user engagement data — retention curves, feature adoption trends, and segment-level insights. Use when analyzing user retention by cohort, studying feature adoption over time, investigating churn patterns, or identifying engagement trends.
  • 100excel-weighted-growth-calculator
    When the user requests to calculate year-over-year growth rates for business segments using a weighted methodology from Excel files, particularly when there's a mapping sheet defining segment-to-source weights and a raw data sheet with time-series values. This skill handles…
  • 100trend-modeling
    This skill should be used when the user asks to "model trends with limited data", "three-valued logic analysis", "scenario generation", "transitional graphs", "qualitative trend analysis", "uncertain data analysis", "minimal-information modeling", or needs guidance on…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.