Skip to content
Automation
Skill

/langgraph-routing

Conditional edge routing and state-based transitions for LangGraph workflows

From plugin
babysitter
1.8k200 skills3 agents21 commands1 MCP
Install
$ npx -y skills add a5c-ai/babysitter --skill langgraph-routing --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/langgraph-routing

Context preview

The summary Claude sees to decide when to auto-load this skill.

Conditional edge routing and state-based transitions for LangGraph workflows

SKILL.md

langgraph-routing.SKILL.md
name: langgraph-routing
description: Conditional edge routing and state-based transitions for LangGraph workflows
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:ai-agents-conversational]
  skillAreas: [skill-area:agentic-loops, skill-area:agent-planning-reasoning]
  roles: [role:ml-engineer, role:backend-engineer]
  workflows: [workflow:feature-development, workflow:ml-model-lifecycle]
  topics: [topic:event-driven-architecture]

LangGraph Routing Skill

Capabilities

  • Design conditional edge routing in LangGraph
  • Implement state-based transition logic
  • Create dynamic routing functions
  • Handle multi-path workflow branches
  • Implement router nodes for complex decisions
  • Design fallback and error routing paths

Target Processes

  • langgraph-workflow-design
  • plan-and-execute-agent

Implementation Details

Routing Patterns

1. **Conditional Edges**: add_conditional_edges with routing functions 2. **Router Nodes**: Dedicated nodes for routing decisions 3. **State-Based Routing**: Routing based on state values 4. **LLM-Based Routing**: Using LLM to determine next node

Configuration Options

  • Routing function definitions
  • Path mapping configurations
  • Default/fallback routes
  • Cycle detection settings
  • Max iteration limits

Best Practices

  • Clear routing logic documentation
  • Handle all possible states
  • Implement fallback paths
  • Avoid infinite cycles
  • Use descriptive edge names

Dependencies

  • langgraph
Read more
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

Get the whole plugin

Other skills on babysitter.