000-docs/000a-planned-skills/prediction-markets/nixtla-contract-schema-mapper/SKILL.md
Transforms prediction market data to Nixtla format (unique_id, ds, y). Maps arbitrary column names to required schema. Validates date and numeric types. Use when preparing prediction market datasets for Nixtla forecasting tools. Trigger with "convert to Nixtla format", "schema mapping", "transform data".
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-contract-schema-mapperInstall 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.
Transforms prediction market data into Nixtla-compatible format (unique_id, ds, y).
Converts prediction market datasets with varying schemas into standardized Nixtla format. Maps arbitrary column names to required schema, validates date parsing and numeric types, produces clean CSV output ready for forecasting. Optional visualization and sample forecast generation.
Required:
pandas, matplotlib packagesOptional (for forecasting):
statsforecast for open-source modelsnixtla for TimeGPT (requires API key)Environment Variables:
NIXTLA_TIMEGPT_API_KEY: Required only if using --timegpt flagInstallation:
pip install pandas matplotlib statsforecast nixtla
Examine your input CSV to identify:
Execute the transformation script:
python {baseDir}/scripts/transform_data.py --input data.csv \
--id_col contract_id --date_col date --target_col price
Available options:
--input: Input CSV file path (required)--id_col: Column name for unique ID (required)--date_col: Column name for date (required)--target_col: Column name for target variable (required)--output: Output file path (default: nixtla_data.csv)--plot: Generate time series visualization--forecast: Run sample forecast after transform--timegpt: Use TimeGPT instead of StatsForecastCheck the transformed data:
head -5 nixtla_data.csv
Expected format:
unique_id,ds,y
contract_1,2024-01-01,0.75
contract_1,2024-01-02,0.78
--plot)Error: Input file not found: data.csv
Solution: Verify file path exists and is readable
Error: Column 'contract_id' not found. Available: [...]
Solution: Use exact column name from the available list
Error: Invalid date format in date column
Solution: Ensure dates use YYYY-MM-DD or standard parseable format
Error: Non-numeric data in target column
Solution: Clean non-numeric values from target column
Error: NIXTLA_TIMEGPT_API_KEY not set
Solution: export NIXTLA_TIMEGPT_API_KEY=your_key or omit --timegpt
python {baseDir}/scripts/transform_data.py \
--input polymarket_prices.csv \
--id_col market_id \
--date_col timestamp \
--target_col last_price
Output:
Transformed data saved to: nixtla_data.csv
Transformation Summary:
Series count: 15
Total rows: 4500
Date range: 2024-01-01 to 2024-06-30
Value range: 0.0100 to 0.9900
python {baseDir}/scripts/transform_data.py \
--input election_contracts.csv \
--id_col candidate_id \
--date_col date \
--target_col probability \
--plot \
--forecast
{baseDir}/scripts/transform_data.pytools
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.