Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Teaches LangGraph 1.0 StateGraphs with typed state, reducers, conditional edges, recursion limits, avoiding silent termination traps.
68% 91%+23 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
I noticed that when replaying graph executions from earlier checkpoints for debugging, external REST API calls inside my node functions are executing again and causing duplicate side effects. How should graph node functions be implemented regarding external side effects?
The response specifies that node functions must be deterministic and free of side effects.
3 of 3 safety checks passed
A conditional edge whose router returns a string that is not in path_map halts
the graph without reaching END. No exception. No log line. The invocation just
returns whatever state existed at the halt point — pain-catalog entry P56, and
the single most common reason a newly wired StateGraph "almost works." The
sibling pain: Command(update={"messages": [msg]}) wipes the prior message
history because messages was declared as a plain list[AnyMessage] instead of
Annotated[list[AnyMessage], add_messages] — the reducer is what turns update
into "append" instead of "replace" (P18).
Two more gotchas this skill defuses:
GraphRecursionError: Recursion limit of 25 reached fires on graphs
that never loop, because recursion_limit counts supersteps (one step
per synchronous batch of node executions), not loop iterations. A planner
langgraph silently reads old PostgresSaver checkpoints
as empty state. Checkpoint schemas evolve; PostgresSaver.setup() must be
rerun after every version bump before production traffic.This skill walks through a minimal StateGraph end to end: a TypedDict state
with reducers on every list field, node functions that return partial-state
dicts, edges and defensive conditional edges with END as a fallback in
path_map, compilation with a checkpointer, recursion_limit sizing, and
invocation with an explicit thread_id. Pin: langgraph 1.0.x,
langchain-core 1.0.x. Pain-catalog anchors: P16, P18, P20, P55, P56.
pip install langgraph>=1.0,<2.0 langchain-core>=1.0,<2.0langchain-model-inference), or a pure-logic graph with no LLMpip install langgraph-checkpoint-postgres and a Postgres 14+ instanceTypedDict with reducers on list fieldsSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.