Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 86
  • 1.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-fundamentals

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install langgraph-fundamentals in Claude Code

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

A

No 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 →

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.

langgraph-fundamentals Install

Add to stack

Loading.