langchain

langchain is a skill for Claude Code, Codex from ashish7802/awesome-api-skills. It costs 0 tokens per session (711 once invoked), scanned A, original, MIT.

Guidance for LangChain, a software framework for building applications that use language models. It provides common ways to connect models with tools such as vector databases and memory.

In plain words
What is it for?
Use it to build language-model applications, agents, and retrieval-augmented generation systems that search stored information before answering.
Why use it?
It helps developers combine language-model steps into larger applications instead of writing every connection from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build language-model applications, agents, and retrieval-augmented generation systems that search stored information before answering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashish7802/awesome-api-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 ashish7802/awesome-api-skills --skill langchain
Clone the repo
git clone --depth 1 https://github.com/ashish7802/awesome-api-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/ashish7802/awesome-api-skills/langchain/github.svg)](https://agentmods.dev/skills/ashish7802/awesome-api-skills/langchain)
Your own site
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/langchain"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-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/ashish7802/awesome-api-skills/langchain"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/langchain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 711 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.00711
Opus 5.5 $0.00000 $0.00284
Sonnet 5.5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

Measured 1mo ago against content hash 921c327ba7c1, 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/lcel.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 · 72 lines

How it starts

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

LangChain Skill

Framework for developing applications powered by language models.

Ecosystem Graph Preview

graph LR
  langchain["langchain"]:::core
  classDef core fill:#f9f,stroke:#333,stroke-width:4px;
  langchain -- "alternative to" --> llamaindex
  langchain -- "integrates with" --> openai
  langchain -- "integrates with" --> pinecone
  llamaindex -- "alternative to" --> langchain
  ollama -- "integrates with" --> langchain
  vllm -- "integrates with" --> langchain
  • llamaindex (Score: 0.93) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Can deploy to any, Similar network profile
  • ollama (Score: 0.83) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Similar network profile
  • vllm (Score: 0.82) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Similar network profile

Quick Start

LangChain provides standard interfaces for LLMs, Vector Stores, and Memory, allowing you to chain them together to build complex Agents and Retrieval-Augmented Generation (RAG) pipelines.

pip install langchain langchain-openai

Production Patterns

LCEL (LangChain Expression Language)

Avoid using massive legacy chain classes (like ConversationalRetrievalChain). Migrate entirely to LCEL, which uses Python pipe operators (|) to compose prompts, models, and output parsers declaratively. It automatically handles streaming and async logic.

Architecture & Scaling

Agents vs Chains

A Chain is a deterministic sequence of operations. An Agent utilizes an LLM's reasoning to dynamically determine which Tools to execute and in what order to solve a complex goal.

Error Recovery

LLMs frequently output invalid JSON when asked for structured data. Use LangChain's OutputFixingParser which automatically catches parsing errors and feeds the broken output back to the LLM with instructions to fix it.

Read the full file on GitHub · 72 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 72 lines · 0 tokens per session scan A 921c327ba7c1

Subscribe to this mod's changes

langchain is a skill published in the GitHub repository ashish7802/awesome-api-skills (13 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 711 tokens. 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-30.

Related

Other skills, from other repositories

claude-api-cost-optimization

Save 50-90% on Claude API costs with Batch API, Prompt Caching & Extended Thinking. Official techniques, verified.

Louishin/claude-api-cost-optimization · 33 tokens

wshobson-ml-pipeline-workflow

Skill "wshobson-ml-pipeline-workflow" from ItamarZand88/awesome-agent-conventions, covering ml pipeline workflow, when to use this skill, what this skill provides, core capabilities and reference documentation.

ItamarZand88/awesome-agent-conventions · 0 tokens

wshobson-rag-implementation

Skill "wshobson-rag-implementation" from ItamarZand88/awesome-agent-conventions, covering rag implementation, when to use this skill, core components, 1. vector databases and 2. embeddings.

ItamarZand88/awesome-agent-conventions · 0 tokens

wshobson-spark-optimization

Skill "wshobson-spark-optimization" from ItamarZand88/awesome-agent-conventions, covering apache spark optimization, when to use this skill, core concepts, 1. spark execution model and 2. key performance factors.

ItamarZand88/awesome-agent-conventions · 0 tokens

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

azure-ai-ml-py

Azure Machine Learning SDK v2 for Python. Use for ML workspaces, jobs, models, datasets, compute, and pipelines. Triggers: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets".

microsoft/skills · 59 tokens