---
name: graph-patterns
description: LangGraph workflow patterns including basic graphs, conditional routing, parallel execution, and subgraphs. Use when designing graph structure or workflow flow.
allowed-tools: Bash, Read, Write, Edit, Grep, Glob, WebFetch
---

# Graph Patterns

Skill for LangGraph workflow design patterns.

## Overview

Design patterns for:

- Linear workflows
- Conditional branching
- Parallel execution
- Nested subgraphs

## Use When

This skill is automatically invoked when:

- Designing workflow structure
- Adding conditional logic
- Implementing parallel nodes
- Creating reusable subgraphs

## Available Scripts

| Script                      | Description                  |
| --------------------------- | ---------------------------- |
| `scripts/init-langgraph.sh` | Initialize LangGraph project |

## Available Templates

| Template                   | Description         |
| -------------------------- | ------------------- |
| `templates/basic_graph.py` | Basic Python graph  |
| `templates/conditional.py` | Conditional routing |
