mistral-upgrade-migration
Plan and execute Mistral AI SDK upgrades while safely managing breaking changes and API deprecations.
Install
mkdir -p .claude/skills/mistral-upgrade-migration && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4224" && unzip -o skill.zip -d .claude/skills/mistral-upgrade-migration && rm skill.zipInstalls to .claude/skills/mistral-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.
Analyze, plan, and execute Mistral AI SDK upgrades with breaking changeKey capabilities
- →Detect current and latest Mistral AI SDK versions
- →Identify known breaking changes between SDK versions
- →Automate code transformations for API surface changes
- →Upgrade the Mistral AI SDK to the latest version
- →Update hardcoded model name references
- →Provide a procedure for rolling back SDK upgrades
How it works
This skill analyzes the installed Mistral AI SDK version, applies automated code transformations based on known breaking changes between major versions, and guides the user through the upgrade and validation process.
Inputs & outputs
When to use mistral-upgrade-migration
- →Upgrading Mistral SDK to v1.x
- →Detecting breaking API changes
- →Migrating from CommonJS to ESM
- →Analyzing SDK version compatibility
About this skill
Mistral SDK and API Surface Upgrade
Overview
Upgrade from evidence, not search-and-replace. Characterize the current adapter, compare exact target contracts, and isolate Public Preview migrations from dependency maintenance.
Prerequisites
- A clean branch, pinned source/target versions, and adapter inventory.
- Characterization tests for requests, streams, errors, usage, and state.
- A canary, compatibility window, and rollback owner.
Current Contract
Current docs expose Public Preview beta Agents and Conversations plus Workflows, while deprecated Agents remains documented. Choose the target per workload; this is not a one-to-one rename.
Authentication
Use offline characterization where possible. Live comparison uses the server-side key, synthetic content, fixed budget, and content-free evidence.
Instructions
- Inventory imports, types, endpoints, models, options, parsing, retries, and state IDs.
- Lock characterization tests before changing dependencies.
- Diff releases, schemas, preview labels, and unsupported features.
- Choose per workload: stable chat, Workflows, or explicitly accepted beta Agents/Conversations.
- Migrate one adapter path at a time without leaking target SDK objects.
- Run offline regression and approved canary; remove compatibility only after rollback expiry.
Tool Discipline
Use Read, Glob, and Grep to inspect code, locks, configuration, tests, and evidence. Use Write and Edit only for approved repository changes. Invocation alone does not authorize network calls, paid usage, uploads, stateful resources, admin mutations, deployments, or deletion.
Approval Boundaries
Require approval for dependencies, preview adoption, endpoint changes, live comparison, state migration, or compatibility removal.
Error Handling
- Compiling can still hide stream, error, usage, or pagination changes.
- Deprecated-to-beta Agents may require redesigned state lifecycle.
- Automatic model substitution invalidates quality, price, and safety baselines.
Output
Return source/target pins, contract diff, destination per workflow, changed call sites, tests/canary, preview risks, rollback, and removal date.
Examples
- Upgrade the TypeScript client behind an unchanged app adapter.
- Keep stable chat while separately evaluating Workflows.
Validation
Test both adapters with identical fixtures, malformed responses, cancellation, retry classes, usage, and rollback drill.
Resources
- Current first-party evidence map — recheck dated sources before relying on mutable endpoints, models, limits, prices, preview status, or retention.
- Record live account observations as environment-specific evidence, not universal Mistral guarantees.
When not to use it
- →When no test suite is available for validation
Prerequisites
Limitations
- →Automated script may not cover all custom usage patterns
- →Requires `package.json` to have `"type": "module"` for ESM
- →Type errors may occur due to interface changes
How it compares
This skill automates the migration of Mistral AI SDK usage, reducing manual effort and potential errors compared to manually updating code for breaking changes.
Compared to similar skills
mistral-upgrade-migration side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| mistral-upgrade-migration (this skill) | 1 | 2mo | Review | Advanced |
| mcp-builder | 136 | 5mo | Review | Advanced |
| stripe-integration | 48 | 4mo | No flags | Advanced |
| copilot-sdk | 7 | 5mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
mcp-builder
anthropics
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
stripe-integration
wshobson
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
copilot-sdk
github
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
documenso-install-auth
jeremylongshore
Install and configure Documenso SDK/API authentication. Use when setting up a new Documenso integration, configuring API keys, or initializing Documenso in your project. Trigger with phrases like "install documenso", "setup documenso", "documenso auth", "configure documenso API key".
gamma-upgrade-migration
jeremylongshore
Upgrade Gamma SDK versions and migrate between API versions. Use when upgrading SDK packages, handling deprecations, or migrating to new API versions. Trigger with phrases like "gamma upgrade", "gamma migration", "gamma new version", "gamma deprecated", "gamma SDK update".
posthog-install-auth
jeremylongshore
Install and configure PostHog SDK/CLI authentication. Use when setting up a new PostHog integration, configuring API keys, or initializing PostHog in your project. Trigger with phrases like "install posthog", "setup posthog", "posthog auth", "configure posthog API key".