sameeh07/agent-skills/langchain
Claude Code and agent skill by sameeh07/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
LangChain skill for building LLM orchestration, agents, RAG pipelines, tools, memory, callbacks, and deployment.
Install
npx vskill@latest install sameeh07/agent-skills/langchainSKILL.md
The same SKILL.md was published earlier as sameeh07/agent-skills/langchain.
LangChain - Skill
Purpose
This skill teaches the agent project specific conventions and concise patterns for building AI agent workflows with LangChain in Python. Use this when implementing chatbots, RAG pipelines, tool-enabled agents, multi-agent flows, or deploying runnables.
When an AI assistant should apply this skill
- Editing Python code that imports langchain or langchain_core
- Adding or changing agents, tools, retrievers, memory, or chains
- Writing pipeline glue code for RAG and vector stores
- Creating deployable runnables or LangServe endpoints
Quick start
- Keep imports explicit and small. Prefer the Runnable interfaces for consistency. 2. Use typed small functions for tools. 3. Attach memory to chains or agents when conversation state is required. 4. Wrap external I/O behind tools to make tests deterministic.
Core concepts and cheat sheet
- LLMs and Runnables
- Treat LLMs, chains, and tools as Runnable objects with invoke, batch, and stream methods.
- Prefer explicit invocation:
result = llm.invoke("prompt").
- Prompts
- Use ChatPromptTemplate for chat style flows and Template for single prompt flows.
- Tools
- Define minimal pure functions and annotate with @tool where useful.
- Keep tool side effects explicit and isolated.
- Agents
- Create agents with the agent factory. Give the agent a short system style prompt and a curated tool list.
- Memory
- Use ConversationBufferMemory for simple chat history. Use summarized or vectorized memory for long lived contexts.
- Retrievers and RAG
- Index documents offline. At query time, call retriever.as_retriever or use RetrievalQA chain.
- Callbacks and middleware
- Use callbacks for logging, telemetry, and custom token handling. Use middleware to enforce policies or rate limits.
- Deployment
- Export runnables with LangServe or wrap them with FastAPI for custom routing.
Examples
1) Minimal chat chain with memory
2) Define a deterministic tool and register it with an agent
3) RAG pipeline pattern
4) Runnable batch and streaming
Middleware and callbacks pattern
- Implement a BaseCallbackHandler for custom logging or metrics.
- Create middleware to run before agent decision, for example to check quotas or to insert a human approval step.
Example callback handler
Deployment snippet
Guidelines and best practices
- Keep prompts short and test them with the same LLM configuration you will use in production.
- Unit test tools by mocking external calls. Keep side effects outside of agents when possible.
- Use retrievers with chunk overlap tuned to your retrieval needs.
- Prefer deterministic tool implementations for agent decisions that rely on exact operations.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/LangChain/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sameeh07/agent-skills/langchain)