000-docs/000a-planned-skills/prediction-markets/nixtla-event-impact-modeler/SKILL.md
Quantifies the impact of exogenous events on contract prices using TimeGPT and CausalImpact. Triggers on "event impact analysis", "model event effects", "quantify event impact", or "causal analysis".
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-event-impact-modelerInstall 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.
Quantifies the causal impact of exogenous events on contract prices using TimeGPT forecasting and CausalImpact analysis.
This skill analyzes how external events (promotions, natural disasters, policy changes) affect contract prices over time. It combines historical price data with event details to quantify causal impacts using MCMC-based counterfactual modeling and TimeGPT forecasting. The skill produces impact estimates, adjusted forecasts, and visualizations for event-driven price changes.
Use cases: Promotion effectiveness analysis, disaster impact quantification, policy change assessment, pricing anomaly investigation, event-aware forecasting.
Environment:
NIXTLA_TIMEGPT_API_KEY (required for TimeGPT forecasting)Dependencies:
pip install nixtla pandas causalimpact matplotlib
Input requirements:
prices.csv: Contract prices with columns ds (datetime), price (numeric)events.csv: Event data with columns ds (datetime), event (string description)Load and validate contract price and event data using the data preparation script.
python {baseDir}/scripts/prepare_data.py \
--prices prices.csv \
--events events.csv \
--output-prices prepared_prices.csv \
--output-events prepared_events.csv
To create sample data for testing:
python {baseDir}/scripts/prepare_data.py --create-sample
Script actions:
ds, price/event)y for price)unique_id if missingDefine event windows and mark treatment/control periods in the price data.
python {baseDir}/scripts/configure_model.py \
--prices prepared_prices.csv \
--events prepared_events.csv \
--window-days 3 \
--output configured_prices.csv
Script actions:
treatment column (1=treatment period, 0=control period)Parameters:
--window-days: Event window size in days (default: 3)Run CausalImpact analysis with TimeGPT forecasting to quantify event effects.
python {baseDir}/scripts/analyze_impact.py \
--prices configured_prices.csv \
--events prepared_events.csv \
--niter 1000 \
--window-days 3 \
--output-impact impact_results.csv \
--output-forecast adjusted_forecast.csv \
--output-summary causal_summary.txt
Script actions:
Parameters:
--niter: MCMC iterations for CausalImpact (default: 1000)--window-days: Event window size (must match Step 2)Create visualization and markdown report summarizing the analysis.
python {baseDir}/scripts/generate_report.py \
--impact-results impact_results.csv \
--adjusted-forecast adjusted_forecast.csv \
--causal-summary causal_summary.txt \
--output-plot impact_plot.png \
--output-report impact_report.md \
--title "Event Impact on Contract Prices"
Script actions:
Generated files:
impact_results.csv: Event impact metrics (absolute effect, relative effect, average price)adjusted_forecast.csv: TimeGPT forecasts with actual prices and predictionscausal_summary.txt: CausalImpact statistical summaryimpact_plot.png: Time series visualization with treatment periods highlightedimpact_report.md: Comprehensive markdown report with all resultsImpact metrics:
| Error | Solution |
|-------|----------|
| Event dates outside price range | Adjust event dates or expand price data range |
| Missing event descriptions | Ensure event column exists in events CSV |
| TimeGPT API request failed | Verify NIXTLA_TIMEGPT_API_KEY and internet connection |
| CausalImpact failed to converge | Increase --niter parameter or adjust event windows |
| Insufficient pre-intervention data | Expand price history before first event |
Scenario: Quantify price increase during promotional campaign.
Input:
prices.csv: Daily prices for 30 daysevents.csv: Single promotion event on day 15Command sequence:
python scripts/prepare_data.py --prices prices.csv --events events.csv
python scripts/configure_model.py --prices prepared_prices.csv --events prepared_events.csv --window-days 5
python scripts/analyze_impact.py --prices configured_prices.csv --events prepared_events.csv --niter 2000
python scripts/generate_report.py --impact-results impact_results.csv --adjusted-forecast adjusted_forecast.csv
Output: impact_results.csv shows 15% relative price increase during promotion period.
Scenario: Assess price drop following natural disaster.
Input:
prices.csv: Weekly prices for 52 weeksevents.csv: Disaster event on week 26Command sequence:
python scripts/prepare_data.py --prices prices.csv --events events.csv
python scripts/configure_model.py --prices prepared_prices.csv --events prepared_events.csv --window-days 7
python scripts/analyze_impact.py --prices configured_prices.csv --events prepared_events.csv
python scripts/generate_report.py --impact-results impact_results.csv --adjusted-forecast adjusted_forecast.csv --title "Disaster Impact Analysis"
Output: impact_report.md documents price recovery timeline and total economic impact.
Scripts (all in {baseDir}/scripts/):
prepare_data.py: Data loading and validation with argparse CLIconfigure_model.py: Event period configuration and treatment/control markinganalyze_impact.py: CausalImpact + TimeGPT analysis enginegenerate_report.py: Visualization and markdown report generationDocumentation:
tools
This skill enables Claude to create and execute load tests for performance validation. It is designed to generate load test scripts using tools like k6, JMeter, and Artillery, based on specified test scenarios. Use this skill when the user requests to create a "load test", conduct "performance testing", validate "application performance", or needs a "stress test" to identify breaking points in the application. The skill helps define performance thresholds and provides execution instructions.
testing
This skill enables Claude to collect comprehensive infrastructure performance metrics across compute, storage, network, containers, load balancers, and databases. It is triggered when the user requests "collect infrastructure metrics", "monitor server performance", "set up performance dashboards", or needs to analyze system resource utilization. The skill configures metrics collection, sets up aggregation, and helps create infrastructure dashboards for health monitoring and capacity tracking. It supports configuration for Prometheus, Datadog, and CloudWatch.
tools
This skill enables Claude to monitor and analyze application error rates to improve reliability. It is used when the user needs to track and understand errors occurring in their application, including HTTP errors, application exceptions, database errors, external API errors, background job errors, and client-side errors. Use this skill when the user asks to "monitor errors", "analyze error rates", "track application errors", or requests help with "error monitoring". It sets up comprehensive error tracking and alerting based on defined thresholds.
development
This skill automates the setup of distributed tracing for microservices. It helps developers implement end-to-end request visibility by configuring context propagation, span creation, trace collection, and analysis. Use this skill when the user requests to set up distributed tracing, implement observability, or troubleshoot performance issues in a microservices architecture. The skill is triggered by phrases such as "setup tracing", "implement distributed tracing", "configure opentelemetry", or "add observability to microservices".