000-docs/000a-planned-skills/prediction-markets/nixtla-polymarket-analyst/SKILL.md
Analyzes Polymarket prediction market contracts and forecasts price movements using TimeGPT. Activates when analyzing prediction markets, forecasting contract outcomes, or evaluating market sentiment. Triggers on: "Polymarket analysis", "predict contract odds", "forecast prediction market".
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-polymarket-analystInstall 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.
Analyzes and forecasts Polymarket prediction market contract prices using historical data and TimeGPT forecasting models.
This skill fetches Polymarket contract data via API, transforms it into Nixtla time series format, and generates probabilistic forecasts using TimeGPT. The agent produces price forecasts with confidence intervals, trend analysis, and trading signals. Useful for traders and analysts seeking data-driven insights on prediction markets. Outputs include CSV forecasts, visualizations, and analysis reports with risk disclaimers.
Required Tools: Read, Write, Bash, Glob, Grep, WebFetch
Environment Variables:
NIXTLA_TIMEGPT_API_KEY - Required for TimeGPT forecasting (get at https://dashboard.nixtla.io)Python Packages:
pip install nixtla pandas requests matplotlib
Script Files: All Python scripts are located in {baseDir}/scripts/:
fetch_contract.py - Fetches contract data from Polymarket APItransform_data.py - Transforms data to Nixtla format (unique_id, ds, y)forecast_contract.py - Generates TimeGPT forecasts with confidence intervalsanalyze_polymarket.py - Complete end-to-end analysis pipelineThe agent should follow this workflow when analyzing Polymarket contracts:
Check that the TimeGPT API key is configured:
echo $NIXTLA_TIMEGPT_API_KEY
If not set, instruct the user to export their API key.
Use the fetch script to retrieve contract metadata and historical prices:
python {baseDir}/scripts/fetch_contract.py <condition_id> --days 30
This creates contract_{id}_data.json with the contract question, description, volume, liquidity, and hourly price history.
Convert raw Polymarket data to Nixtla format (unique_id, ds, y columns):
python {baseDir}/scripts/transform_data.py contract_{id}_data.json
Output: contract_{id}_nixtla.csv ready for forecasting. The script validates data quality and warns about insufficient data points.
Run TimeGPT forecasting with specified horizon and frequency:
python {baseDir}/scripts/forecast_contract.py contract_{id}_nixtla.csv \
--horizon 48 \
--freq H \
--output forecast_results
Generates:
forecast_results_forecast.csv - Predicted prices with confidence intervals (80%, 90%, 95%)forecast_results_plot.png - Visualization of historical vs forecastforecast_results_metadata.json - Analysis with trend, signal, and metadataFor end-to-end analysis in one command:
python {baseDir}/scripts/analyze_polymarket.py <condition_id> \
--horizon 48 \
--days 30 \
--output-dir ./results
This runs all steps automatically and produces complete analysis outputs.
The agent should interpret forecast results as follows:
Trend Classification:
Confidence Intervals: 95% CI shows the range where the true price is likely to fall. Wide intervals indicate higher uncertainty.
Risk Factors: Consider market liquidity, trading volume, time until contract resolution, and external events that may affect outcomes.
The agent generates these artifacts:
polymarket_{id}_historical.csv) - Nixtla-formatted time seriespolymarket_{id}_forecast.csv) - Predictions with confidence intervalspolymarket_{id}_plot.png) - Chart showing historical prices, forecast, and confidence bandspolymarket_{id}_analysis.json) - Complete metadata including:
Error: Invalid contract ID
Error: NIXTLA_TIMEGPT_API_KEY not set
export NIXTLA_TIMEGPT_API_KEY='your-key-here'Error: Insufficient data
--days parameter or wait for more trading history. Minimum 10-20 data points recommended.Error: API rate limit exceeded
Error: Connection timeout
User Request: "Analyze the 2024 election contract 0x1234abcd with 48-hour forecast"
Agent Actions:
python {baseDir}/scripts/analyze_polymarket.py 0x1234abcd --horizon 48 --days 60
Expected Output:
Contract: "Will candidate X win the 2024 election?"
Current Price: $0.4500
Forecast Price: $0.5200
Expected Change: +15.56%
Signal: BUY (BULLISH)
95% CI: [0.4800, 0.5600]
Interpretation: The model predicts a 15.56% increase in the "yes" price, suggesting growing confidence in the outcome. The tight confidence interval indicates reasonable certainty.
User Request: "What's the forecast for the ETH price contract?"
Agent Actions:
python {baseDir}/scripts/analyze_polymarket.py 0xdef456 --horizon 24 --days 14
Expected Output:
Contract: "Will ETH be above $3000 on Dec 31?"
Current Price: $0.6800
Forecast Price: $0.6500
Expected Change: -4.41%
Signal: HOLD (NEUTRAL)
95% CI: [0.6000, 0.7000]
Interpretation: The model predicts a slight decrease, but within the neutral range. Wide confidence interval suggests uncertainty. No strong trading signal.
Risk Disclaimer: Forecasts are probabilistic estimates, not guarantees. Past performance does not indicate future results. This is not financial advice. Always verify data before making trading decisions.
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.