Skip to content

Python guide for building LLM apps with LangChain and LangGraph, covering chains, RAG, and agents.

CCM score
56 of 100
skills.sh installs
172
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers LCEL pipe-composed chains, RAG pipelines with a vector store retriever, and LangGraph agent graphs with tool nodes
  • Includes examples for structured output via Pydantic models, session memory with message history, and token or event streaming
  • Shows enabling LangSmith tracing through environment variables so all chain invocations are recorded automatically
  • Designed for Python developers building retrieval-augmented or multi-step agent workflows with Anthropic or OpenAI models

Install

$ npx -y skills add hoodini/ai-agents-skills --skill langchain -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LangChain & LangGraph

Build sophisticated LLM applications with composable chains and agent graphs.

Quick Start

pip install langchain langchain-openai langchain-anthropic langgraph
from langchain_anthropic import ChatAnthropic
from langchain_core.prompts import ChatPromptTemplate

# Simple chain
llm = ChatAnthropic(model="claude-3-sonnet-20240229")
prompt = ChatPromptTemplate.from_template("Explain {topic} in simple terms.")
chain = prompt | llm

response = chain.invoke({"topic": "quantum computing"})

LCEL (LangChain Expression Language)

Compose chains with the pipe operator:

from langchain_core.output_parsers import StrOutputParser
from langchain_core.runnables import RunnablePassthrough

# Chain with parsing
chain = (
    {"topic": RunnablePassthrough()}
    | prompt
    | llm
    | StrOutputParser()
)

result = chain.invoke("machine learning")

RAG Pipeline

from langchain_openai import OpenAIEmbeddings
from langchain_community.vectorstores import Chroma
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnablePassthrough

Details

Repository
github.com/hoodini/ai-agents-skills
Categories
AI Agents & LLM Apps, Python
First seen
Jun 3, 2026

Questions

What does the langchain skill help me build?

The langchain skill helps you build LLM applications with LangChain and LangGraph, including RAG pipelines, agent workflows, chains, and complex LLM orchestration. Its SKILL.md covers LCEL pipe-style chains, retrieval over a vector store, LangGraph agents with tools, structured output, memory, streaming, and LangSmith tracing.

How do I install the langchain skill?

Run npx -y skills add hoodini/ai-agents-skills --skill langchain -y in your project. After that, the agent can use the skill to write LangChain and LangGraph code for RAG and agent work.

What do I need to use the langchain skill?

The skill's quick start installs the Python packages langchain, langchain-openai, langchain-anthropic and langgraph with pip. Its examples call Anthropic and OpenAI models, so you need access to those model providers, and the LangSmith tracing example needs a LangSmith API key.

Where does the langchain skill rank in its category?

The langchain skill sits in the AI Agents & LLM Apps category on Claude Marketplaces, alongside skills such as microsoft-foundry, azure-ai and the google-agents-cli skills. It stands out for focusing on LangChain's chains and LangGraph agent graphs for retrieval-augmented generation.

More from hoodini/ai-agents-skills

All 35

Similar to Langchain

More AI Agents & LLM Apps