Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/clade-migration-deep-dive

@0d57af8
Run it yourself

Migrate from OpenAI/GPT to Anthropic/Claude — API differences, Use when working with migration-deep-dive patterns. prompt adaptation, SDK swap, and feature mapping. Trigger with "migrate to claude", "openai to anthropic", "switch from gpt to claude", "replace openai with anthropic".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/clade-migration-deep-dive

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesone-pager.md

≈426 tokens on demand. Your agent reads this file only when SKILL.md points to it.

clade-migration-deep-dive — One-Pager

Migrate from OpenAI/GPT to Anthropic/Claude with a complete API mapping and SDK swap guide.

The Problem

Switching from OpenAI to Anthropic is not a drop-in replacement. The APIs differ in request shape (max_tokens is required, system is a top-level param), response shape (content[0].text vs choices[0].message.content), message ordering rules, streaming event types, and tool definition format. Missing any of these differences causes silent bugs or runtime errors.

The Solution

This skill provides a complete mapping between OpenAI and Anthropic APIs, side-by-side before/after SDK code, a checklist of six key differences to address, tool use migration patterns, and grep commands to find all OpenAI-specific code in your codebase that needs updating.

Who / What / When

Aspect Details
Who Developers migrating existing OpenAI/GPT integrations to Anthropic/Claude
What Maps API endpoints, rewrites SDK calls, restructures tool definitions, and finds all code that needs updating
When When switching an existing project from OpenAI to Anthropic, or evaluating the migration effort

Key Features

  1. Full API Mapping Table — Side-by-side comparison of every OpenAI endpoint, model ID, and response path to its Anthropic equivalent
  2. Before/After SDK Code — Copy-pasteable TypeScript showing the exact import, client, and response access pattern changes
  3. Grep-and-Replace Commands — Ready-to-run grep commands that find all OpenAI imports, response patterns, and tool definitions in your codebase

Quick Start

See SKILL.md for full instructions.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings2mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub2mo

    The skill provides a migration guide from OpenAI to Anthropic but recommends using an unofficial and non-standard Node.js package name (@claude-ai/sdk) instead of the official SDK (@anthropic-ai/sdk). This presents a potential supply chain risk if users install the non-standard package.

  • Socket2mo

    1 alert: gptAnomaly

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Edits files
version
1.1.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "anthropic",
  "claude",
  "migration",
  "openai"
]
All 4 allowed tools
ReadWriteEditGrep
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/clade-migration-deep-dive