Agent Skills › langchain-ai/langchain-skills › langchain-typescript-quickstart

langchain-typescript-quickstart

GitHub

指导用户在本地使用 TypeScript 快速搭建最小化 LangChain Agent。通过官方文档获取代码,引导用户选择模型提供商并配置环境变量,创建独立目录完成初始化、安装依赖及运行示例,实现模型无关的 Agent 快速验证。

config/skills/langchain-typescript-quickstart/SKILL.md langchain-ai/langchain-skills

Trigger Scenarios

想要快速尝试或构建本地 LangChain Agent 需要基于官方文档搭建 TypeScript AI 应用脚手架

Install

npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -g -y
More Options

Non-standard path

npx skills add https://github.com/langchain-ai/langchain-skills/tree/main/config/skills/langchain-typescript-quickstart -g -y

Use without installing

npx skills use langchain-ai/langchain-skills@langchain-typescript-quickstart

指定 Agent (Claude Code)

npx skills add langchain-ai/langchain-skills --skill langchain-typescript-quickstart -a claude-code -g -y

安装 repo 全部 skill

npx skills add langchain-ai/langchain-skills --all -g -y

预览 repo 内 skill

npx skills add langchain-ai/langchain-skills --list

SKILL.md

Frontmatter
{
    "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.

Version History

  • f3ea282 Current 2026-08-02 21:50

Same Skill Collection

config/skills/deep-agents-core/SKILL.md
config/skills/deep-agents-memory/SKILL.md
config/skills/deep-agents-orchestration/SKILL.md
config/skills/deepagents-python-quickstart/SKILL.md
config/skills/deepagents-typescript-quickstart/SKILL.md
config/skills/ecosystem-primer/SKILL.md
config/skills/eval-engineering/SKILL.md
config/skills/langchain-dependencies/SKILL.md
config/skills/langchain-fundamentals/SKILL.md
config/skills/langchain-middleware/SKILL.md
config/skills/langchain-python-quickstart/SKILL.md
config/skills/langchain-rag/SKILL.md
config/skills/langgraph-cli/SKILL.md
config/skills/langgraph-decision-models/SKILL.md
config/skills/langgraph-fundamentals/SKILL.md
config/skills/langgraph-human-in-the-loop/SKILL.md
config/skills/langgraph-persistence/SKILL.md
config/skills/langgraph-python-quickstart/SKILL.md
config/skills/langgraph-typescript-quickstart/SKILL.md
config/skills/langsmith-online-eval-engineering/SKILL.md
config/skills/swarm/SKILL.md
config/skills/managed-deep-agents/SKILL.md

Metadata

Files
0
Version
126c384
Hash
4de20dcd
Indexed
2026-08-02 21:50

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-08 10:41
浙ICP备14020137号-1