langchain

langchain is a skill for Claude Code, Codex from svngoku/coding-agents-skills. It costs 139 tokens per session (4,427 once invoked), scanned A, original, MIT.

A guide to building AI agents and related applications with LangChain and LangGraph, frameworks for connecting language models to tools, data, and multi-step workflows.

In plain words
What is it for?
Building agents, tool integrations, MCP connections, retrieval systems, teams of agents, and other language-model applications in Python or TypeScript.
Why use it?
It supplies patterns for tool use, memory, retrieval, model interactions, and agent workflows instead of requiring each connection to be designed from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Building agents, tool integrations, MCP connections, retrieval systems, teams of agents, and other language-model applications in Python or TypeScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/svngoku/coding-agents-skills/langchain
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add svngoku/coding-agents-skills --skill langchain
Clone the repo
git clone --depth 1 https://github.com/svngoku/coding-agents-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langchain

README.md
[![agentmods](https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/langchain/github.svg)](https://agentmods.dev/skills/svngoku/coding-agents-skills/langchain)
Your own site
<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/langchain"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/langchain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langchain

Your own site · 80×15
<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/langchain"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/langchain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00139 $0.04427
Opus 5.5 $0.00056 $0.01771
Sonnet 5.5 $0.00028 $0.00885
Haiku 4.5 $0.00014 $0.00443

Measured 6d ago against content hash f276cdd54cee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

langchain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (graders/check.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/langchain/SKILL.md · 401 lines

How it starts

The opening of the file, as written. The whole thing — 401 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LangChain Skill

Build production AI agents with LangChain v1 (create_agent on top of LangGraph), its middleware system, built-in MCP support and the LangGraph runtime. Verified against langchain 1.4.6, langchain-core 1.6, langgraph 1.2 and deepagents 0.7 (Python 3.10+; deepagents needs 3.11+).

Quick Reference

Topic File
Built-in and custom middleware references/middleware.md
LangGraph graphs, persistence, durability, streaming references/langgraph.md
Subagents, handoffs, skills, routers references/multi-agent.md
Deep Agents harness and Managed Deep Agents (mda) references/deep-agents.md
RAG, embeddings, vector stores, retrievers references/retrieval.md

Installation

pip install -U langchain langgraph langchain-anthropic   # or langchain-openai, langchain-google-genai, ...
pip install -U "langchain[mcp]"                          # built-in MCP client (langchain.mcp, beta)
pip install -U deepagents                                # optional: planning + filesystem + subagents harness
pip install -U langchain-classic                         # only for legacy chains/retrievers

Quick Agent

from langchain.agents import create_agent

def get_weather(city: str) -> str:
    """Get the current weather for a city."""
    return f"Sunny in {city}!"

agent = create_agent(
    model="anthropic:claude-sonnet-5",
    tools=[get_weather],
    system_prompt="You are a helpful assistant.",
)

result = agent.invoke({"messages": [{"role": "user", "content": "Weather in SF?"}]})
print(result["messages"][-1].content)

create_agent returns a compiled LangGraph graph, so invoke, stream, stream_events, checkpointers, stores and interrupts all work on it. Plain functions with type hints and a docstring are accepted as tools; use @tool when you need a custom name, schema or ToolRuntime.

Read the full file on GitHub · 401 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +1 lines · +17 tokens per session f276cdd54cee
  2. 7d ago Changed · +133 lines · +73 tokens per session f7c03a7d5004
  3. 1mo ago First seen · 267 lines · 49 tokens per session scan A e054c4785b34

Subscribe to this mod's changes

langchain is a skill published in the GitHub repository svngoku/coding-agents-skills (12 stars, last pushed 3d ago), licensed MIT. It adds 139 tokens to every session and 4,427 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

iflytek-image-understanding

An image-analysis tool that describes pictures and answers questions about what they contain. It uses an AI vision service, which interprets visual content rather than only reading text files.

iflytek/iFly-Skills · 61 tokens

docker-model

Use this skill when running local AI models with Docker Model Runner — the docker model CLI — e.g. "run an LLM locally with Docker", "pull a model from the ai/ namespace", "connect my app to a local model", "use a local model as backend for the Drupal AI module", or when wiring the models: top-level element into a…

siva01c/claude-plugins · 97 tokens

image-prompt-builder-nl

Craft high-quality natural-language image prompts for any modern text-to-image or image-edit model that accepts flowing English. Trigger when the user wants help writing, rewriting, improving, or translating an English natural-language image prompt — including "write me an image prompt", "improve this image prompt"…

jim60105/copilot-prompt · 125 tokens

ai-model-wechat

A guide to calling AI text models from a WeChat Mini Program, a small app that runs inside WeChat, using CloudBase. It covers generated text and streamed responses, where text arrives piece by piece, through callback functions.

sutchan/Agent-Skills-Hub · 254 tokens

ai-model-nodejs

Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express, Koa, NestJS, serverless APIs, scheduled jobs, LLM proxies. Only SDK supporting image generation (ai.createImageModel + generateImage). Text models via ai.createModel with groups cloudbase, hunyuan-exp, or…

sutchan/Agent-Skills-Hub · 230 tokens

ai-model-web

A guide for adding AI model calls to browser-based web applications through the CloudBase JavaScript library. It covers generating text and streaming text into interfaces such as React, Vue, and dashboard apps.

sutchan/Agent-Skills-Hub · 247 tokens