# agents-langchain

This skill guides LangChain projects with agents, chains, tool calls, and RAG. Use it when building chatbots, document Q&A, or autonomous workflows.

- skill · `type=skill` · Claude Code · 968 installs
- Author: Orchestra Research
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-research/agents-langchain
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/agents-langchain

## What it does

agents-langchain covers the main pieces of LangChain applications: model adapters for OpenAI, Anthropic, and Google, prompt chains, ReAct-style agents, tool execution, and conversation memory. It also walks through retrieval-augmented generation with document loading, embeddings, and a vector store.

The included Python examples show model calls, agent setup, multi-turn memory, and a RAG pipeline. The base install uses `langchain` with Python 3.10+; provider-specific examples add `langchain-openai` or `langchain-anthropic`. The RAG example uses `langchain-community`, `langchain-chroma`, and OpenAI embeddings.

The OpenAI RAG path requires `langchain-openai` and access to OpenAI, while the vector store example relies on `Chroma`. That dependency choice matters before you copy the pipeline into a project.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill ai-research/agents-langchain
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill agents-langchain -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/agents-langchain/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/agents-langchain/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/agents-langchain/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/agents-langchain/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates agents-langchain
```

2. **Manually: put the files in place**
- File: `.github/skills/agents-langchain/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/agents-langchain
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agents-langchain/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-research/agents-langchain

## When to use it
- build an agent that calls tools
- switch between OpenAI, Anthropic, and Google models
- keep conversation history across turns
- assemble a document retrieval pipeline
- return source documents with an answer

## Example prompts
- Create a Python ReAct agent with tools for web search and calculations.
- Build a RAG pipeline that loads documents, splits them, and stores them in `Chroma`.
- Add conversation memory and keep the message history across requests.

## Similar
- [langchain-rag](https://affpapa.org/en/nevibecode/skills/langchain-rag.md) — skill · 17500 installs
- [langchain-development](https://affpapa.org/en/nevibecode/skills/langchain-development.md) — skill · 681 installs
- [langchain-orchestration](https://affpapa.org/en/nevibecode/skills/langchain-orchestration.md) — skill · 451 installs
- [langchain-python](https://affpapa.org/en/nevibecode/rules/langchain-python.md) — rule · ★ 40451
- [n8n-agents](https://affpapa.org/en/nevibecode/skills/n8n-agents.md) — skill · 1900 installs
- [langchain-fundamentals](https://affpapa.org/en/nevibecode/skills/langchain-fundamentals.md) — skill · 17400 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
