langgraph-fundamentals
Skill by langchain-ai
Guides AI assistants when writing LangGraph code. It covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling for agent workflows.
Install langgraph-fundamentals
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.claude/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-fundamentals ~/.claude/skills/langgraph-fundamentalsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langchain-ai/langchain-skills /tmp/langchain-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/langchain-skills/config/skills/langgraph-fundamentals ~/.gemini/antigravity-cli/skills/langgraph-fundamentalsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install langgraph-fundamentals in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for writing LangGraph code. It covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling. LangGraph models agent workflows as directed graphs, where nodes perform work and update shared state, and graphs must be compiled before they run.
The skill walks through a five-step design method: map the steps, identify each step's role, design state, build nodes, and wire them together. It explains state reducers, edge types, and stream modes such as values, updates, messages, and custom. It is meant for developers building agent workflows with LangGraph in Python or TypeScript, and it points to separate reference files for each language.
Written from the project's SKILL.md and checked against it.
What it can do
- StateGraphBuilds stateful graphs with nodes, edges, and START and END markers.
- State reducersControls whether state fields overwrite values or append to lists.
- Conditional edgesRoutes execution to different nodes based on current state.
- CommandCombines a state update and a routing decision in one return value.
- Send APIFans out work to parallel worker nodes with dynamic inputs.
- Invoke and streamingRuns graphs to completion or streams values, updates, messages, or custom data.
- Error handling guidanceMatches transient, LLM-recoverable, user-fixable, and unexpected errors to handlers.
Try asking
- Design a LangGraph StateGraph with a router node and two worker nodes
- Use Command to update state and route to the next node in my graph
- Show me how to stream LangGraph updates and messages to a chat UI
Good to know
- Command only adds dynamic edges, so static edges still run alongside it.
- Graphs must be compiled before execution.
- Reducers are needed for accumulated list fields, otherwise the last write wins.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: config/skills/langgraph-fundamentals/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to langgraph-fundamentals
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
langgraph-fundamentals: common questions
What is LangGraph according to this skill?
The skill describes LangGraph as a way to model agent workflows as directed graphs with stateful nodes and edges.
Does the skill cover both Python and TypeScript?
It includes separate implementation references for Python and TypeScript, and it says to load only the one that matches the project language.
Which stream modes does the skill list?
It lists values, updates, messages, and custom. Values streams full state, updates streams state deltas, messages streams LLM tokens, and custom streams user-defined data.
How do I install langgraph-fundamentals?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is langgraph-fundamentals free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is langgraph-fundamentals safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to langgraph-fundamentals?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
