langchain-typescript-quickstart — Claude Code skill: install & use
Builds a minimal LangChain agent in TypeScript following the official quickstart: a weather tool, createAgent, its own folder. Handy when you want to try LangChain locally.
npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a claude-codeWhat langchain-typescript-quickstart does
The skill walks through LangChain's official quickstart and builds a small TypeScript agent in a fresh directory — a weather tool plus createAgent. It fetches the quickstart page through Docs MCP or plain HTTP and follows what is on the page, rather than inventing an API from memory.
First it asks which provider and model you want, then swaps in a provider:model string. With no answer it suggests anthropic:claude-sonnet-5. You need Node 22+ and the provider key in .env, which gets gitignored. Edit that file yourself instead of pasting a key into the chat.
Everything happens in the new folder, so the project you have open stays untouched. The only secret is the API key; LangSmith and Tavily stay out unless you ask for them. Then it runs the example, shows the output and stops, pointing at langchain-fundamentals for next steps. One catch: a repo pinned to an older Node will not run this.
What it helps with
- scaffold a local LangChain agent in TypeScript from scratch
- follow the live quickstart instead of guessing the API
- switch the example to another provider and model
- keep the provider key in a gitignored
.env - run the example and see real output before extending it
Example prompts for the agent
- Scaffold a minimal LangChain agent in TypeScript in a new
langchain-agent/folder, following the official quickstart - Ask me which provider and model to use before you write any code
- Use
anthropic:claude-sonnet-5, run the example and show me the output
How to install langchain-typescript-quickstart
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a claude-code2Manually: put the files in place
~/.claude/skills/langchain-typescript-quickstart/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/langchain-typescript-quickstart/
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a codex2Manually: put the files in place
.agents/skills/langchain-typescript-quickstart/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a cursor2Manually: put the files in place
.cursor/skills/langchain-typescript-quickstart/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install langchain-ai/langchain-skills langchain-typescript-quickstart2Manually: put the files in place
.github/skills/langchain-typescript-quickstart/SKILL.md1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a gemini-cli2Platform CLI
gemini skills install https://github.com/langchain-ai/langchain-skills --path config/skills/langchain-typescript-quickstartManually: put the files in place
.devin/skills/langchain-typescript-quickstart/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about langchain-typescript-quickstart
How do I install langchain-typescript-quickstart in Claude Code?
Run npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a claude-code. The skill lands at ~/.claude/skills/langchain-typescript-quickstart/SKILL.md.
What does langchain-typescript-quickstart do?
It works through LangChain's official quickstart and creates a small TypeScript agent with a weather tool and createAgent in its own folder. It asks for your model and provider, so the example is not tied to one vendor.
What do I need before running it?
Node 22+ and an API key for the provider you pick, stored in .env. If the base install is not enough, the skill adds the provider package for your model.
Source text
SKILL.md · MIT
--- name: langchain-typescript-quickstart description: "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." --- # 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): 1. **Ask** which provider/model to use. Showcase that LangChain is model-agnostic. Suggested prompt: > Which model should this agent use? Pass a `provider:model` string — 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). 2. Create a **new** directory (e.g. `langchain-agent/`) and do all work there — do not pollute the open project. 3. Only secret: the provider API key in `.env` (gitignored). No LangSmith / Tavily unless they ask. Prefer they edit `.env` themselves — don't paste keys into chat. 4. Install the provider package needed for their model if the quickstart's base install isn't enough. 5. Run the example, show output, then stop. Point to `langchain-fundamentals` for next steps.
© langchain-ai · MIT · langchain-ai/langchain-skills