[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CTMVV9KYJ8XD960EX92E43":3,"skill-same:01M6CTMVV9KYJ8XD960EX92E43":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6CTMVV9KYJ8XD960EX92E43","langgraph",null,"Expert in LangGraph - the production-grade framework for building stateful, multi-actor AI applications. Covers graph construction, state management, cycles and branches, persistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern.","Sam-06060\u002Fjarvis-assistant","Sam-06060","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F208600848?v=4","01M6CRKT7C7FXD21V6HXF293S0","Samson Frank Ganta","01M6CRKTBEKYFD8YX5Z1GT99EE",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Flanggraph\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"applications","human","pattern","branches","patterns","expert","management","loop","human-in-the-loop","react","Production","persistence","graph","apache","framework","state","state management","2026-11-10 10:12:30",false,"---\nname: langgraph\ndescription: Expert in LangGraph - the production-grade framework for building\n  stateful, multi-actor AI applications. Covers graph construction, state\n  management, cycles and branches, persistence with checkpointers,\n  human-in-the-loop patterns, and the ReAct agent pattern.\nrisk: unknown\nsource: vibeship-spawner-skills (Apache 2.0)\ndate_added: 2026-02-27\n---\n\n# LangGraph\n\nExpert in LangGraph - the production-grade framework for building stateful, multi-actor\nAI applications. Covers graph construction, state management, cycles and branches,\npersistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern.\nUsed in production at LinkedIn, Uber, and 400+ companies. This is LangChain's recommended\napproach for building agents.\n\n**Role**: LangGraph Agent Architect\n\nYou are an expert in building production-grade AI agents with LangGraph. You\nunderstand that agents need explicit structure - graphs make the flow visible\nand debuggable. You design state carefully, use reducers appropriately, and\nalways consider persistence for production. You know when cycles are needed\nand how to prevent infinite loops.\n\n### Expertise\n\n- Graph topology design\n- State schema patterns\n- Conditional branching\n- Persistence strategies\n- Human-in-the-loop\n- Tool integration\n- Error handling and recovery\n\n## Capabilities\n\n- Graph construction (StateGraph)\n- State management and reducers\n- Node and edge definitions\n- Conditional routing\n- Checkpointers and persistence\n- Human-in-the-loop patterns\n- Tool integration\n- Streaming and async execution\n\n## Prerequisites\n\n- 0: Python proficiency\n- 1: LLM API basics\n- 2: Async programming concepts\n- 3: Graph theory fundamentals\n- Required skills: Python 3.9+, langgraph package, LLM API access (OpenAI, Anthropic, etc.), Understanding of graph concepts\n\n## Scope\n\n- 0: Python-only (TypeScript in early stages)\n- 1: Learning curve for graph concepts\n- 2: State management complexity\n- 3: Debugging can be challenging\n\n## Ecosystem\n\n### Primary\n\n- LangGraph\n- LangChain\n- LangSmith (observability)\n\n### Common_integrations\n\n- OpenAI \u002F Anthropic \u002F Google\n- Tavily (search)\n- SQLite \u002F PostgreSQL (persistence)\n- Redis (state store)\n\n### Platforms\n\n- Python applications\n- FastAPI \u002F Flask backends\n- Cloud deployments\n\n## Patterns\n\n### Basic Agent Graph\n\nSimple ReAct-style agent with tools\n\n**When to use**: Single agent with tool calling\n\nfrom typing import Annotated, TypedDict\nfrom langgraph.graph import StateGraph, START, END\nfrom langgraph.graph.message import add_messages\nfrom langgraph.prebuilt import ToolNode\nfrom langchain_openai import ChatOpenAI\nfrom langchain_core.tools import tool\n\n# 1. Define State\nclass AgentState(TypedDict):\n    messages: Annotated[list, add_messages]\n    # add_messages reducer appends, doesn't overwrite\n\n# 2. Define Tools\n@tool\ndef search(query: str) -> str:\n    \"\"\"Search the web for information.\"\"\"\n    # Implementation here\n    return f\"Results for: {query}\"\n\n@tool\ndef calculator(expression: str) -> str:\n    \"\"\"Evaluate a math expression.\"\"\"\n    return str(eval(expression))\n\ntools = [search, calculator]\n\n# 3. Create LLM with tools\nllm = ChatOpenAI(model=\"gpt-4o\").bind_tools(tools)\n\n# 4. Define Nodes\ndef agent(state: AgentState) -> dict:\n    \"\"\"The agent node - calls LLM.\"\"\"\n    response = llm.invoke(state[\"messages\"])\n    return {\"messages\": [response]}\n\n# Tool node handles tool execution\ntool_node = ToolNode(tools)\n\n# 5. Define Routing\ndef should_continue(state: AgentState) -> str:\n    \"\"\"Route based on whether tools were called.\"\"\"\n    last_message = state[\"messages\"][-1]\n    if last_message.tool_calls:\n        return \"tools\"\n    return END\n\n# 6. Build Graph\ngraph = StateGraph(AgentState)\n\n# Add nodes\ngraph.add_node(\"agent\", agent)\ngraph.add_node(\"tools\", tool_node)\n\n# Add edges\ngraph.add_edge(START, \"agent\")\ngraph.add_conditional_edges(\"agent\", should_continue, [\"tools\", END])\ngraph.add_edge(\"tools\", \"agent\")  # Loop back\n\n# Compile\napp = graph.compile()\n\n# 7. Run\nresult = app.invoke({\n    \"messages\": [(\"user\", \"What is 25 * 4?\")]\n})\n\n### State with Reducers\n\nComplex state management with custom reducers\n\n**When to use**: Multiple agents updating shared state\n\nfrom typing import Annotated, TypedDict\nfrom operator import add\nfrom langgraph.graph import StateGraph\n\n# Custom reducer for merging dictionaries\ndef merge_dicts(left: dict, right: dict) -> dict:\n    return {**left, **right}\n\n# State with multiple reducers\nclass ResearchState(TypedDict):\n    # Messages append (don't overwrite)\n    messages: Annotated[list, add_messages]\n\n    # Research findings merge\n    findings: Annotated[dict, merge_dicts]\n\n    # Sources accumulate\n    sources: Annotated[list[str], add]\n\n    # Current step (overwrites - no reducer)\n    current_step: str\n\n    # Error count (custom reducer)\n    errors: Annotated[int, lambda a, b: a + b]\n\n# Nodes return partial state updates\ndef researcher(state: ResearchState) -> dict:\n    # Only return fields being updated\n    return {\n        \"findings\": {\"topic_a\": \"New finding\"},\n        \"sources\": [\"source1.com\"],\n        \"current_step\": \"researching\"\n    }\n\ndef writer(state: ResearchState) -> dict:\n    # Access accumulated state\n    all_findings = state[\"findings\"]\n    all_sources = state[\"sources\"]\n\n    return {\n        \"messages\": [(\"assistant\", f\"Report based on {len(all_sources)} sources\")],\n        \"current_step\": \"writing\"\n    }\n\n# Build graph\ngraph = StateGraph(ResearchState)\ngraph.add_node(\"researcher\", researcher)\ngraph.add_node(\"writer\", writer)\n# ... add edges\n\n### Conditional Branching\n\nRoute to different paths based on state\n\n**When to use**: Multiple possible workflows\n\nfrom langgraph.graph import StateGraph, START, END\n\nclass RouterState(TypedDict):\n    query: str\n    query_type: str\n    result: str\n\ndef classifier(state: RouterState) -> dict:\n    \"\"\"Classify the query type.\"\"\"\n    query = state[\"query\"].lower()\n    if \"code\" in query or \"program\" in query:\n        return {\"query_type\": \"coding\"}\n    elif \"search\" in query or \"find\" in query:\n        return {\"query_type\": \"search\"}\n    else:\n        return {\"query_type\": \"chat\"}\n\ndef coding_agent(state: RouterState) -> dict:\n    return {\"result\": \"Here's your code...\"}\n\ndef search_agent(state: RouterState) -> dict:\n    return {\"result\": \"Search results...\"}\n\ndef chat_agent(state: RouterState) -> dict:\n    return {\"result\": \"Let me help...\"}\n\n# Routing function\ndef route_query(state: RouterState) -> str:\n    \"\"\"Route to appropriate agent.\"\"\"\n    query_type = state[\"query_type\"]\n    return query_type  # Returns node name\n\n# Build graph\ngraph = StateGraph(RouterState)\n\ngraph.add_node(\"classifier\", classifier)\ngraph.add_node(\"coding\", coding_agent)\ngraph.add_node(\"search\", search_agent)\ngraph.add_node(\"chat\", chat_agent)\n\ngraph.add_edge(START, \"classifier\")\n\n# Conditional edges from classifier\ngraph.add_conditional_edges(\n    \"classifier\",\n    route_query,\n    {\n        \"coding\": \"coding\",\n        \"search\": \"search\",\n        \"chat\": \"chat\"\n    }\n)\n\n# All agents lead to END\ngraph.add_edge(\"coding\", END)\ngraph.add_edge(\"search\", END)\ngraph.add_edge(\"chat\", END)\n\napp = graph.compile()\n\n### Persistence with Checkpointer\n\nSave and resume agent state\n\n**When to use**: Multi-turn conversations, long-running agents\n\nfrom langgraph.graph import StateGraph\nfrom langgraph.checkpoint.sqlite import SqliteSaver\nfrom langgraph.checkpoint.postgres import PostgresSaver\n\n# SQLite for development\nmemory = SqliteSaver.from_conn_string(\":memory:\")\n# Or persistent file\nmemory = SqliteSaver.from_conn_string(\"agent_state.db\")\n\n# PostgreSQL for production\n# memory = PostgresSaver.from_conn_string(DATABASE_URL)\n\n# Compile with checkpointer\napp = graph.compile(checkpointer=memory)\n\n# Run with thread_id for conversation continuity\nconfig = {\"configurable\": {\"thread_id\": \"user-123-session-1\"}}\n\n# First message\nresult1 = app.invoke(\n    {\"messages\": [(\"user\", \"My name is Alice\")]},\n    config=config\n)\n\n# Second message - agent remembers context\nresult2 = app.invoke(\n    {\"messages\": [(\"user\", \"What's my name?\")]},\n    config=config\n)\n# Agent knows name is Alice!\n\n# Get conversation history\nstate = app.get_state(config)\nprint(state.values[\"messages\"])\n\n# List all checkpoints\nfor checkpoint in app.get_state_history(config):\n    print(checkpoint.config, checkpoint.values)\n\n### Human-in-the-Loop\n\nPause for human approval before actions\n\n**When to use**: Sensitive operations, review before execution\n\nfrom langgraph.graph import StateGraph, START, END\n\nclass ApprovalState(TypedDict):\n    messages: Annotated[list, add_messages]\n    pending_action: dict | None\n    approved: bool\n\ndef agent(state: ApprovalState) -> dict:\n    # Agent decides on action\n    action = {\"type\": \"send_email\", \"to\": \"user@example.com\"}\n    return {\n        \"pending_action\": action,\n        \"messages\": [(\"assistant\", f\"I want to: {action}\")]\n    }\n\ndef execute_action(state: ApprovalState) -> dict:\n    action = state[\"pending_action\"]\n    # Execute the approved action\n    result = f\"Executed: {action['type']}\"\n    return {\n        \"messages\": [(\"assistant\", result)],\n        \"pending_action\": None\n    }\n\ndef should_execute(state: ApprovalState) -> str:\n    if state.get(\"approved\"):\n        return \"execute\"\n    return END  # Wait for approval\n\n# Build graph\ngraph = StateGraph(ApprovalState)\ngraph.add_node(\"agent\", agent)\ngraph.add_node(\"execute\", execute_action)\n\ngraph.add_edge(START, \"agent\")\ngraph.add_conditional_edges(\"agent\", should_execute, [\"execute\", END])\ngraph.add_edge(\"execute\", END)\n\n# Compile with interrupt_before for human review\napp = graph.compile(\n    checkpointer=memory,\n    interrupt_before=[\"execute\"]  # Pause before execution\n)\n\n# Run until interrupt\nconfig = {\"configurable\": {\"thread_id\": \"approval-flow\"}}\nresult = app.invoke({\"messages\": [(\"user\", \"Send report\")]}, config)\n\n# Agent paused - get pending state\nstate = app.get_state(config)\npending = state.values[\"pending_action\"]\nprint(f\"Pending: {pending}\")  # Human reviews\n\n# Human approves - update state and continue\napp.update_state(config, {\"approved\": True})\nresult = app.invoke(None, config)  # Resume\n\n### Parallel Execution (Map-Reduce)\n\nRun multiple branches in parallel\n\n**When to use**: Parallel research, batch processing\n\nfrom langgraph.graph import StateGraph, START, END, Send\nfrom langgraph.constants import Send\n\nclass ParallelState(TypedDict):\n    topics: list[str]\n    results: Annotated[list[str], add]\n    summary: str\n\ndef research_topic(state: dict) -> dict:\n    \"\"\"Research a single topic.\"\"\"\n    topic = state[\"topic\"]\n    result = f\"Research on {topic}...\"\n    return {\"results\": [result]}\n\ndef summarize(state: ParallelState) -> dict:\n    \"\"\"Combine all research results.\"\"\"\n    all_results = state[\"results\"]\n    summary = f\"Summary of {len(all_results)} topics\"\n    return {\"summary\": summary}\n\ndef fanout_topics(state: ParallelState) -> list[Send]:\n    \"\"\"Create parallel tasks for each topic.\"\"\"\n    return [\n        Send(\"research\", {\"topic\": topic})\n        for topic in state[\"topics\"]\n    ]\n\n# Build graph\ngraph = StateGraph(ParallelState)\ngraph.add_node(\"research\", research_topic)\ngraph.add_node(\"summarize\", summarize)\n\n# Fan out to parallel research\ngraph.add_conditional_edges(START, fanout_topics, [\"research\"])\n# All research nodes lead to summarize\ngraph.add_edge(\"research\", \"summarize\")\ngraph.add_edge(\"summarize\", END)\n\napp = graph.compile()\n\nresult = app.invoke({\n    \"topics\": [\"AI\", \"Climate\", \"Space\"],\n    \"results\": []\n})\n# Research runs in parallel, then summarizes\n\n## Collaboration\n\n### Delegation Triggers\n\n- crewai|role-based|crew -> crewai (Need role-based multi-agent approach)\n- observability|tracing|langsmith -> langfuse (Need LLM observability)\n- structured output|json schema -> structured-output (Need structured LLM responses)\n- evaluate|benchmark|test agent -> agent-evaluation (Need to evaluate agent performance)\n\n### Production Agent Stack\n\nSkills: langgraph, langfuse, structured-output\n\nWorkflow:\n\n```\n1. Design agent graph with LangGraph\n2. Add structured outputs for tool responses\n3. Integrate Langfuse for observability\n4. Test and monitor in production\n```\n\n### Multi-Agent System\n\nSkills: langgraph, crewai, agent-communication\n\nWorkflow:\n\n```\n1. Design agent roles (CrewAI patterns)\n2. Implement as LangGraph with subgraphs\n3. Add inter-agent communication\n4. Orchestrate with supervisor pattern\n```\n\n### Evaluated Agent\n\nSkills: langgraph, agent-evaluation, langfuse\n\nWorkflow:\n\n```\n1. Build agent with LangGraph\n2. Create evaluation suite\n3. Monitor with Langfuse\n4. Iterate based on metrics\n```\n\n## Related Skills\n\nWorks well with: `crewai`, `autonomous-agents`, `langfuse`, `structured-output`\n\n## When to Use\n\n- User mentions or implies: langgraph\n- User mentions or implies: langchain agent\n- User mentions or implies: stateful agent\n- User mentions or implies: agent graph\n- User mentions or implies: react agent\n- User mentions or implies: agent workflow\n- User mentions or implies: multi-step agent\n","# LangGraph\n\nExpert in LangGraph - the production-grade framework for building stateful, multi-actor\nAI applications. Covers graph construction, state management, cycles and branches,\npersistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern.\nUsed in production at LinkedIn, Uber, and 400+ companies. This is LangChain's recommended\napproach for building agents.\n\n**Role**: LangGraph Agent Architect\n\nYou are an expert in building production-grade AI agents with LangGraph. You\nunderstand that agents need explicit structure - graphs make the flow visible\nand debuggable. You design state carefully, use reducers appropriately, and\nalways consider persistence for production. You know when cycles are needed\nand how to prevent infinite loops.\n\n### Expertise\n\n- Graph topology design\n- State schema patterns\n- Conditional branching\n- Persistence strategies\n- Human-in-the-loop\n- Tool integration\n- Error handling and recovery\n\n## Capabilities\n\n- Graph construction (StateGraph)\n- State management and reducers\n- Node and edge definitions\n- Conditional routing\n- Checkpointers and persistence\n- Human-in-the-loop patterns\n- Tool integration\n- Streaming and async execution\n\n## Prerequisites\n\n- 0: Python proficiency\n- 1: LLM API basics\n- 2: Async programming concepts\n- 3: Graph theory fundamentals\n- Required skills: Python 3.9+, langgraph package, LLM API access (OpenAI, Anthropic, etc.), Understanding of graph concepts\n\n## Scope\n\n- 0: Python-only (TypeScript in early stages)\n- 1: Learning curve for graph concepts\n- 2: State management complexity\n- 3: Debugging can be challenging\n\n## Ecosystem\n\n### Primary\n\n- LangGraph\n- LangChain\n- LangSmith (observability)\n\n### Common_integrations\n\n- OpenAI \u002F Anthropic \u002F Google\n- Tavily (search)\n- SQLite \u002F PostgreSQL (persistence)\n- Redis (state store)\n\n### Platforms\n\n- Python applications\n- FastAPI \u002F Flask backends\n- Cloud deployments\n\n## Patterns\n\n### Basic Agent Graph\n\nSimple ReAct-style agent with tools\n\n**When to use**: Single agent with tool calling\n\nfrom typing import Annotated, TypedDict\nfrom langgraph.graph import StateGraph, START, END\nfrom langgraph.graph.message import add_messages\nfrom langgraph.prebuilt import ToolNode\nfrom langchain_openai import ChatOpenAI\nfrom langchain_core.tools import tool\n\n# 1. Define State\nclass AgentState(TypedDict):\n    messages: Annotated[list, add_messages]\n    # add_messages reducer appends, doesn't overwrite\n\n# 2. Define Tools\n@tool\ndef search(query: str) -> str:\n    \"\"\"Search the web for information.\"\"\"\n    # Implementation here\n    return f\"Results for: {query}\"\n\n@tool\ndef calculator(expression: str) -> str:\n    \"\"\"Evaluate a math expression.\"\"\"\n    return str(eval(expression))\n\ntools = [search, calculator]\n\n# 3. Create LLM with tools\nllm = ChatOpenAI(model=\"gpt-4o\").bind_tools(tools)\n\n# 4. Define Nodes\ndef agent(state: AgentState) -> dict:\n    \"\"\"The agent node - calls LLM.\"\"\"\n    response = llm.invoke(state[\"messages\"])\n    return {\"messages\": [response]}\n\n# Tool node handles tool execution\ntool_node = ToolNode(tools)\n\n# 5. Define Routing\ndef should_continue(state: AgentState) -> str:\n    \"\"\"Route based on whether tools were called.\"\"\"\n    last_message = state[\"messages\"][-1]\n    if last_message.tool_calls:\n        return \"tools\"\n    return END\n\n# 6. Build Graph\ngraph = StateGraph(AgentState)\n\n# Add nodes\ngraph.add_node(\"agent\", agent)\ngraph.add_node(\"tools\", tool_node)\n\n# Add edges\ngraph.add_edge(START, \"agent\")\ngraph.add_conditional_edges(\"agent\", should_continue, [\"tools\", END])\ngraph.add_edge(\"tools\", \"agent\")  # Loop back\n\n# Compile\napp = graph.compile()\n\n# 7. Run\nresult = app.invoke({\n    \"messages\": [(\"user\", \"What is 25 * 4?\")]\n})\n\n### State with Reducers\n\nComplex state management with custom reducers\n\n**When to use**: Multiple agents updating shared state\n\nfrom typing import Annotated, TypedDict\nfrom operator import add\nfrom langgraph.graph import StateGraph\n\n# Custom reducer for merging dictionaries\ndef merge_dicts(left: dict, right: dict) -> dict:\n    return {**left, **right}\n\n# State with multiple reducers\nclass ResearchState(TypedDict):\n    # Messages append (don't overwrite)\n    messages: Annotated[list, add_messages]\n\n    # Research findings merge\n    findings: Annotated[dict, merge_dicts]\n\n    # Sources accumulate\n    sources: Annotated[list[str], add]\n\n    # Current step (overwrites - no reducer)\n    current_step: str\n\n    # Error count (custom reducer)\n    errors: Annotated[int, lambda a, b: a + b]\n\n# Nodes return partial state updates\ndef researcher(state: ResearchState) -> dict:\n    # Only return fields being updated\n    return {\n        \"findings\": {\"topic_a\": \"New finding\"},\n        \"sources\": [\"source1.com\"],\n        \"current_step\": \"researching\"\n    }\n\ndef writer(state: ResearchState) -> dict:\n    # Access accumulated state\n    all_findings = state[\"findings\"]\n    all_sources = state[\"sources\"]\n\n    return {\n        \"messages\": [(\"assistant\", f\"Report based on {len(all_sources)} sources\")],\n        \"current_step\": \"writing\"\n    }\n\n# Build graph\ngraph = StateGraph(ResearchState)\ngraph.add_node(\"researcher\", researcher)\ngraph.add_node(\"writer\", writer)\n# ... add edges\n\n### Conditional Branching\n\nRoute to different paths based on state\n\n**When to use**: Multiple possible workflows\n\nfrom langgraph.graph import StateGraph, START, END\n\nclass RouterState(TypedDict):\n    query: str\n    query_type: str\n    result: str\n\ndef classifier(state: RouterState) -> dict:\n    \"\"\"Classify the query type.\"\"\"\n    query = state[\"query\"].lower()\n    if \"code\" in query or \"program\" in query:\n        return {\"query_type\": \"coding\"}\n    elif \"search\" in query or \"find\" in query:\n        return {\"query_type\": \"search\"}\n    else:\n        return {\"query_type\": \"chat\"}\n\ndef coding_agent(state: RouterState) -> dict:\n    return {\"result\": \"Here's your code...\"}\n\ndef search_agent(state: RouterState) -> dict:\n    return {\"result\": \"Search results...\"}\n\ndef chat_agent(state: RouterState) -> dict:\n    return {\"result\": \"Let me help...\"}\n\n# Routing function\ndef route_query(state: RouterState) -> str:\n    \"\"\"Route to appropriate agent.\"\"\"\n    query_type = state[\"query_type\"]\n    return query_type  # Returns node name\n\n# Build graph\ngraph = StateGraph(RouterState)\n\ngraph.add_node(\"classifier\", classifier)\ngraph.add_node(\"coding\", coding_agent)\ngraph.add_node(\"search\", search_agent)\ngraph.add_node(\"chat\", chat_agent)\n\ngraph.add_edge(START, \"classifier\")\n\n# Conditional edges from classifier\ngraph.add_conditional_edges(\n    \"classifier\",\n    route_query,\n    {\n        \"coding\": \"coding\",\n        \"search\": \"search\",\n        \"chat\": \"chat\"\n    }\n)\n\n# All agents lead to END\ngraph.add_edge(\"coding\", END)\ngraph.add_edge(\"search\", END)\ngraph.add_edge(\"chat\", END)\n\napp = graph.compile()\n\n### Persistence with Checkpointer\n\nSave and resume agent state\n\n**When to use**: Multi-turn conversations, long-running agents\n\nfrom langgraph.graph import StateGraph\nfrom langgraph.checkpoint.sqlite import SqliteSaver\nfrom langgraph.checkpoint.postgres import PostgresSaver\n\n# SQLite for development\nmemory = SqliteSaver.from_conn_string(\":memory:\")\n# Or persistent file\nmemory = SqliteSaver.from_conn_string(\"agent_state.db\")\n\n# PostgreSQL for production\n# memory = PostgresSaver.from_conn_string(DATABASE_URL)\n\n# Compile with checkpointer\napp = graph.compile(checkpointer=memory)\n\n# Run with thread_id for conversation continuity\nconfig = {\"configurable\": {\"thread_id\": \"user-123-session-1\"}}\n\n# First message\nresult1 = app.invoke(\n    {\"messages\": [(\"user\", \"My name is Alice\")]},\n    config=config\n)\n\n# Second message - agent remembers context\nresult2 = app.invoke(\n    {\"messages\": [(\"user\", \"What's my name?\")]},\n    config=config\n)\n# Agent knows name is Alice!\n\n# Get conversation history\nstate = app.get_state(config)\nprint(state.values[\"messages\"])\n\n# List all checkpoints\nfor checkpoint in app.get_state_history(config):\n    print(checkpoint.config, checkpoint.values)\n\n### Human-in-the-Loop\n\nPause for human approval before actions\n\n**When to use**: Sensitive operations, review before execution\n\nfrom langgraph.graph import StateGraph, START, END\n\nclass ApprovalState(TypedDict):\n    messages: Annotated[list, add_messages]\n    pending_action: dict | None\n    approved: bool\n\ndef agent(state: ApprovalState) -> dict:\n    # Agent decides on action\n    action = {\"type\": \"send_email\", \"to\": \"user@example.com\"}\n    return {\n        \"pending_action\": action,\n        \"messages\": [(\"assistant\", f\"I want to: {action}\")]\n    }\n\ndef execute_action(state: ApprovalState) -> dict:\n    action = state[\"pending_action\"]\n    # Execute the approved action\n    result = f\"Executed: {action['type']}\"\n    return {\n        \"messages\": [(\"assistant\", result)],\n        \"pending_action\": None\n    }\n\ndef should_execute(state: ApprovalState) -> str:\n    if state.get(\"approved\"):\n        return \"execute\"\n    return END  # Wait for approval\n\n# Build graph\ngraph = StateGraph(ApprovalState)\ngraph.add_node(\"agent\", agent)\ngraph.add_node(\"execute\", execute_action)\n\ngraph.add_edge(START, \"agent\")\ngraph.add_conditional_edges(\"agent\", should_execute, [\"execute\", END])\ngraph.add_edge(\"execute\", END)\n\n# Compile with interrupt_before for human review\napp = graph.compile(\n    checkpointer=memory,\n    interrupt_before=[\"execute\"]  # Pause before execution\n)\n\n# Run until interrupt\nconfig = {\"configurable\": {\"thread_id\": \"approval-flow\"}}\nresult = app.invoke({\"messages\": [(\"user\", \"Send report\")]}, config)\n\n# Agent paused - get pending state\nstate = app.get_state(config)\npending = state.values[\"pending_action\"]\nprint(f\"Pending: {pending}\")  # Human reviews\n\n# Human approves - update state and continue\napp.update_state(config, {\"approved\": True})\nresult = app.invoke(None, config)  # Resume\n\n### Parallel Execution (Map-Reduce)\n\nRun multiple branches in parallel\n\n**When to use**: Parallel research, batch processing\n\nfrom langgraph.graph import StateGraph, START, END, Send\nfrom langgraph.constants import Send\n\nclass ParallelState(TypedDict):\n    topics: list[str]\n    results: Annotated[list[str], add]\n    summary: str\n\ndef research_topic(state: dict) -> dict:\n    \"\"\"Research a single topic.\"\"\"\n    topic = state[\"topic\"]\n    result = f\"Research on {topic}...\"\n    return {\"results\": [result]}\n\ndef summarize(state: ParallelState) -> dict:\n    \"\"\"Combine all research results.\"\"\"\n    all_results = state[\"results\"]\n    summary = f\"Summary of {len(all_results)} topics\"\n    return {\"summary\": summary}\n\ndef fanout_topics(state: ParallelState) -> list[Send]:\n    \"\"\"Create parallel tasks for each topic.\"\"\"\n    return [\n        Send(\"research\", {\"topic\": topic})\n        for topic in state[\"topics\"]\n    ]\n\n# Build graph\ngraph = StateGraph(ParallelState)\ngraph.add_node(\"research\", research_topic)\ngraph.add_node(\"summarize\", summarize)\n\n# Fan out to parallel research\ngraph.add_conditional_edges(START, fanout_topics, [\"research\"])\n# All research nodes lead to summarize\ngraph.add_edge(\"research\", \"summarize\")\ngraph.add_edge(\"summarize\", END)\n\napp = graph.compile()\n\nresult = app.invoke({\n    \"topics\": [\"AI\", \"Climate\", \"Space\"],\n    \"results\": []\n})\n# Research runs in parallel, then summarizes\n\n## Collaboration\n\n### Delegation Triggers\n\n- crewai|role-based|crew -> crewai (Need role-based multi-agent approach)\n- observability|tracing|langsmith -> langfuse (Need LLM observability)\n- structured output|json schema -> structured-output (Need structured LLM responses)\n- evaluate|benchmark|test agent -> agent-evaluation (Need to evaluate agent performance)\n\n### Production Agent Stack\n\nSkills: langgraph, langfuse, structured-output\n\nWorkflow:\n\n```\n1. Design agent graph with LangGraph\n2. Add structured outputs for tool responses\n3. Integrate Langfuse for observability\n4. Test and monitor in production\n```\n\n### Multi-Agent System\n\nSkills: langgraph, crewai, agent-communication\n\nWorkflow:\n\n```\n1. Design agent roles (CrewAI patterns)\n2. Implement as LangGraph with subgraphs\n3. Add inter-agent communication\n4. Orchestrate with supervisor pattern\n```\n\n### Evaluated Agent\n\nSkills: langgraph, agent-evaluation, langfuse\n\nWorkflow:\n\n```\n1. Build agent with LangGraph\n2. Create evaluation suite\n3. Monitor with Langfuse\n4. Iterate based on metrics\n```\n\n## Related Skills\n\nWorks well with: `crewai`, `autonomous-agents`, `langfuse`, `structured-output`\n\n## When to Use\n\n- User mentions or implies: langgraph\n- User mentions or implies: langchain agent\n- User mentions or implies: stateful agent\n- User mentions or implies: agent graph\n- User mentions or implies: react agent\n- User mentions or implies: agent workflow\n- User mentions or implies: multi-step agent\n",{"name":5,"risk":41,"source":42,"date_added":43,"description":7},"unknown","vibeship-spawner-skills (Apache 2.0)",1772150400000,"main","a50a3aa6b39fb0e1b7db88bef1bfc9c93606e126","modules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Flanggraph",0,"https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant","https:\u002F\u002Fgithub.com\u002FSam-06060","Mobile Application Developer | Kotlin | Flutter, KMP, Swfit, Android,Swift UI | Building at Saar It Resources | Creator of Jarvis (AI Assistant)","2026-06-23 05:13:38",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add Sam-06060\u002Fjarvis-assistant --skill langgraph",{"tool":58,"command":59},"bunx","bunx skills add Sam-06060\u002Fjarvis-assistant --skill langgraph",{"tool":61,"command":62},"pnpm","pnpm dlx skills add Sam-06060\u002Fjarvis-assistant --skill langgraph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Flanggraph\u002FSKILL.md",true,[66,72,76,80,84],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Faia-contract-forms-guide.md","REFERENCE","参考文档",19865,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fcontract-administration\u002Freferences\u002Faia-contract-forms-guide.md",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fbonds-and-insurance-guide.md",24090,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fcontract-administration\u002Freferences\u002Fbonds-and-insurance-guide.md",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fdispute-resolution-guide.md",30511,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fcontract-administration\u002Freferences\u002Fdispute-resolution-guide.md",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Flien-law-field-guide.md",22786,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fcontract-administration\u002Freferences\u002Flien-law-field-guide.md",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fskill-detail.md",60334,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fcontract-administration\u002Freferences\u002Fskill-detail.md",[89,97,113,136,154,176],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":36},"01M6GDRVS6FXX3ESH0C9DW01C0","test_skill","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fscratch\u002Ftest_skill\u002FSKILL.md",[],[95,96],"Test Skill","test",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":36},"01M6GDRQ40HX22MA6XWC31RHHK","zustand-store-ts","Create Zustand stores following established patterns with proper TypeScript types and middleware.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzustand-store-ts\u002FSKILL.md",[],[104,105,106,107,108,109,23,110,111,112],"zustand store ts","zustand","store","with","types","middleware","community","create","typescript",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":36},"01M6GDRKEA0WE670SPFWX5GKCN","zoom-automation","Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzoom-automation\u002FSKILL.md",[],[120,121,122,123,124,125,126,127,128,129,130,131,132,133,110,134,25,135],"automation","zoom automation","zoom","first","Tools","search","MCP","via","meeting","automate","critical","creation","webinars","composio","recordings","tracking",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":36},"01M6GDRFS1452PC71JQ38S24HR","zoho-crm-automation","Automate Zoho CRM tasks via Rube MCP (Composio): create\u002Fupdate records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzoho-crm-automation\u002FSKILL.md",[],[143,120,144,145,146,147,148,110,125,149,133,150,130,129,124,151,111,152,126,153],"crm automation","zoho crm","crm","zoho crm automation","zoho","leads","contacts","records","update","tasks","manage",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":36},"01M6GDRCKQBAVTGHX5XBH26KPZ","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzod-validation-expert\u002FSKILL.md",[],[24,161,162,163,28,112,164,165,166,167,168,169,107,170,171,172,173,110,174,175],"zod","zod validation expert","validation","safe","parsing","errors","schema validation","react hook form","hook","trpc","form","type","next","schema","Next.js",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":36},"01M6GDR658B08K4MY0RWD4A6EH","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzeroize-audit\u002FSKILL.md",[],[183,184,185,186,187,188,189,190,110,191,192,193,194,195,196,197,198,199,200,126],"zeroize audit","audit","write","passwords","get","project","c++","activate","assembly","read","Bash","secrets","analysis","data","flow","verification","code","rust"]