langgraph-error-handling
Installation
SKILL.md
LangGraph Error Handling
Use This Skill For
- Adding
RetryPolicyto flaky nodes (API, DB, model/tool calls) - Designing LLM recovery loops (
Command+ error state + retry counters) - Adding human approval/escalation with
interrupt()and resume - Handling prebuilt
ToolNodefailures - Debugging transactional failure behavior in parallel supersteps
Strategy Selection
Use this order:
- Transient/infrastructure issue (
429, timeout,5xx, temporary DB lock) ->RetryPolicy - Recoverable by model/tool args correction -> store error in state and route back with
Command - Needs user approval or missing info ->
interrupt()+ resume - Unknown/programming bug -> let it bubble up and debug