[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H80Z7D0DK4A50GT840CFGS":3,"skill-same:01M6H80Z7D0DK4A50GT840CFGS":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6H80Z7D0DK4A50GT840CFGS","mistral-migration-deep-dive",null,"Execute Mistral AI major migrations and re-architecture strategies.\nUse when migrating to Mistral AI from another provider, performing major refactoring,\nor re-platforming existing AI integrations to Mistral AI.\nTrigger with phrases like \"migrate to mistral\", \"mistral migration\",\n\"switch to mistral\", \"mistral replatform\", \"openai to mistral\".","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fmistral-pack\u002Fskills\u002Fmistral-migration-deep-dive\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"deep dive","mistral migration deep dive","Mistral","deep","migration","read","re","io","strategies","edit","write","openclaw","node","refactoring","migrate","Bash","kubectl","openai","code","architecture","2026-11-10 10:12:30",false,"---\nname: mistral-migration-deep-dive\ndescription: |\n  Execute Mistral AI major migrations and re-architecture strategies.\n  Use when migrating to Mistral AI from another provider, performing major refactoring,\n  or re-platforming existing AI integrations to Mistral AI.\n  Trigger with phrases like \"migrate to mistral\", \"mistral migration\",\n  \"switch to mistral\", \"mistral replatform\", \"openai to mistral\".\nallowed-tools: Read, Write, Edit, Bash(npm:*), Bash(node:*), Bash(kubectl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# Mistral AI Migration Deep Dive\n\n## Table of Contents\n- [Overview](#overview)\n- [Prerequisites](#prerequisites)\n- [Instructions](#instructions)\n- [Output](#output)\n- [Error Handling](#error-handling)\n- [Examples](#examples)\n- [Resources](#resources)\n\n## Overview\nComprehensive guide for migrating to Mistral AI from other providers (OpenAI, Anthropic) or performing major version upgrades. Covers assessment, adapter pattern, feature-flag rollout, model mapping, validation testing, and rollback.\n\n## Prerequisites\n- Current system documentation\n- Mistral AI SDK installed\n- Feature flag infrastructure\n- Rollback strategy tested\n\n## Migration Types\n\n| Type | Complexity | Duration | Risk |\n|------|-----------|----------|------|\n| Fresh install | Low | Days | Low |\n| OpenAI to Mistral | Medium | Weeks | Medium |\n| Multi-provider | Medium | Weeks | Medium |\n| Full replatform | High | Months | High |\n\n## Instructions\n\n### Step 1: Pre-Migration Assessment\nAudit current AI code: find all files with AI imports, count integration points (chat completions, embeddings, function calling, streaming). Detect current provider and estimate effort (>10 points = high, >3 = medium, else low).\n\n### Step 2: Create Provider-Agnostic Adapter\nDefine `AIAdapter` interface with `chat()`, `chatStream()`, and `embed()` methods. Use `Message`, `ChatOptions`, and `ChatResponse` types to abstract away provider differences.\n\n### Step 3: Implement OpenAI Adapter\nBuild `OpenAIAdapter` implementing `AIAdapter` that wraps `openai` SDK. Maps OpenAI-specific fields (prompt_tokens, completion_tokens) to normalized types.\n\n### Step 4: Implement Mistral Adapter\nBuild `MistralAdapter` implementing `AIAdapter` that wraps `@mistralai\u002Fmistralai` SDK. Maps Mistral-specific fields (promptTokens, completionTokens) to normalized types.\n\n### Step 5: Feature Flag Migration\nCreate `createAIAdapter()` factory using `MISTRAL_ROLLOUT_PERCENT` env var. Random percentage check routes traffic to Mistral or OpenAI adapter.\n\n### Step 6: Gradual Rollout\nPhase rollout: 0% (validation) -> 5% (canary) -> 25% -> 50% -> 100%. Monitor errors and latency at each phase for 24-48 hours before advancing.\n\n### Step 7: Model Mapping\nMap models: gpt-3.5-turbo -> mistral-small-latest, gpt-4\u002Fgpt-4-turbo -> mistral-large-latest, text-embedding-ada-002 -> mistral-embed (1024 dimensions).\n\n### Step 8: Validation Testing\nRun A\u002FB comparison tests with identical prompts at temperature=0. Verify both providers return non-empty content. Log results for manual quality review.\n\n### Step 9: Rollback Plan\nSet `MISTRAL_ROLLOUT_PERCENT=0` to immediately route all traffic back to OpenAI. Verify health and notify team.\n\n## Output\n- Migration assessment with effort estimation\n- Provider-agnostic adapter interface\n- OpenAI and Mistral adapter implementations\n- Feature-flag controlled gradual rollout\n- Model mapping configuration\n- A\u002FB validation test suite\n- Rollback procedure\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Different output format | API differences | Normalize in adapter |\n| Missing feature | Not supported by Mistral | Implement fallback |\n| Performance difference | Model characteristics | Adjust timeouts |\n| Cost increase | Token differences | Monitor and optimize |\n\n## Examples\n\n### Quick A\u002FB Comparison\n```typescript\nconst [openaiResponse, mistralResponse] = await Promise.all([\n  openaiAdapter.chat(messages, { temperature: 0 }),\n  mistralAdapter.chat(messages, { temperature: 0 }),\n]);\nconsole.log('OpenAI tokens:', openaiResponse.usage);\nconsole.log('Mistral tokens:', mistralResponse.usage);\n```\n\nSee [detailed implementation](${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md) for advanced patterns.\n\n## Resources\n- [Mistral AI Documentation](https:\u002F\u002Fdocs.mistral.ai\u002F)\n- [Strangler Fig Pattern](https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FStranglerFigApplication.html)\n- [Feature Flags Best Practices](https:\u002F\u002Fwww.martinfowler.com\u002Farticles\u002Ffeature-toggles.html)","# Mistral AI Migration Deep Dive\n\n## Table of Contents\n- [Overview](#overview)\n- [Prerequisites](#prerequisites)\n- [Instructions](#instructions)\n- [Output](#output)\n- [Error Handling](#error-handling)\n- [Examples](#examples)\n- [Resources](#resources)\n\n## Overview\nComprehensive guide for migrating to Mistral AI from other providers (OpenAI, Anthropic) or performing major version upgrades. Covers assessment, adapter pattern, feature-flag rollout, model mapping, validation testing, and rollback.\n\n## Prerequisites\n- Current system documentation\n- Mistral AI SDK installed\n- Feature flag infrastructure\n- Rollback strategy tested\n\n## Migration Types\n\n| Type | Complexity | Duration | Risk |\n|------|-----------|----------|------|\n| Fresh install | Low | Days | Low |\n| OpenAI to Mistral | Medium | Weeks | Medium |\n| Multi-provider | Medium | Weeks | Medium |\n| Full replatform | High | Months | High |\n\n## Instructions\n\n### Step 1: Pre-Migration Assessment\nAudit current AI code: find all files with AI imports, count integration points (chat completions, embeddings, function calling, streaming). Detect current provider and estimate effort (>10 points = high, >3 = medium, else low).\n\n### Step 2: Create Provider-Agnostic Adapter\nDefine `AIAdapter` interface with `chat()`, `chatStream()`, and `embed()` methods. Use `Message`, `ChatOptions`, and `ChatResponse` types to abstract away provider differences.\n\n### Step 3: Implement OpenAI Adapter\nBuild `OpenAIAdapter` implementing `AIAdapter` that wraps `openai` SDK. Maps OpenAI-specific fields (prompt_tokens, completion_tokens) to normalized types.\n\n### Step 4: Implement Mistral Adapter\nBuild `MistralAdapter` implementing `AIAdapter` that wraps `@mistralai\u002Fmistralai` SDK. Maps Mistral-specific fields (promptTokens, completionTokens) to normalized types.\n\n### Step 5: Feature Flag Migration\nCreate `createAIAdapter()` factory using `MISTRAL_ROLLOUT_PERCENT` env var. Random percentage check routes traffic to Mistral or OpenAI adapter.\n\n### Step 6: Gradual Rollout\nPhase rollout: 0% (validation) -> 5% (canary) -> 25% -> 50% -> 100%. Monitor errors and latency at each phase for 24-48 hours before advancing.\n\n### Step 7: Model Mapping\nMap models: gpt-3.5-turbo -> mistral-small-latest, gpt-4\u002Fgpt-4-turbo -> mistral-large-latest, text-embedding-ada-002 -> mistral-embed (1024 dimensions).\n\n### Step 8: Validation Testing\nRun A\u002FB comparison tests with identical prompts at temperature=0. Verify both providers return non-empty content. Log results for manual quality review.\n\n### Step 9: Rollback Plan\nSet `MISTRAL_ROLLOUT_PERCENT=0` to immediately route all traffic back to OpenAI. Verify health and notify team.\n\n## Output\n- Migration assessment with effort estimation\n- Provider-agnostic adapter interface\n- OpenAI and Mistral adapter implementations\n- Feature-flag controlled gradual rollout\n- Model mapping configuration\n- A\u002FB validation test suite\n- Rollback procedure\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Different output format | API differences | Normalize in adapter |\n| Missing feature | Not supported by Mistral | Implement fallback |\n| Performance difference | Model characteristics | Adjust timeouts |\n| Cost increase | Token differences | Monitor and optimize |\n\n## Examples\n\n### Quick A\u002FB Comparison\n```typescript\nconst [openaiResponse, mistralResponse] = await Promise.all([\n  openaiAdapter.chat(messages, { temperature: 0 }),\n  mistralAdapter.chat(messages, { temperature: 0 }),\n]);\nconsole.log('OpenAI tokens:', openaiResponse.usage);\nconsole.log('Mistral tokens:', mistralResponse.usage);\n```\n\nSee [detailed implementation](${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md) for advanced patterns.\n\n## Resources\n- [Mistral AI Documentation](https:\u002F\u002Fdocs.mistral.ai\u002F)\n- [Strangler Fig Pattern](https:\u002F\u002Fmartinfowler.com\u002Fbliki\u002FStranglerFigApplication.html)\n- [Feature Flags Best Practices](https:\u002F\u002Fwww.martinfowler.com\u002Farticles\u002Ffeature-toggles.html)",{"name":5,"author":43,"license":14,"version":44,"description":45,"allowed-tools":46,"compatible-with":47},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Execute Mistral AI major migrations and re-architecture strategies.\nUse when migrating to Mistral AI from another provider, performing major refactoring,\nor re-platforming existing AI integrations to Mistral AI.\nTrigger with phrases like \"migrate to mistral\", \"mistral migration\",\n\"switch to mistral\", \"mistral replatform\", \"openai to mistral\".\n","Read, Write, Edit, Bash(npm:*), Bash(node:*), Bash(kubectl:*)","claude-code, codex, openclaw","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","claude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fmistral-pack\u002Fskills\u002Fmistral-migration-deep-dive",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add micsapp\u002Fmicstec-skills --skill mistral-migration-deep-dive",{"tool":61,"command":62},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill mistral-migration-deep-dive",{"tool":64,"command":65},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill mistral-migration-deep-dive","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fmistral-pack\u002Fskills\u002Fmistral-migration-deep-dive\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fimplementation.md","REFERENCE","参考文档",2831,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fmistral-pack\u002Fskills\u002Fmistral-migration-deep-dive\u002Freferences\u002Fimplementation.md",[76,101,122,142,160,184],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":38},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[],[37,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,26,98,99,100],"azure","azure apim architecture","component","authentication","gateway","topology","Optimization","network","api","team","environment","multi-environment","workspaces","instances","selection","azure api management","mode","for",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":38},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[],[108,109,110,111,83,112,36,113,114,115,116,117,91,92,26,118,119,98,120,121],"deployment","apiops deployment","workflows","azure devops","infrastructure","infrastructure as code","actions","ci","github actions","github-actions","as","guides","CI\u002FCD","implementing",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":38},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[],[129,130,131,132,83,86,91,92,133,134,135,136,137,138,139,98,140,141,121,100],"policy","authoring","apim policy authoring","security","access","use","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[],[149,132,150,91,136,151,83,108,152,153,154,155,92,156,98,157,158,159,99,100],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":38},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[167,168,169,110,170,171,172,173,91,174,175,176,27,177,178,179,180,181,182,183],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","list","view","project","project work","token","line","sprints",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":38},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[186,191,192,193,30,194,195,134,196,197],"npm","js","calculate","math","user","compute","errors"]