langchain
Skill4 starsChanged 9 months agoUnlicenseView on GitHub
Use when working with the Python LangChain ecosystem — `langchain`, `langchain-core`, provider packages, `langgraph`, `langsmith`, or migration off legacy imports. Triggers on: "LangChain", "LangGraph", "LangSmith", `init_chat_model` / `create_agent` / `StateGraph`, RAG or retrieval wiring, a LangChain import error or package-confusion question, or an old tutorial whose imports no longer exist. Not for LangChain.js / JS/TS.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- langchain-ai/docstheir own version, first seen Sep 15, 2026
- 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
- Clay-HHK/claude-skillstheir own version, first seen Mar 5, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- langchain-ai/docs★ 424same name
- hoodini/ai-agents-skills★ 281same name
- magnus919/agent-skills★ 109same name
- sordi-ai/skill-everything★ 20same name
- svngoku/coding-agents-skills★ 11same 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 repository70 other files it gives its agents.
- agent/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- git-guardrails-claude-codeSkill
- setup-project-skillsSkill
- skill-creatorSkill
- websearchSkill
- writing-great-skillsSkill
- codebase-designSkill
- construction-craftSkill
- critical-partnerSkill
- data-intensiveSkill
- diagnosing-bugsSkill
- django-disciplineSkill
- docker-disciplineSkill
- documentation-lifecycleSkill
- domain-driven-designSkill
- enterprise-patternsSkill
- git-disciplineSkill
- legacy-codeSkill
- production-readinessSkill
- refactoring-passSkill
- resolving-merge-conflictsSkill
- tddSkill
- testing-workflowSkill
- ui-design-directionSkill
- webapp-testingSkill
- django-allauthSkill
- djangoSkill
- dockerSkill
- drfSkill
- full-calendarSkill
- giteaSkill
- htmxSkill
- http-status-codesSkill
- hyperscriptSkill
- litestarSkill
- prestashopSkill
- pykeSkill
- python-asyncSkill
- tablerSkill
- cleanroom-rewriteSkill
- councilSkill
- court-jesterSkill
- domain-modelingSkill
- fix-prSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- humanifySkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- ponytail-auditSkill
- ponytail-debtSkill
- prototypeSkill
- qaSkill
- researchSkill
- restore-test-pyramidSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use this skill for Python LangChain ecosystem work.
- Very specific: line 19
If the user is working on LangChain.js / LangGraph.js / JS/TS, do not reuse Python imports or package advice from this skill.
- Distinctive: line 74
If the answer depends on current package generation, say so plainly instead of pretending old blog posts are current.
“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 Python Ecosystem Reference
Use this skill for Python LangChain ecosystem work. It covers package boundaries, model initialization, LCEL/runnables, agent construction, retrieval wiring, LangGraph stateful workflows, LangSmith tracing/evals, and migration away from legacy imports. Read only the reference files needed for the task.
If the user is working on LangChain.js / LangGraph.js / JS/TS, do not reuse Python imports or package advice from this skill. Go to the JS/TS docs instead.
Critical Rules
- Do not treat the ecosystem as one package —
langchain,langchain-core, provider integrations,langgraph,langsmith, andlangchain-classichave different roles. - Check installed versions before trusting import advice — run
pip show langchain langchain-core langgraph(or read the lockfile) first; the 0.x and 1.x generations moved imports, and advice for the wrong generation produces confident-looking broken code. langchain-coreowns abstractions, not integrations — Its own source says: "No third-party integrations are defined here." Do not invent provider imports from core.- Provider integrations live in separate packages — Examples verified from source:
langchain-openai,langchain-anthropic,langchain-chroma,langchain-qdrant. - Prefer main
langchainfor current agent/app work — Thelangchain-classicpackage is explicitly for legacy chains, community re-exports, indexing API, deprecated functionality, and more. - Use
create_agentfor standard tool-loop agents — LangChain recommends LangGraph only when you need heavier customization, deterministic + agentic orchestration, or carefully controlled state/latency. - Use LangGraph when durability or human intervention is required —
StateGraphis the low-level orchestration framework for long-running, stateful workflows. StateGraphmust be compiled before execution — The source explicitly says the builder cannot execute until.compile()is called.InMemorySaveris not a production persistence strategy — LangGraph documents it for debugging or testing and recommends a durable saver such as Postgres for production.- LangSmith is observability/evals, not runtime orchestration — Use it for tracing, datasets, benchmarking, pytest-based evaluation, and monitoring. Tracing ships prompts, completions, and metadata to LangSmith's backend and is billed per trace — flag the privacy and cost implications instead of enabling it silently.
- Do not guess provider params or model IDs —
init_chat_model()requires the provider package to be installed and recommends exact model IDs from provider docs. - Treat
configurable_fields="any"as a security risk — The source explicitly warns that runtime config can alterapi_key,base_url, and other sensitive fields. - Legacy snippets need migration review before reuse — Old examples may point at
langchain-classic,langchain_community, deprecated LangGraph types, or outdated imports.
When Not To Use This Skill
- LangChain.js / LangGraph.js — This skill is Python-only.
- Generic provider SDK work without LangChain — Use provider-native docs when the code does not use LangChain abstractions.
- Pure vector database administration — Cluster ops, index tuning, or deployment for Qdrant/Chroma/etc. are out of scope unless the task is specifically LangChain integration wiring.
- Framework lifecycle questions — Pair the relevant framework skill when request lifetimes, background jobs, or server startup/shutdown behavior belong to Django, Litestar, FastAPI, or another framework.
- Async correctness itself — LangChain's
ainvoke/astreamsurface is covered here, but event-loop ownership, cancellation, and task-group design belong to thepython-asyncskill.
Reference Map
| File | Domain | Use For |
references/REFERENCE.md | Index | Cross-file routing and reading order |
references/package-map.md | Package ownership | Which pip package owns which surface |
references/models-prompts-runnables.md | Models & LCEL | init_chat_model, provider inference, configurable models, sync/async Runnable composition |
references/agents-tools-structured-output.md | Agents | create_agent, tool loop, middleware, structured output |
references/retrieval-integrations.md | RAG wiring | text splitters, provider packages, vector store boundaries |
references/langgraph-stateful-workflows.md | Stateful orchestration | StateGraph, MessagesState, checkpointers, interrupts, prebuilt nodes |
references/langsmith-observability-evals.md | Observability | tracing, @traceable, wrappers, datasets, evals, pytest plugin |
references/migration-classic-gotchas.md | Legacy cleanup | langchain-classic, moved/deprecated APIs, stale blog-post imports |
Task Routing
Identify the owning package first, open the single best reference, and add a second only when the task crosses a real boundary (such as create_agent + LangGraph persistence, or RAG + provider packages).
- Import error, install question, package confusion ->
references/package-map.md - Model initialization, provider string, configurable model, LCEL pipeline, sync-vs-async calls ->
references/models-prompts-runnables.md - Standard tool-calling agent, middleware, structured output ->
references/agents-tools-structured-output.md - RAG / retrieval / chunking / vector store wiring ->
references/retrieval-integrations.md - Long-running workflow, persistence, interrupts, subgraphs, prebuilt nodes ->
references/langgraph-stateful-workflows.md - Tracing, datasets, benchmark evals, pytest integration ->
references/langsmith-observability-evals.md - Old tutorial,
langchain-classic, deprecated imports, migration review ->references/migration-classic-gotchas.md
Output Expectations
- Name the reference files used and the owning package(s) explicitly, including any separate pip packages that must be installed.
- State whether the task belongs in plain LangChain, LangGraph, or LangSmith.
- If the answer depends on current package generation, say so plainly instead of pretending old blog posts are current.
- State the minimum verification step: import smoke test, runnable/agent smoke test, LangGraph checkpoint test, or LangSmith trace/eval smoke test.
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.

