langchain-python-quickstart — Claude Code skill
Builds a minimal local LangChain agent in Python from the current quickstart. Use it to try an agent in a separate project directory.
npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a claude-codeWhat langchain-python-quickstart does
The skill checks the current LangChain Python quickstart through Docs MCP or HTTP, then builds the weather-agent example with create_agent. It asks for a provider and model in provider:model form, so the setup is not tied to one model service.
Work happens in a new directory such as langchain-agent/ rather than the open project. The skill creates a gitignored .env for the provider API key. Entering that key in .env yourself is the right call instead of posting it in chat.
When the base install needs more, it installs the package for the selected provider. It runs the example, shows its output, and stops. LangSmith and Tavily stay out unless you ask for them.
What it helps with
- scaffold a local LangChain agent in Python
- select a provider and model string
- build the weather-agent example with
create_agent - keep a provider API key in
.env
Example prompts for the agent
- Create a minimal local LangChain agent in a new directory.
- Build the LangChain weather agent with
anthropic:claude-sonnet-5. - Run the LangChain Python quickstart and show the output.
How to install langchain-python-quickstart
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a claude-code2Manually: put the files in place
~/.claude/skills/langchain-python-quickstart/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/langchain-python-quickstart/
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a codex2Manually: put the files in place
.agents/skills/langchain-python-quickstart/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a cursor2Manually: put the files in place
.cursor/skills/langchain-python-quickstart/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install langchain-ai/langchain-skills langchain-python-quickstart2Manually: put the files in place
.github/skills/langchain-python-quickstart/SKILL.md1Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a gemini-cli2Platform CLI
gemini skills install https://github.com/langchain-ai/langchain-skills --path config/skills/langchain-python-quickstartManually: put the files in place
.devin/skills/langchain-python-quickstart/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add langchain-ai/langchain-skills --skill langchain-python-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-python-quickstart
How do I install langchain-python-quickstart in Claude Code?
Run npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a claude-code, then run npx skills add langchain-ai/langchain-skills --skill langchain-python-quickstart -a claude-code again. The skill file is at ~/.claude/skills/langchain-python-quickstart/SKILL.md.
What does langchain-python-quickstart do?
It scaffolds a minimal local LangChain agent in Python from the current official quickstart. The example uses a weather agent and create_agent.
What does the agent setup require?
Choose a provider and model using a provider:model string, then add that provider's API key to .env. The skill installs the provider package when the base LangChain install needs it.
Source text
SKILL.md · MIT
--- name: langchain-python-quickstart description: "Scaffold a minimal local LangChain agent in Python by following the official quickstart. Use when the user wants to quickly build or try a LangChain agent locally." --- # LangChain Python quickstart Follow the live docs — do not invent an alternate API from memory: **https://docs.langchain.com/oss/python/langchain/quickstart** Fetch that page (Docs MCP or HTTP) and implement what it shows (weather agent + `create_agent`). ## 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