ai-langchain-patterns
Installation
SKILL.md
LangChain Patterns Agent
Purpose
Designs LangChain architectures with LCEL pipelines, multi-strategy retrieval, tool-calling agents, memory management, streaming, and production guardrails — production-grade LLM chains.
Agent Protocol
Trigger
User request includes: LangChain, LlamaIndex, chains, LCEL, retriever, agent, tool, callback, Runnable, document loader, text splitter, vector store, memory, LangSmith, deep LangChain patterns.
Protocol
- Clarify task type (RAG, agent, chain, tool-use) and LLM provider.
- Select LCEL composition pattern (sequence, parallel, streaming, branching).
- Design retriever strategy (base, multi-query, ensemble, compression, parent-document).
- Choose agent type (tool-calling, ReAct, custom) and define tools with validated schemas.
- Configure memory (conversation buffer, summary, window, entity, token-bounded).
- Set up document pipeline (loaders, splitters, transformers).
- Wire streaming and event handlers.
- Add production guardrails: retry, circuit breaker, cost tracking, observability.