Skills for Real Engineers. Straight from my .agents directory.
langgraph-fundamentals
Agent skill fromlangchain-ai/langchain-skills
INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling.
How to install langgraph-fundamentals
npx skills add langchain-ai/langchain-skills# or add only this skill to Claude Code: copy the folder
config/skills/langgraph-fundamentals/
# into
~/.claude/skills/langgraph-fundamentals/ (all projects)
.claude/skills/langgraph-fundamentals/ (one project)
1<overview>2LangGraph models agent workflows as **directed graphs**:34- **StateGraph**: Main class for building stateful graphs5- **Nodes**: Functions that perform work and update state6- **Edges**: Define execution order (static or conditional)7- **START/END**: Special nodes marking entry and exit points8- **State with Reducers**: Control how state updates are merged910Graphs must be `compile()`d before execution.11</overview>1213<design-methodology>1415### Designing a LangGraph application1617Follow these 5 steps when building a new graph:18191. **Map out discrete steps** — sketch a flowchart of your workflow. Each step becomes a node.202. **Identify what each step does** — categorize nodes: LLM step, data step, action step, or user input step. For each, determine static context (prompt), dynamic context (from state), retry strategy, and desired outcome.213. **Design your state** — state is shared memory for all nodes. Store raw data, format prompts on-demand inside nodes.224. **Build your nodes** — implement each step as a function that takes state and returns partial updates.235. **Wire it together** — connect nodes with edges, add conditional routing, compile with a checkpointer if needed.2425</design-methodology>2627<when-to-use-langgraph>2829| Use LangGraph When | Use Alternatives When |30|-------------------|----------------------|31| Need fine-grained control over agent orchestration | Quick prototyping → LangChain agents |32…
Excerpt shown under the repository's MIT license.
More skills in langchain-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
