We earn commissions when you shop through the links below.
Scaffold a minimal local LangChain agent in TypeScript by following the official quickstart. Use when the user wants to quickly build or try a LangChain agent locally.
Getting started
Full instructionsInstall the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.
Instructions: SKILL.mdv1.0.0
LangChain TypeScript quickstart
Follow the live docs — do not invent an alternate API from memory:
https://docs.langchain.com/oss/javascript/langchain/quickstart
Fetch that page (Docs MCP or HTTP) and implement what it shows (weather agent + createAgent). Requires Node 22+.
Local setup constraints
Apply these on top of the quickstart (they keep setup minimal and model-agnostic):
-
Ask which provider/model to use. Showcase that LangChain is model-agnostic. Suggested prompt:
Which model should this agent use? Pass a
provider:modelstring — e.g.openai:gpt-5.5,anthropic:claude-sonnet-5,google-genai:gemini-2.5-flash-lite. Default if you're unsure:anthropic:claude-sonnet-5.Swap the quickstart's model string for their choice (or the default).
-
Create a new directory (e.g.
langchain-agent/) and do all work there — do not pollute the open project. -
Only secret: the provider API key in
.env(gitignored). No LangSmith / Tavily unless they ask. Prefer they edit.envthemselves — don't paste keys into chat. -
Install the provider package needed for their model if the quickstart's base install isn't enough.
-
Run the example, show output, then stop. Point to
langchain-fundamentalsfor next steps.
Explore more skills
Browse all- Langgraph Decision ModelsINVOKE THIS SKILL when routing a LangGraph agent with a decision model (TypeSafe Jev, SemIf) instead of an LLM, or when…
- Langchain Python QuickstartScaffold a minimal local LangChain agent in Python by following the official quickstart. Use when the user wants to…
- Langchain RagINVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders,…
- Langgraph PersistenceINVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or…
- Langchain MiddlewareINVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output. Covers…
- Managed Deep AgentsINVOKE THIS SKILL when building, testing, or deploying Managed Deep Agents in LangSmith. Walks a user through their…
Security
Reviews (0)
More from LangChain Skills
View source →Frequently asked questions about langchain-typescript-quickstart
What does the langchain-typescript-quickstart skill do?
Scaffold a minimal local LangChain agent in TypeScript by following the official quickstart. Use when the user wants to quickly build or try a LangChain agent locally. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the langchain-typescript-quickstart skill?
Run `npx @skills-hub-ai/cli install langchain-typescript-quickstart` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/langchain-typescript-quickstart/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does langchain-typescript-quickstart work with?
langchain-typescript-quickstart runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the langchain-typescript-quickstart skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use langchain-typescript-quickstart after installing it?
In Claude Code, type `/langchain-typescript-quickstart` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the langchain-typescript-quickstart skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/langchain-typescript-quickstart)<a href="https://skills-hub.ai/skills/langchain-typescript-quickstart"><img src="https://skills-hub.ai/api/badges/skill/langchain-typescript-quickstart" alt="Install on Skills Hub"></a>More options in the badge docs.