langgraph-routing
LangGraph conditional routing patterns. Use when implementing dynamic routing based on state, creating branching workflows, or building retry loops with conditional edges.
npx skills add majiayu000/claude-skill-registry --skill langgraph-routing --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LangGraph Conditional Routing Route workflow execution dynamically based on state. ## When to Use - Dynamic branching based on results - Retry loops with backoff - Quality gates with pass/fail paths - Multi-path workflows ## Basic Conditional Edge ```python from langgraph.graph import StateGraph, END def route_based_on_quality(state: WorkflowState) -> str: """Decide next step based on quality score.""" if state["quality_score"] >= 0.8: return "publish" elif state["retry_count"] < 3: return "retry" else: return "manual_review" workflow.add_conditional_edges( "quality_check", route_based_on_quality, { "publish": "publish_node", "retry": "generator", "manual_review": "review_queue" } ) ``` ## Quality Gate Pattern ```python def route_after_quality_gate(state: AnalysisState) -> str: """Route based on quality gate result.""" if state["quality_passed"]: return "compress_findings" elif state["retry_count"] < 2: return "supervisor" # Retry else: return END # Return partial results workflow.add_conditional_edges( "quality_gate", route_after_quality_gate, { "compress_findings": "compress_findings", "supervisor": "supervisor", END: END } ) ``` ## Retry Loop Pattern ```python def llm_call_wit
- When to Use
- Basic Conditional Edge
- Quality Gate Pattern
- Retry Loop Pattern
- Routing Patterns
- State-Based Router
- Key Decisions
- Common Mistakes
- Related Skills
- Capability Details
- conditional-routing
- semantic-routing
- router-template
What does the langgraph-routing skill do?
LangGraph conditional routing patterns. Use when implementing dynamic routing based on state, creating branching workflows, or building retry loops with conditional edges.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langgraph-routing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
