L4/custom_skills/analyzing-time-series/SKILL.md
Comprehensive diagnostic analysis of time series data. Use when users provide CSV time series data and want to understand its characteristics before forecasting - stationarity, seasonality, trend, forecastability, and transform recommendations.
npx skillsauth add https-deeplearning-ai/sc-agent-skills-files analyzing-time-seriesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive diagnostic toolkit to analyze time series data characteristics before forecasting.
The input CSV file should have two columns:
date, timestamp, time)value, sales, temperature)Step 1: Run diagnostics
python scripts/diagnose.py data.csv --output-dir results/
This runs all statistical tests and analyses. Outputs diagnostics.json with all metrics and summary.txt with human-readable findings. Column names are auto-detected, or can be specified with --date-col and --value-col options.
Step 2: Generate plots (optional)
python scripts/visualize.py data.csv --output-dir results/
Creates diagnostic plots in results/plots/ for visual inspection. Run after diagnose.py to ensure ACF/PACF plots are synchronized with stationarity results. Column names are auto-detected, or can be specified with --date-col and --value-col options.
Step 3: Report to user
Summarize findings from summary.txt and present relevant plots. See references/interpretation.md for guidance on:
Both scripts accept:
--date-col NAME - Date column (auto-detected if omitted)--value-col NAME - Value column (auto-detected if omitted)--output-dir PATH - Output directory (default: diagnostics/)--seasonal-period N - Seasonal period (auto-detected if omitted)results/
├── diagnostics.json # All test results and statistics
├── summary.txt # Human-readable findings
├── diagnostics_state.json # Internal state for plot synchronization
└── plots/
├── timeseries.png
├── histogram.png
├── rolling_stats.png
├── box_by_dayofweek.png # By day of week (if applicable)
├── box_by_month.png # By month (if applicable)
├── box_by_quarter.png # By quarter (if applicable)
├── acf_pacf.png
├── decomposition.png
└── lag_scatter.png
See references/interpretation.md for:
pandas, numpy, matplotlib, statsmodels, scipy
tools
Create learning paths for programming tools, and define what information should be researched to create learning guides. Use when user asks to learn, understand, or get started with any programming tool, library, or framework.
tools
Provides checklist for reviewing Typer CLI command implementations. Covers structure, Annotated syntax, error handling, exit codes, display module usage, destructive action patterns, and help text conventions. Use when user asks to review/check/verify a CLI command, wants feedback on implementation, or asks if a command follows best practices.
tools
Generate pytest tests for Typer CLI commands. Includes fixtures (temp_storage, sample_data), CliRunner patterns, confirmation handling (y/n/--force), and edge case coverage. Use when user asks to "write tests for", "test my CLI", "add test coverage", or any CLI + test request.
tools
Provides Typer templates, handles registration, and ensures consistency. ALWAYS use this skill when adding or modifying CLI commands. Use when user requests to add/create/implement/build/write a new command (e.g., "add edit command", "create search feature") OR update/modify/change/edit an existing command.