Skip to main content
skill CX Codex

langchain — Claude Code skill: LangChain and LangGraph

Hands Claude runnable patterns for LangChain and LangGraph: LCEL pipes, retrieval over Chroma, tool-using agent graphs, typed output and per-session memory.

no license ★ 301 updated 2026-10-23

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add hoodini/ai-agents-skills --skill langchain -a claude-code
Open on GitHub

What langchain does

The skill gives Claude short code samples for LLM apps. It walks through LCEL pipes, a retrieval chain backed by Chroma, a LangGraph state machine with tool nodes and conditional edges, output shaped by a pydantic model, chat history keyed by session, and token streaming. A resources list at the end points to the LangChain, LangGraph and LangSmith docs.

Install with npx skills add hoodini/ai-agents-skills --skill langchain -a claude-code, and the file lands at ~/.claude/skills/langchain/SKILL.md. Python packages come separately: pip install langchain langchain-openai langchain-anthropic langgraph.

LangSmith tracing needs LANGCHAIN_TRACING_V2, LANGCHAIN_API_KEY and LANGCHAIN_PROJECT set in the environment; no key means nothing gets reported. Two spots in the samples age badly: the model is pinned to claude-3-sonnet-20240229, and structured output imports from langchain_core.pydantic_v1 instead of pydantic. Check that import against the version you run.

What it helps with

  • wire a retrieval chain over Chroma with a retriever
  • model an agent as a LangGraph state machine with tools
  • get typed fields back from a model using a pydantic schema
  • keep chat history per session_id
  • trace chain runs in LangSmith

Example prompts for the agent

  • Build a LangChain RAG chain over Chroma that answers only from the retrieved context
  • Turn this into a LangGraph agent with search and calculator tools and a stop condition
  • Switch this call to streaming with astream and turn on LangSmith tracing

How to install langchain

1Skills CLI (Vercel)

npx skills add hoodini/ai-agents-skills --skill langchain -a claude-code

2Manually: put the files in place

~/.claude/skills/langchain/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/langchain/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about langchain

How do I install langchain in Claude Code?

Run npx skills add hoodini/ai-agents-skills --skill langchain -a claude-code. The skill file then sits at ~/.claude/skills/langchain/SKILL.md.

What does the langchain skill do?

It feeds Claude code samples for LangChain and LangGraph work: LCEL chains, Chroma retrieval, agent graphs with tools, structured output and session memory.

Does it install the Python packages too?

No, they are a separate step: pip install langchain langchain-openai langchain-anthropic langgraph. The samples import from those packages.

Similar skills

All skills for AI and ML →

From the same set34

The whole set →
vercel This skill guides Vercel project configuration and deployment, including Next.js apps and serverless or edge functions. Use it when a project needs deployment settings or Vercel integrations. CX Codex +1 ★ 301repo stars shabbat-times Pulls Shabbat times, holidays, the weekly parsha and Hebrew dates from Hebcal, so the agent stops guessing at query parameters. CX Codex +1 ★ 301repo stars ux-design-systems ux-design-systems guides the agent in structuring design tokens, building UI components, and configuring dark mode. Useful when creating a frontend component library. CX Codex +1 ★ 301repo stars yuv-reel-covers The yuv-reel-covers skill for Claude Code creates consistent Instagram Reel covers with a cutout subject, a headline behind it, and a short line in front for a video series. CX Codex +1 ★ 301repo stars aws-strands aws-strands — a skill for building Python agents with Strands Agents SDK, an open-source framework. CX Codex +1 ★ 301repo stars video-to-landing-page video-to-landing-page turns a video into a landing page whose pinned hero changes frames as visitors scroll. Use it to build a scroll-driven page from a clip. CX Codex +1 ★ 301repo stars nano-banana-pro nano-banana-pro — a skill that hands your agent working recipes for gemini-3-pro-image-preview: posters, infographics, product shots. CX Codex +1 ★ 301repo stars fal-ai Guides your agent in configuring fal.ai serverless models for image, video, and real-time generation. CX Codex +1 ★ 301repo stars

Project sponsors

Companies that keep this analytics open