cohere-upgrade-migration
/cohere-upgrade-migration
Migrate Cohere API v1 or older SDK usage to v2 with contract tests, model lifecycle checks, canarying, and rollback. Use when upgrading Cohere dependencies or endpoints. Trigger with "Cohere v1 to v2", "upgrade Cohere SDK", or "Cohere deprecation".
- Author
- jeremylongshore ↗
- Repository
- tons-of-skills-marketplace ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Migrate Cohere API v1 or older SDK usage to v2 with contract tests, model lifecycle checks, canarying, and rollback. Use when upgrading Cohere dependencies or endpoints. Trigger with "Cohere v1 to v2", "upgrade Cohere SDK", or "Cohere deprecation".
Triggers from the description
Arguments
/cohere-upgrade-migration [repository-path] [from-version] [to-version]
Original author description
Migrate Cohere API v1 or older SDK usage to v2 with contract tests, model lifecycle checks, canarying, and rollback. Use when upgrading Cohere dependencies or endpoints. Trigger with "Cohere v1 to v2", "upgrade Cohere SDK", or "Cohere deprecation".
How it works
- Overview
- Prerequisites
- Tool Discipline
- Current Contract
- Authentication
- Instructions
- Approval Boundaries
- Output
- Error Handling
- Examples
SKILL.md preview
--- name: cohere-upgrade-migration description: >- Migrate Cohere API v1 or older SDK usage to v2 with contract tests, model lifecycle checks, canarying, and rollback. Use when upgrading Cohere dependencies or endpoints. Trigger with "Cohere v1 to v2", "upgrade Cohere SDK", or "Cohere deprecation". argument-hint: "[repository-path] [from-version] [to-version]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.6.0 author: Jeremy Longshore <jeremy@intentsolutions.io> license: MIT tags: - saas - cohere - migration model: inherit effort: high compatibility: Designed for Claude Code; live verification requires network access and an approved Cohere API key --- # Cohere API and SDK Upgrade ## Overview Inventory legacy behavior, move through the documented v2 contract, and prove semantic parity before removing rollback paths. ## Prerequisites - The target repository, runtime, environment, and accountable owner - An approved Cohere team and key for any live verification - Current quality, security, privacy, capacity, and change-control requirements ## Tool Discipline Use `Read`, `Glob`, and `Grep` to inspect code, configuration, and evidence. Use `WebFetch` only for current Cohere primary documentation. Use `Write` or `Edit` only when the user requested implementation and the exact target files are known; never write credentials or customer content. ## Current Contract - V2 uses `messages` instead of separate message, preamble, and managed conversation history fields. - V2 requires explicit models; Embed also requires embedding types. - V2 tools use JSON Schema and correlate results with tool-call IDs. - Legacy Generate, Summarize, Classify, managed connectors, selected models, and fine-tuning paths appear on Cohere's deprecation schedule. ## Authentication Use an environment-specific key injected from an approved secret manager. Never print, persist, commit, or place `CO_API_KEY` in an example. Confirm access with the least costly bounded operation appropriate to the task, and treat key creation, rotation, revocation, role changes, and production-capacity requests as owner-approved actions. ## Instructions 1. Inventory SDK versions, endpoints, parameters, models, stream events, connectors, fine-tunes, and response parsing. 2. Read the current migration and deprecation pages and classify each dependency as live, legacy, deprecated, or shut down. 3. Add golden contract tests around current user-visible behavior and failure paths. 4. Introduce the v2 client and provider adapter while retaining a feature-flagged rollback path. 5. Migrate request and response shapes, then reindex embeddings if their model contract changes. 6. Canary representative traffic, compare quality and operations, and remove v1 only after rollback criteria remain clear. ## Approval Boundaries Do not expose or rotate keys, change Cohere Team roles, accept commercial terms, enable sensitive production data, increase spend or capacity, switch production models, send a support bundle, or execute model-proposed side effects without the accountable owner's approval. Keep diagnosis read-only unless implementation was requested. ## Output Return the resolved API and model contract, files or settings inspected, evidence collected, validation result, remaining risk, owner, and rollback or next action. Redact keys, authorization headers, prompts, retrieved documents, embeddings, customer identifiers, and unrestricted environment output. ## Error Handling | Condition | Response | |---|---| | Missing v2 feature | Use an application-owned tool or retain a time-bound v1 path if still supported. | | Embedding drift | Build a parallel index and cut over atomically. | | Stream parser fails | Update from legacy text events to typed v2 events. | | Quality regression | Stop the canary and preserve the old model path. | ## Examples Use this compact handoff shape to keep the selected scope, validation evidence, and operational result reviewable. Input: ```text from=Client-v1; to=ClientV2; endpoints=chat,embed; canary=10% ``` Expected handoff: ```text contracts=pass; deprecated-calls=0; quality=within-threshold; rollback=ready ``` ## Resources - [Skill-specific official documentation](references/official-docs.md) - [API v1 to v2](https://docs.cohere.com/docs/migrating-v1-to-v2) - [Deprecations](https://docs.cohere.com/docs/deprecations)
Files in this package (2)
- SKILL.md 4 KB
- references/official-docs.md 3 KB
Versions
The database has no other skills named cohere-upgrade-migration.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 9ca9d73bf0da (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100cohere-deploy-integration
Deploy a Cohere-powered service with server-side secrets, streaming-safe infrastructure, health checks, canarying, and rollback. Use when shipping Cohere workloads. Trigger with "deploy Cohere", "Cohere production deploy", or "Cohere streaming service". - 100cohere-migration-deep-dive
Migrate an application to or from Cohere with a provider adapter, parallel embedding index, quality evaluation, canary traffic, and rollback. Use when changing model providers. Trigger with "migrate to Cohere", "replace OpenAI with Cohere", or "Cohere replatform". - 100migrate-ai-sdk-v6-to-v7
Migrate applications from AI SDK 6.x to AI SDK 7.0. Use when upgrading Vercel AI SDK packages, fixing v7 migration errors, or when the user mentions AI SDK v6, v7, upgrade, migration, breaking changes, system to instructions, fullStream, telemetry, tool context, or finalStep. - 100linear-upgrade-migration
Upgrade Linear SDK versions and migrate breaking changes. Use when updating to a new SDK version, handling deprecations, or migrating between major Linear API versions. Trigger with phrases like "upgrade linear SDK", "linear SDK migration", "update linear", "linear breaking… - 100sentry-upgrade-migration
Execute upgrade Sentry SDK and migrate between versions. Use when upgrading Sentry SDK, handling breaking changes, or migrating from legacy versions. Trigger with phrases like "upgrade sentry", "sentry migration", "update sentry sdk", "sentry breaking changes". - 100cohere-command
Select among Cohere Command A+ multimodal agents, Command A Reasoning, and Command A Vision for enterprise language and document tasks. WHEN: Command family exact IDs, vision versus reasoning, tool-use and RAG fit, context or licensing. Do NOT use for other model families,…