langchain-hello-world
Create a minimal working LangChain example. Use when starting a new LangChain integration, testing your setup, or learning basic LangChain patterns with chains and prompts. Trigger with phrases like "langchain hello world", "langchain example", "langchain quick start", "simple langchain code", "first langchain app".
npx skills add majiayu000/claude-skill-registry --skill langchain-hello-world-byteworthy-upstream --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LangChain Hello World ## Overview Minimal working example demonstrating core LangChain functionality with chains and prompts. ## Prerequisites - Completed `langchain-install-auth` setup - Valid LLM provider API credentials configured - Python 3.9+ or Node.js 18+ environment ready ## Instructions ### Step 1: Create Entry File Create a new file `hello_langchain.py` for your hello world example. ### Step 2: Import and Initialize ```python from langchain_openai import ChatOpenAI from langchain_core.prompts import ChatPromptTemplate llm = ChatOpenAI(model="gpt-4o-mini") ``` ### Step 3: Create Your First Chain ```python from langchain_core.output_parsers import StrOutputParser prompt = ChatPromptTemplate.from_messages([ ("system", "You are a helpful assistant."), ("user", "{input}") ]) chain = prompt | llm | StrOutputParser() response = chain.invoke({"input": "Hello, LangChain!"}) print(response) ``` ## Output - Working Python file with LangChain chain - Successful LLM response confirming connection - Console output showing: ``` Hello! I'm your LangChain-powered assistant. How can I help you today? ``` ## Error Handling | Error | Cause | Solution | |-------|-------|----------| | Import
- Overview
- Prerequisites
- Instructions
- Step 1: Create Entry File
- Step 2: Import and Initialize
- Step 3: Create Your First Chain
- Output
- Error Handling
- Examples
- Simple Chain (Python)
- With Memory (Python)
- TypeScript Example
- Resources
- Next Steps
What does the langchain-hello-world skill do?
Create a minimal working LangChain example. Use when starting a new LangChain integration, testing your setup, or learning basic LangChain patterns with chains and prompts. Trigger with phrases like "langchain hello world", "langchain example", "langchain quick start", "simple langchain code", "first langchain app".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langchain-hello-world-byteworthy-upstream --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
