000-docs/000a-planned-skills/prediction-markets/nixtla-model-selector/SKILL.md
Automatically selects the best forecasting model between StatsForecast and TimeGPT based on time series data characteristics. Use when unsure which model performs best. Trigger with "auto-select model", "choose best model", "model selection".
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-model-selectorInstall 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.
Automatically selects and executes the optimal forecasting model for time series data.
This skill analyzes time series data characteristics to determine whether StatsForecast or TimeGPT will yield more accurate forecasts. It evaluates data length, frequency, seasonality, missing values, and series count to make an intelligent selection. The skill then executes the chosen model and returns forecasts with selection rationale. This eliminates manual model selection and experimentation cycles.
Decision Logic:
The skill outputs forecast predictions and a model selection report explaining the decision.
Tools: Read, Write, Bash, Glob, Grep
Environment: NIXTLA_TIMEGPT_API_KEY (required if TimeGPT is selected)
Packages:
pip install statsforecast nixtla pandas matplotlib statsmodels
Input Format: CSV file with columns unique_id, ds (datetime), y (target values)
Claude reads the input CSV file and validates the required schema. The data must contain unique_id (series identifier), ds (timestamp), and y (observations). Claude converts timestamps to datetime format and infers the frequency (daily, hourly, etc.).
Execute using: {baseDir}/scripts/model_selector.py --input data.csv --visualize
The script performs basic exploratory analysis including data shape, date range, unique series count, and optional visualization plots.
Claude analyzes the time series to extract decision criteria:
The analysis uses statistical decomposition to identify seasonal components and compares seasonal variance against total variance using a heuristic threshold.
Based on the analysis, Claude applies decision rules:
The script logs the decision rationale including specific metrics that triggered the selection.
Execute using the same command: {baseDir}/scripts/model_selector.py --input data.csv
Claude runs the selected model with appropriate configuration:
StatsForecast execution:
TimeGPT execution:
Default horizon: 14 periods (customizable via --horizon flag)
Claude saves two output files:
unique_id, ds, model, yhatThe forecast CSV uses long format for consistency across model types. StatsForecast produces multiple model columns (AutoETS, AutoARIMA) while TimeGPT produces a single forecast.
Execute complete workflow:
{baseDir}/scripts/model_selector.py --input data.csv --output forecast.csv --horizon 30
forecast.csv: Time series predictions generated by the selected model
unique_id, ds, model, yhatmodel_selection.txt: Model selection report
time_series_plot.png (optional): Visualization of input data when --visualize flag is used
Input file not found
Invalid data format
NIXTLA_TIMEGPT_API_KEY not set
export NIXTLA_TIMEGPT_API_KEY="your_key"Could not infer frequency
ds column has consistent datetime intervalsSeasonality check failed
Input (7 observations):
unique_id,ds,y
product_1,2023-01-01,10
product_1,2023-01-02,12
product_1,2023-01-03,15
product_1,2023-01-04,13
product_1,2023-01-05,16
product_1,2023-01-06,18
product_1,2023-01-07,20
Command: {baseDir}/scripts/model_selector.py --input short_data.csv
Output:
Input (365+ observations):
unique_id,ds,y
location_1,2020-01-01,100
location_1,2020-01-02,102
location_1,2020-01-03,105
... (365+ rows)
Command: {baseDir}/scripts/model_selector.py --input long_data.csv --horizon 30 --visualize
Output:
Script: {baseDir}/scripts/model_selector.py
StatsForecast Documentation: https://nixtla.github.io/statsforecast/
TimeGPT API Reference: https://docs.nixtla.io/
CSV Schema Requirements:
unique_id: Series identifier (string or integer)ds: Timestamp (datetime parseable string)y: Observation values (numeric)tools
This skill assists with managing database sharding strategies. It is activated when the user needs to implement horizontal database sharding to scale beyond single-server limitations. The skill supports designing sharding strategies, distributing data across multiple database instances, and implementing consistent hashing, automatic rebalancing, and cross-shard query coordination. Use this skill when the user mentions "database sharding", "sharding implementation", "scale database", or "horizontal partitioning". The plugin helps design and implement sharding for high-scale applications.
tools
This skill enables Claude to perform comprehensive database security scans using the database-security-scanner plugin. It is triggered when the user requests a security assessment of a database, including identifying vulnerabilities like weak passwords, SQL injection risks, and insecure configurations. The skill leverages OWASP guidelines to ensure thorough coverage and provides remediation suggestions. Use this skill when the user asks to "scan database security", "check database for vulnerabilities", "perform OWASP compliance check on database", or "assess database security posture". The plugin supports PostgreSQL and MySQL.
testing
This skill enables Claude to design and visualize database schemas. It leverages normalization guidance (1NF through BCNF), relationship mapping, and ERD generation to create efficient and well-structured databases. Use this skill when the user requests to "design a database schema", "create a database model", "generate an ERD", "normalize a database", or needs help with "database design best practices". The skill is triggered by terms like "database schema", "ERD diagram", "database normalization", and "relational database design".
tools
This skill enables Claude to manage database replication, failover, and high availability configurations using the database-replication-manager plugin. It is designed to assist with tasks such as setting up master-slave replication, configuring automatic failover, monitoring replication lag, and implementing read scaling. Use this skill when the user requests help with "database replication", "failover configuration", "high availability", "replication lag", or "read scaling" for databases like PostgreSQL or MySQL. The plugin facilitates both physical and logical replication strategies.