build-langchain-ts-app
Installation
SKILL.md
Build LangChain TypeScript App
Build LangChain.js v1 and LangGraph.js applications in TypeScript. Choose one implementation path before coding, keep the spine small, and load only the bundled references the chosen path needs.
When to use this skill
- Building a tool-calling assistant with
createAgentfromlangchainand Zod-typed tools. - Wiring a RAG pipeline with a
Documentloader, splitter, embeddings, vector store, and retriever. - Authoring a raw
StateGraphfrom@langchain/langgraphwith explicit state, routing, fan-out/fan-in, or interrupts. - Adding structured output via
withStructuredOutput,responseFormat,toolStrategy, orproviderStrategy. - Streaming tokens, events, or graph updates back to a UI/API and handling cancellation.
- Persisting agent/graph state with checkpointers, stores, or
thread_id-keyed memory. - Connecting MCP servers as namespaced tools through
@langchain/mcp-adapters. - Composing supervisor/router/handoff multi-agent or knowledge-domain agents in TypeScript.
Do not use this skill when: