003-skills/.claude/skills/nixtla-demo-generator/SKILL.md
Generate production-ready Jupyter notebooks showcasing Nixtla forecasting workflows for statsforecast, mlforecast, and TimeGPT. Use when creating demos, building examples, or showcasing forecasting capabilities. Trigger with 'generate demo notebook', 'create Jupyter demo', or 'build forecasting example'.
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-demo-generatorInstall 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.
Generate interactive, production-ready Jupyter notebooks that showcase Nixtla forecasting workflows with complete data pipelines, model training, evaluation, and visualization.
This skill creates high-quality demonstration notebooks:
Required:
pip install jupyter)statsforecast - Statistical models (ARIMA, ETS, etc.)mlforecast - Machine learning models (LightGBM, XGBoost)nixtla - TimeGPT API accessOptional:
NIXTLA_API_KEY: For TimeGPT demosInstallation:
pip install jupyter statsforecast mlforecast nixtla pandas matplotlib
Select which Nixtla library to demonstrate:
# Options: statsforecast, mlforecast, timegpt
export DEMO_LIBRARY=statsforecast
Run the generator script:
python {baseDir}/scripts/generate_demo_notebook.py \
--library statsforecast \
--dataset m4-daily \
--output demo_statsforecast_m4.ipynb
Edit the generated notebook to:
Run the generated notebook:
jupyter notebook demo_statsforecast_m4.ipynb
Or execute non-interactively:
jupyter nbconvert --to notebook --execute demo_statsforecast_m4.ipynb
Export to various formats:
# HTML for sharing
jupyter nbconvert --to html demo_statsforecast_m4.ipynb
# PDF for presentations
jupyter nbconvert --to pdf demo_statsforecast_m4.ipynb
# Python script for automation
jupyter nbconvert --to python demo_statsforecast_m4.ipynb
Error: ModuleNotFoundError: No module named 'statsforecast'
Solution: Install required library: pip install statsforecast mlforecast nixtla
Error: NIXTLA_API_KEY not set (TimeGPT demos)
Solution: Export API key: export NIXTLA_API_KEY=your_key or skip TimeGPT demo
Error: Dataset file not found
Solution: Use --generate-sample-data flag to create synthetic dataset
Error: nbformat.validator.ValidationError
Solution: Check Jupyter version compatibility: pip install --upgrade jupyter nbformat
Error: Kernel died while executing notebook
Solution: Reduce dataset size or increase memory allocation
python {baseDir}/scripts/generate_demo_notebook.py \
--library statsforecast \
--dataset m4-daily \
--models AutoETS,AutoARIMA,SeasonalNaive \
--horizon 14 \
--output demo_statsforecast_m4_daily.ipynb
Generated notebook includes:
# Import libraries
from statsforecast import StatsForecast
from statsforecast.models import AutoETS, AutoARIMA, SeasonalNaive
import pandas as pd
import matplotlib.pyplot as plt
# Load M4 Daily data
df = pd.read_csv('m4_daily_sample.csv')
print(f"Loaded {len(df)} rows, {df['unique_id'].nunique()} series")
# Configure models
sf = StatsForecast(
models=[AutoETS(), AutoARIMA(), SeasonalNaive(season_length=7)],
freq='D',
n_jobs=-1
)
# Generate forecasts
forecasts = sf.forecast(df=df, h=14)
# Evaluate
from statsforecast.utils import calculate_metrics
metrics = calculate_metrics(df, forecasts, metrics=['smape', 'mase'])
print(metrics)
# Visualize
sf.plot(df, forecasts)
plt.show()
python {baseDir}/scripts/generate_demo_notebook.py \
--library mlforecast \
--dataset retail-sales \
--models LightGBM,XGBoost \
--features lag,rolling_mean,date_features \
--output demo_mlforecast_retail.ipynb
Generated notebook features:
python {baseDir}/scripts/generate_demo_notebook.py \
--library timegpt \
--dataset custom \
--api-key $NIXTLA_API_KEY \
--horizon 30 \
--confidence-levels 80,90,95 \
--output demo_timegpt_api.ipynb
Generated notebook demonstrates:
for library in statsforecast mlforecast timegpt; do
python {baseDir}/scripts/generate_demo_notebook.py \
--library $library \
--dataset m4-hourly \
--output "demo_${library}_m4_hourly.ipynb"
done
python {baseDir}/scripts/generate_demo_notebook.py \
--library statsforecast \
--dataset m4-weekly \
--template {baseDir}/assets/templates/custom_branded_template.ipynb \
--logo company_logo.png \
--output demo_branded.ipynb
Related Skills:
nixtla-timegpt-lab: Interactive TimeGPT experimentationnixtla-experiment-architect: Multi-model experiment designnixtla-schema-mapper: Data transformation for Nixtla formatScripts:
{baseDir}/scripts/generate_demo_notebook.py: Main notebook generator{baseDir}/assets/templates/statsforecast_template.ipynb: StatsForecast base template{baseDir}/assets/templates/mlforecast_template.ipynb: MLForecast base template{baseDir}/assets/templates/timegpt_template.ipynb: TimeGPT base templatetesting
This skill enables Claude to manage isolated test environments using Docker Compose, Testcontainers, and environment variables. It is used to create consistent, reproducible testing environments for software projects. Claude should use this skill when the user needs to set up a test environment with specific configurations, manage Docker Compose files for test infrastructure, set up programmatic container management with Testcontainers, manage environment variables for tests, or ensure cleanup after tests. Trigger terms include "test environment", "docker compose", "testcontainers", "environment variables", "isolated environment", "env-setup", and "test setup".
tools
This skill uses the test-doubles-generator plugin to automatically create mocks, stubs, spies, and fakes for unit testing. It analyzes dependencies in the code and generates appropriate test doubles based on the chosen testing framework, such as Jest, Sinon, or others. Use this skill when you need to generate test doubles, mocks, stubs, spies, or fakes to isolate units of code during testing. Trigger this skill by requesting test double generation or using the `/gen-doubles` or `/gd` command.
tools
This skill enables Claude to generate realistic test data for software development. It uses the test-data-generator plugin to create users, products, orders, and custom schemas for comprehensive testing. Use this skill when you need to populate databases, simulate user behavior, or create fixtures for automated tests. Trigger phrases include "generate test data", "create fake users", "populate database", "generate product data", "create test orders", or "generate data based on schema". This skill is especially useful for populating testing environments or creating sample data for demonstrations.
development
This skill analyzes code coverage metrics to identify untested code and generate comprehensive coverage reports. It is triggered when the user requests analysis of code coverage, identification of coverage gaps, or generation of coverage reports. The skill is best used to improve code quality by ensuring adequate test coverage and identifying areas for improvement. Use trigger terms like "analyze coverage", "code coverage report", "untested code", or the shortcut "cov".