VA

vastai-upgrade-migration

Guides the safe upgrade of the Vast.ai CLI and SDK while identifying breaking changes and ensuring API compatibility.

Install

mkdir -p .claude/skills/vastai-upgrade-migration && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4218" && unzip -o skill.zip -d .claude/skills/vastai-upgrade-migration && rm skill.zip

Installs to .claude/skills/vastai-upgrade-migration

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Upgrade Vast.ai CLI, migrate API versions, and handle breaking changes.
71 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Upgrade Vast.ai CLI and Python SDK
  • →Detect breaking changes in CLI commands
  • →Migrate between API endpoints
  • →Update Docker images for CUDA compatibility
  • →Verify authentication and instance status post-upgrade

How it works

The process involves upgrading the CLI via pip, comparing CLI help output to identify removed commands, and testing API connectivity against different base URLs.

Inputs & outputs

You give it
CLI version and API endpoint configuration
You get back
Upgraded SDK environment and verification report

When to use vastai-upgrade-migration

  • →Upgrade Vast.ai CLI version
  • →Detect API breaking changes
  • →Migrate to newer GPU configurations
  • →Validate SDK auth settings

About this skill

Reversible Vast.ai Client and Template Upgrade

Overview

Treat the provider client and workload template as separate compatibility boundaries. Pin and test the managed CLI or PyPI package, preserve the vastai_sdk compatibility shim during migration, and canary template changes before a rolling update.

Prerequisites

  • Current CLI/SDK version, install channel, import usage, commands, templates, and dependent automation
  • Target version and release evidence plus contract tests for critical commands and response adapters
  • Rollback client version, prior template hash, and an acceptance deadline

Instructions

Step 1: Freeze the current contract

Record versions, install location, key precedence, imports, command help, structured outputs, and immutable template/model identities.

Step 2: Upgrade in isolation

For the managed CLI, use its version-aware update mechanism and retain the prior version. For Python, pin the target vastai package in a disposable environment.

Step 3: Test client compatibility

Run auth, offer search, instance read, response normalization, and expected-denial tests without creating paid resources unless the plan requires a canary.

Step 4: Migrate SDK imports deliberately

Move from vastai_sdk to vastai while the documented compatibility shim remains; test high-level and sync/async client boundaries actually used.

Step 5: Canary workload changes

Create a separate endpoint or disposable instance from the target template, prove output and recovery, then trigger a controlled rolling update if Serverless.

Step 6: Accept or revert

Compare contract and SLO evidence. Restore the prior client pin or template reference on failure and verify the rollback path.

Authentication

Confirm the upgraded client still reads the intended XDG or environment credential and preserves least privilege. Never test upgrades with an unscoped production key by default.

Tool Discipline

Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.

Output

  • Before/after client and template contract inventory
  • Compatibility, canary, SLO, and expected-denial results
  • Acceptance or rollback receipt with retained prior versions

Return install channel, old/new versions, import boundary, old/new template hashes, tests, decision, and rollback verification.

Examples

A service moves from the vastai_sdk shim to vastai in staging, pins the package, validates its response adapter, canaries a new template, then performs a monitored Serverless rolling update with the prior hash retained.

Error Handling

FailureResponse
Structured output changesFail at the adapter contract and keep the previous pin.
Credential source changesStop and restore the intended key precedence before any mutation.
Canary output or recovery regressesReject the template and retain production on the old hash.
Rollback artifact is unavailableIssue NO-GO until the prior client and template are recoverable.

Resources

When not to use it

  • →When the current environment is stable and no updates are required
  • →When working in a locked-version production environment

Prerequisites

Current vastai CLI installedActive instances inventory documentedBackup of custom scripts

Limitations

  • →Requires manual verification of custom scripts
  • →API endpoint migration depends on Vast.ai availability

How it compares

This workflow provides a systematic verification process to ensure script compatibility after an upgrade, rather than simply updating the package.

Compared to similar skills

vastai-upgrade-migration side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vastai-upgrade-migration (this skill)12moReviewIntermediate
fastapi-templates5204moNo flagsIntermediate
llama-cpp2110moReviewIntermediate
textual14310moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore →

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

Search skills

Search the agent skills registry