langchain-migration-deep-dive

Featured

Migrate to LangChain from raw OpenAI SDK, LlamaIndex, or custom LLM code. Covers codebase assessment, side-by-side validation, RAG migration, agent migration, and feature-flagged gradual rollout. Trigger: "migrate to langchain", "langchain refactor", "legacy LLM migration", "replace openai SDK with langchain", "llamaindex to langchain".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain Migration Deep Dive ## Current State !`npm list 2>/dev/null | grep -E "openai|langchain|llamaindex" | head -10` ## Overview Migrate from raw SDK calls (OpenAI, Anthropic) or other frameworks (LlamaIndex, custom agents) to LangChain. Covers codebase scanning, pattern-by-pattern migration, side-by-side validation, and feature-flagged rollout. ## Step 1: Assess Codebase ```typescript // Scan for migration targets import * as fs from "fs"; import * as path from "path"; interface MigrationItem { file: string; line: number; pattern: string; complexity: "low" | "medium" | "high"; } function scanForMigration(dir: string): MigrationItem[] { const items: MigrationItem[] = []; const patterns = [ { regex: /openai\.chat\.completions\.create/g, name: "OpenAI direct call", complexity: "low" as const }, { regex: /new OpenAI\(/g, name: "OpenAI SDK init", complexity: "low" as const }, { regex: /anthropic\.messages\.create/g, name: "Anthropic direct call", complexity: "low" as const }, { regex: /from llama_index/g, name: "LlamaIndex import", complexity: "medium" as const }, { regex: /VectorStoreIndex/g, name: "LlamaIndex vector store", complexity: "high" as const }, { regex: /function_call|tool_choice/g, name: "Manual tool calling", complexity: "high" as const }, ]; // Recursive file scan function scan(dir: string) { for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { if (entry.isDirectory() && !entry.name....

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

langchain-upgrade-migration

Upgrade LangChain SDK versions safely with import path migration, LCEL conversion from legacy chains, and agent API updates. Trigger: "upgrade langchain", "langchain migration", "langchain breaking changes", "update langchain version", "langchain 0.3", "langchain deprecation".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langfuse-migration-deep-dive

Execute complex Langfuse migrations including data migration and platform changes. Use when migrating from other observability platforms, moving between Langfuse instances, or performing major infrastructure migrations. Trigger with phrases like "langfuse migration", "migrate to langfuse", "langfuse data migration", "langfuse platform migration", "switch to langfuse".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langchain-prod-checklist

Production readiness checklist for LangChain applications. Use when preparing for launch, validating deployment readiness, or auditing existing production LangChain systems. Trigger: "langchain production", "langchain prod ready", "deploy langchain", "langchain launch checklist", "go-live langchain".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langchain-reference-architecture

Implement LangChain reference architecture for production systems: layered design, provider abstraction, chain registry, RAG pipelines, and multi-agent orchestration. Trigger: "langchain architecture", "langchain design patterns", "langchain scalable", "langchain enterprise", "LLM architecture".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langchain-data-handling

Implement LangChain RAG pipelines with document loaders, text splitters, embeddings, and vector stores (Chroma, Pinecone, FAISS). Trigger: "langchain RAG", "langchain documents", "langchain vector store", "langchain embeddings", "document loaders", "text splitters", "retrieval".

2,266 Updated today
jeremylongshore