003-skills/.claude/skills/nixtla-uncertainty-quantifier/SKILL.md
Analyze forecast uncertainty using conformal prediction. Use when risk assessment or scenario planning is required. Trigger with 'quantify uncertainty' or 'prediction intervals'.
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-uncertainty-quantifierInstall 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.
Generates prediction intervals and confidence bands for time series forecasts using conformal prediction.
Provides a measure of the uncertainty associated with time series forecasts, enabling more informed decision-making.
Calculates prediction intervals and confidence bands around point forecasts, leveraging conformal prediction techniques. Requires a trained forecasting model (e.g., TimeGPT, StatsForecast) and historical data. Use when point forecasts alone are insufficient and an understanding of forecast uncertainty is needed. Outputs CSV files containing the forecast with uncertainty bounds and visualizations.
Tools: Read, Write, Bash, Glob, Grep
Environment:
NIXTLA_TIMEGPT_API_KEY (if using TimeGPT).Packages:
pip install nixtla pandas statsforecast matplotlib scikit-learn
Load historical data and generate point forecasts using StatsForecast.
Script: {baseDir}/scripts/generate_forecasts.py
Usage:
python {baseDir}/scripts/generate_forecasts.py \
--input data.csv \
--output forecast.csv
The script:
unique_id, ds, y columnsExecute the uncertainty quantification script with your chosen confidence level and method.
Script: {baseDir}/scripts/quantify_uncertainty.py
Usage:
python {baseDir}/scripts/quantify_uncertainty.py \
--input forecast.csv \
--confidence 0.95 \
--method quantile \
--forecast_col StatsForecast
Parameters:
--input: Path to forecast CSV file--confidence: Confidence level (0.90 for 90%, 0.95 for 95%, etc.)--method: Conformal prediction method (quantile or jackknife+)--forecast_col: Name of the forecast column (default: StatsForecast)Methods:
The script automatically:
Error: Input file not found
Solution: Verify the file path specified in the --input argument is correct.
Error: Invalid confidence level
Solution: Specify a confidence level between 0 and 1 (e.g., 0.95 for 95% confidence).
Error: Unsupported conformal prediction method
Solution: Choose a valid conformal prediction method, such as 'quantile' or 'jackknife+'.
Error: Forecast file does not contain required columns
Solution: Ensure the input CSV file contains unique_id, ds, y, and forecast columns (e.g., 'StatsForecast').
Error: Data split results in empty calibration set
Solution: Ensure you have sufficient data for both calibration and evaluation (minimum 10-20 observations).
Input (forecast.csv):
unique_id,ds,y,StatsForecast
store_1,2024-01-01,100,95
store_1,2024-01-02,120,115
store_1,2024-01-03,110,112
Command:
python {baseDir}/scripts/quantify_uncertainty.py \
--input forecast.csv \
--confidence 0.90 \
--method quantile
Output (forecast_with_uncertainty.csv):
unique_id,ds,y,StatsForecast,lower_bound_90,upper_bound_90
store_1,2024-01-01,100,95.0,85.0,105.0
store_1,2024-01-02,120,115.0,105.0,125.0
store_1,2024-01-03,110,112.0,102.0,122.0
Input (data.csv):
unique_id,ds,y
grid_1,2024-01-01 00:00,5000
grid_1,2024-01-01 01:00,5100
...
grid_1,2024-01-31 23:00,5200
Commands:
# Step 1: Generate forecasts
python {baseDir}/scripts/generate_forecasts.py \
--input data.csv \
--output forecast.csv
# Step 2: Quantify uncertainty
python {baseDir}/scripts/quantify_uncertainty.py \
--input forecast.csv \
--confidence 0.95 \
--method jackknife+
Output: Forecast with 95% prediction intervals for risk-aware energy planning.
# Generate forecasts from historical data
python {baseDir}/scripts/generate_forecasts.py \
--input sales_history.csv \
--output sales_forecast.csv
# Quantify uncertainty with 90% confidence using quantile method
python {baseDir}/scripts/quantify_uncertainty.py \
--input sales_forecast.csv \
--confidence 0.90 \
--method quantile \
--forecast_col StatsForecast
# Review outputs:
# - forecast_with_uncertainty.csv (data with intervals)
# - uncertainty_plot.png (visualization)
# - calibration_metrics.json (quality metrics)
{baseDir}/scripts/ directory contains all executable codetools
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.