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

  1. Clarify task type (RAG, agent, chain, tool-use) and LLM provider.
  2. Select LCEL composition pattern (sequence, parallel, streaming, branching).
  3. Design retriever strategy (base, multi-query, ensemble, compression, parent-document).
  4. Choose agent type (tool-calling, ReAct, custom) and define tools with validated schemas.
  5. Configure memory (conversation buffer, summary, window, entity, token-bounded).
  6. Set up document pipeline (loaders, splitters, transformers).
  7. Wire streaming and event handlers.
  8. Add production guardrails: retry, circuit breaker, cost tracking, observability.
Installs
7
GitHub Stars
21
First Seen
May 30, 2026
ai-langchain-patterns — j4flmao/agent-skills