agentsclimarketplace

Clade upgrade migration

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/claude-pack/skills/clade-upgrade-migration

'Upgrade Anthropic SDK versions and migrate between Claude model generations.From its SKILL.md

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill clade-upgrade-migration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.5 KB, 670 tokens by cl100k_base, as published. Nobody here has run it

Anthropic Upgrade & Migration

Overview

Upgrade the Anthropic SDK to new versions and migrate between Claude model generations. Covers version checking, changelog review, model ID updates across the codebase, output comparison testing, and gradual rollout via environment variables.

SDK Upgrade

# Check current version
npm list @claude-ai/sdk
pip show anthropic

# Upgrade to latest
npm install @claude-ai/sdk@latest
pip install --upgrade anthropic

# Check changelog for breaking changes
#

Model Migration Checklist

When Anthropic releases new model versions:

  1. Read the model card — check for behavior changes, new capabilities
  2. Update model IDs — find and replace old IDs
# Find all model references in your codebase
grep -r "claude-" --include="*.ts" --include="*.py" --include="*.json" .
  1. Test with new model — run integration tests against both old and new
  2. Compare outputs — spot-check key prompts for quality regression
  3. Update max_tokens — new models may have different limits
  4. Gradual rollout — use env var to control model selection
// Environment-based model selection for safe rollout
const MODEL = process.env.CLAUDE_MODEL || 'claude-sonnet-4-20250514';

const message = await client.messages.create({
  model: MODEL,
  max_tokens: 1024,
  messages,
});

Common Migration Issues

IssueFix
Model ID not found (404)Update to current model ID
Different output formatAdjust parsing — test with real prompts
Higher/lower token usageRe-evaluate max_tokens and cost estimates
Deprecated SDK methodCheck SDK changelog for replacement

Output

  • SDK upgraded to latest version
  • Model IDs updated across all files
  • Integration tests passing with new model
  • Output quality verified against previous model
  • Gradual rollout configured via CLAUDE_MODEL environment variable

Error Handling

ErrorCauseSolution
API ErrorCheck error type and status codeSee clade-common-errors

Examples

See SDK Upgrade commands, grep patterns for finding model references, environment-based model selection, and Common Migration Issues table above.

Resources

Next Steps

See clade-known-pitfalls for common mistakes to avoid.

Prerequisites

  • Existing Anthropic SDK integration to upgrade
  • Access to the codebase with grep/search capability
  • Test suite for comparing model outputs

Instructions

Step 1: Review the patterns below

Each section contains production-ready code examples. Copy and adapt them to your use case.

Step 2: Apply to your codebase

Integrate the patterns that match your requirements. Test each change individually.

Step 3: Verify

Run your test suite to confirm the integration works correctly.

What ships with it: 1 file

1.7 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.