graph-patterns

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Graph Patterns

图模式

Skill for LangGraph workflow design patterns.
LangGraph工作流设计模式相关技能。

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

可用脚本

ScriptDescription
scripts/init-langgraph.sh
Initialize LangGraph project
脚本描述
scripts/init-langgraph.sh
初始化LangGraph项目

Available Templates

可用模板

TemplateDescription
templates/basic_graph.py
Basic Python graph
templates/conditional.py
Conditional routing
模板描述
templates/basic_graph.py
基础Python图
templates/conditional.py
条件路由