langchain
Skill424 starsChanged 3 months agoMITView on GitHub
Build agents with a prebuilt architecture and integrations for any model or tool. Use when creating tool-calling agents, switching model providers, or adding structured output.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- svngoku/coding-agents-skillstheir own version, first seen Aug 13, 2026
- Zephyrex21/claude-skills-vettedtheir own version, first seen Aug 9, 2026
- magnus919/agent-skillstheir own version, first seen Jul 21, 2026
- sordi-ai/skill-everythingtheir own version, first seen May 13, 2026
- dekoza/oh-my-sloptheir own version, first seen Mar 19, 2026
- Clay-HHK/claude-skillstheir own version, first seen Mar 5, 2026
Used with
Projects with it also use docker.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
akornmeierSkilldocker
Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- hoodini/ai-agents-skills★ 281same name
- magnus919/agent-skills★ 109same name
- sordi-ai/skill-everything★ 20same name
- svngoku/coding-agents-skills★ 11same name
- dekoza/oh-my-slop★ 4same name
- Makiya1202/ai-agents-skills★ 2same name
- Zephyrex21/claude-skills-vetted★ 2same name
- Clay-HHK/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/docs-style.mdcCursor rule
- add-docs-pageSkill
- docs-code-samplesSkill
- docs-editSkill
- docs-restructureSkill
- docs-reviewSkill
- docs-team-voiceSkill
- docs-tooling-notionSkill
- submit-integrationSkill
- update-integrations-prsSkill
- verify-against-sourceSkill
- langgraph-docsSkill
- write-timestampSkill
- pandas-patternsSkill
- deep-agentsSkill
- langgraphSkill
- langsmithSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use LangChain when you need to:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LangChain
LangChain is an open-source framework with a prebuilt agent architecture and integrations for any model or tool. Build agents and LLM-powered applications in under 10 lines of code, with integrations for OpenAI, Anthropic, Google, and hundreds more.
When to use
Use LangChain when you need to:
- Build tool-calling agents with
create_agent()and a prebuilt agent loop - Switch model providers without changing application code via
init_chat_model() - Add structured output to parse LLM responses into typed objects
- Integrate with any model or tool using LangChain's provider packages
- Use middleware for cross-cutting concerns like rate limiting and caching
When NOT to use
- For complex multi-step workflows with custom control flow, use LangGraph instead
- For a batteries-included agent with planning, subagents, and context management, use Deep Agents instead
- LangChain provides the core building blocks; LangGraph adds orchestration; Deep Agents adds high-level capabilities on top
Install
# Python
pip install -U langchain
# JavaScript/TypeScript
npm install langchain @langchain/coreInstall a provider integration:
# Python
pip install -U langchain-openai # or langchain-anthropic, langchain-google-genai
# JavaScript/TypeScript
npm install @langchain/openai # or @langchain/anthropic, @langchain/google-genaiQuick reference
Create an agent
from langchain.agents import create_agent
def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
agent = create_agent(
model="openai:gpt-5.5",
tools=[get_weather],
system_prompt="You are a helpful assistant",
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "What is the weather in SF?"}]}
)Initialize a chat model
from langchain.chat_models import init_chat_model
# Switch providers by changing the string
model = init_chat_model("openai:gpt-5.5")
model = init_chat_model("anthropic:claude-opus-4-8")
model = init_chat_model("google_genai:gemini-3.6-flash")Define a tool
from langchain.tools import tool
@tool
def search(query: str) -> str:
"""Search the web for information."""
return "search results"Gotchas
- Snake_case tool names—Tool function names must be valid Python identifiers. Use
get_weather, notget-weather. - Reserved parameters—Do not name tool parameters
type,name, ordescriptionas these conflict with the tool schema. - Provider packages—Models live in separate packages (e.g.,
langchain-openai). The baselangchainpackage does not include providers. - Model string format—Use
"provider:model-name"format withinit_chat_model()(e.g.,"openai:gpt-5.5").
Key documentation
- Overview—What LangChain is and how to get started
- Quickstart—Build your first agent
- Agents—Prebuilt agent architecture
- Models—Chat models and provider integrations
- Tools—Define and use tools
- Structured output—Parse LLM responses into typed objects
- MCP integration—Use Model Context Protocol servers as tools
API reference
For SDK class and method details, use the LangChain API Reference site:
- Browse:
https://reference.langchain.com/python/langchain-core - MCP server:
https://reference.langchain.com/mcp
Related skills
- langgraph—Low-level orchestration for stateful, durable agent workflows
- deep-agents—Batteries-included agent harness built on LangChain
- langsmith—Trace, evaluate, and deploy your LangChain agents
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

