003-skills/.claude/skills/nixtla-contract-schema-mapper/SKILL.md
Transform prediction market data to Nixtla format (unique_id, ds, y). Use when preparing datasets for forecasting. Trigger with 'convert to Nixtla format' or 'schema mapping'.
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.pytesting
This skill enables Claude to manage isolated test environments using Docker Compose, Testcontainers, and environment variables. It is used to create consistent, reproducible testing environments for software projects. Claude should use this skill when the user needs to set up a test environment with specific configurations, manage Docker Compose files for test infrastructure, set up programmatic container management with Testcontainers, manage environment variables for tests, or ensure cleanup after tests. Trigger terms include "test environment", "docker compose", "testcontainers", "environment variables", "isolated environment", "env-setup", and "test setup".
tools
This skill uses the test-doubles-generator plugin to automatically create mocks, stubs, spies, and fakes for unit testing. It analyzes dependencies in the code and generates appropriate test doubles based on the chosen testing framework, such as Jest, Sinon, or others. Use this skill when you need to generate test doubles, mocks, stubs, spies, or fakes to isolate units of code during testing. Trigger this skill by requesting test double generation or using the `/gen-doubles` or `/gd` command.
tools
This skill enables Claude to generate realistic test data for software development. It uses the test-data-generator plugin to create users, products, orders, and custom schemas for comprehensive testing. Use this skill when you need to populate databases, simulate user behavior, or create fixtures for automated tests. Trigger phrases include "generate test data", "create fake users", "populate database", "generate product data", "create test orders", or "generate data based on schema". This skill is especially useful for populating testing environments or creating sample data for demonstrations.
development
This skill analyzes code coverage metrics to identify untested code and generate comprehensive coverage reports. It is triggered when the user requests analysis of code coverage, identification of coverage gaps, or generation of coverage reports. The skill is best used to improve code quality by ensuring adequate test coverage and identifying areas for improvement. Use trigger terms like "analyze coverage", "code coverage report", "untested code", or the shortcut "cov".