time-series-analyzer
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Analyzes time series data for trends, seasonality, anomalies, and forecasting. Use when working with timestamped data like metrics, sales, or sensor readings.
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- csv-processorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
Files
Overview
Analyzes time series data for trends, seasonality, anomalies, and produces forecasts. Covers resampling and aggregation, rolling statistics, STL decomposition, anomaly detection (statistical and ML), basic ARIMA, and Facebook Prophet integration with visualization patterns suitable for dashboards or reports.
When to Use This Skill
- Analyzing metrics, sales, sensor data, web traffic, or financial time series.
- Detecting anomalies or seasonality.
- Building short-to-medium term forecasts.
- The user provides timestamped data and asks for "trend", "seasonality", "anomaly", or "forecast".
Prerequisites
- Time series data with a datetime column (pandas DataFrame with DatetimeIndex recommended).
- Python with
pandas,statsmodels,prophet(orneuralprophet),matplotlib/plotly. - For production forecasting: historical data of sufficient length (at least 2-3 full seasons).
Steps
- Prepare the series:
- Set DatetimeIndex, sort.
- Handle missing timestamps (resample + asfreq or interpolate).
- Aggregate to the desired frequency (daily, hourly, etc.).
- Exploratory analysis:
- Line plot of raw series.
- Rolling mean / std (7d, 30d).
- Seasonal decomposition (statsmodels
seasonal_decomposeor STL).
- Anomaly detection:
- Statistical: IQR or Z-score on residuals after decomposition.
- Simple: values outside rolling mean ± 3*std.
- More robust: Isolation Forest or Prophet's built-in anomaly detection.
- Forecasting:
- Prophet (easy, handles seasonality/holidays well):
from prophet import Prophet. - ARIMA / SARIMA via statsmodels (when you need more control or have domain knowledge).
- Evaluate with train/test split + metrics (MAE, RMSE, MAPE).
- Prophet (easy, handles seasonality/holidays well):
- Visualization:
- Original + forecast with confidence interval.
- Components plot (trend, weekly, yearly).
- Anomaly overlay (red points on the line).
- Output:
- Complete analysis notebook or script.
- Prophet model fit + forecast DataFrame.
- Anomaly table with timestamps and scores.
- Ready-to-embed Plotly or matplotlib figures.
- Guidance on retraining cadence and monitoring forecast accuracy.
Examples
A full end-to-end analysis of daily sales data: decomposition, anomaly detection (holiday spikes and dips flagged), Prophet 30-day forecast with components, and a dashboard-style Plotly figure is included.
Edge Cases & Error Handling
- Irregular or sparse data: Resample with appropriate method; consider interpolation limits.
- Strong external drivers (promotions, outages): Add regressors to Prophet or use a more advanced model.
- Non-stationary series: Differencing or explicit trend modeling.
- Very long horizons: Warn that accuracy degrades; prefer shorter horizons or ensemble methods.
Verification
- The decomposition looks reasonable (trend, seasonal, residual separated).
- Anomalies flagged match obvious outliers in a visual plot.
- Forecast on a hold-out set has reasonable error metrics (document them).
- Components plot shows expected weekly/yearly patterns.
- Re-running with new data produces updated forecast without errors.
- Success: The analysis reveals real trends/seasonality/anomalies and the forecast is usable for planning.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

