langchain-ai avatar

Langchain Dependencies

Got sick of debugging LangChain dependency hell? This skill cuts through the ecosystem's package sprawl with current version requirements, compatibility matrices, and minimal working templates. It covers the core langchain/langsmith stack, provider integrations (OpenAI, Anthropic, etc.), and the LangGraph vs Deep Agents decision tree. The skill emphasizes LangChain 1.0+ for new projects and warns about langchain-community's non-semantic versioning gotchas. Includes ready-to-copy requirements.txt and package.json snippets for Python and TypeScript projects, plus environment minimums and tool package recommendations.

skills.sh installs
16.8K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add langchain-ai/langchain-skills --skill langchain-dependencies --agent claude-code

Installs into .claude/skills of the current project.

Files

The LangChain ecosystem is split into focused, independently-versioned packages. Understanding which packages you need — and their version constraints — prevents incompatibilities and keeps upgrades predictable.

Key principles:

  • LangChain 1.0 is the current LTS release. Always start new projects on 1.0+. LangChain 0.3 is legacy maintenance-only — do not use it for new work.
  • langchain-core is the shared foundation: always install it explicitly alongside any other package.
  • langchain-community (Python only) does NOT follow semantic versioning; pin it conservatively.
  • LangGraph vs Deep Agents: choose one orchestration approach based on your use case — they are alternatives, not a required stack (see Framework Choice below).
  • Provider integrations (model, vector store, tools) are installed separately so you only pull in what you use.

Environment Requirements

Sponsors

Details

Repository
github.com/langchain-ai/langchain-skills
Categories
AI & Agent Building, Python

More from langchain-ai/langchain-skills

All 15
1wshobson avatarembedding-strategieswshobson/agentsSelect and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizi11.8Kskills.sh installs
2github avatarworkiq-copilotgithub/awesome-copilotGuides the Copilot CLI on how to use the WorkIQ CLI/MCP server to query Microsoft 365 Copilot data (emails, meetings, docs, Teams, people) for live context, sum8.8Kskills.sh installs
3anthropics avataragent-developmentanthropics/claude-plugins-officialThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent ex7.9Kskills.sh installs
4affaan-m avataragent-architecture-auditaffaan-m/eccFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden5.8Kskills.sh installs
5ar9av avatarllm-wikiar9av/obsidian-wikiThe foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use 4.2Kskills.sh installs
6giuseppe-trisciuoglio avatarlangchain4j-mcp-server-patternsgiuseppe-trisciuoglio/developer-kitProvides LangChain4j patterns for implementing MCP (Model Context Protocol) servers, creating Java AI tools, exposing tool calling capabilities, and integrating3.8Kskills.sh installs