003-skills/.claude/skills/nixtla-timegpt2-migrator/SKILL.md
Analyze and transform code for TimeGPT-1 to TimeGPT-2 migration. Use when upgrading TimeGPT version. Trigger with 'migrate to TimeGPT-2' or 'upgrade TimeGPT'.
npx skillsauth add intent-solutions-io/plugins-nixtla nixtla-timegpt2-migratorInstall 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.
Facilitates a smooth transition from TimeGPT-1 to TimeGPT-2.
Automates the migration process from TimeGPT-1 to TimeGPT-2, identifying compatibility issues and generating updated code.
Evaluates existing TimeGPT-1 workflows for compatibility with TimeGPT-2. Identifies potential breaking changes and suggests necessary code modifications. Employs API checks and data schema validation. Provides updated code snippets and configuration examples for TimeGPT-2. Generates a migration report summarizing the changes required.
Tools: Read, Write, Edit, Glob, Grep
Environment: NIXTLA_TIMEGPT_API_KEY
Packages:
pip install nixtla pandas matplotlib statsforecast pyyaml
Scan the codebase for TimeGPT-1 API usage patterns using the analysis script.
Script: {baseDir}/scripts/analyze_codebase.py
Usage:
python {baseDir}/scripts/analyze_codebase.py /path/to/your/codebase
The script searches for:
timegpt.forecast() callstimegpt.create_model() callstimegpt.load_data() callstimegpt.train() callsOutput: analysis_report.txt listing all TimeGPT-1 usage instances.
Execute the compatibility checker to validate data schema and identify unsupported features.
Script: {baseDir}/scripts/compatibility_check.py
Usage:
python {baseDir}/scripts/compatibility_check.py --data sample_data.csv
The script validates:
Output: migration_report.txt with compatibility assessment.
Use the migration script to update your codebase with TimeGPT-2 compatible code.
Script: {baseDir}/scripts/apply_migration.py
Usage:
python {baseDir}/scripts/apply_migration.py main.py
The script performs automatic replacements:
timegpt.forecast() → client.forecast()from timegpt import TimeGPT → from nixtla import NixtlaClienttimegpt = TimeGPT() → client = NixtlaClient(api_key=...)timegpt.create_model() callsImportant: Review all changes before committing to version control.
Create a TimeGPT-2 configuration file with recommended settings.
Script: {baseDir}/scripts/generate_config.py
Usage:
python {baseDir}/scripts/generate_config.py
Output: timegpt2_config.yaml with configuration parameters.
Error: TimeGPT-1 API endpoint not found
Solution: Ensure TimeGPT-1 API is accessible or skip API validation step.
Error: Incompatible data schema
Solution: Update data input format to match TimeGPT-2 requirements (unique_id, ds, y columns).
Error: Missing API Key
Solution: Set the NIXTLA_TIMEGPT_API_KEY environment variable.
Error: Unsupported TimeGPT-1 feature
Solution: Refactor code to use equivalent TimeGPT-2 functionality or alternative approaches.
Error: File not found during migration
Solution: Verify the file path and ensure the file exists before running the migration script.
Before (TimeGPT-1):
from timegpt import TimeGPT
timegpt = TimeGPT()
forecast = timegpt.forecast(data, h=24)
After (TimeGPT-2):
from nixtla import NixtlaClient
import os
client = NixtlaClient(api_key=os.getenv('NIXTLA_TIMEGPT_API_KEY'))
forecast = client.forecast(df=data, h=24, freq='H')
Before (config.json):
{
"model": "timegpt-1",
"horizon": 24
}
After (timegpt2_config.yaml):
api_key: YOUR_API_KEY_HERE
model_name: TimeGPT-2
frequency: H
forecast_horizon: 24
data_format: Nixtla
# Step 1: Analyze codebase
python {baseDir}/scripts/analyze_codebase.py ./my_project
# Step 2: Check compatibility
python {baseDir}/scripts/compatibility_check.py --data ./data/sample.csv
# Step 3: Apply migration (review migration_report.txt first)
python {baseDir}/scripts/apply_migration.py ./my_project/main.py
# Step 4: Generate config
python {baseDir}/scripts/generate_config.py
{baseDir}/scripts/ directory contains all migration toolstools
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.