langgraph-workflows

langgraph-workflows is a skill for Claude Code from latestaiagents/agent-skills. It costs 73 tokens per session (2,331 once invoked), scanned A, original, MIT.

A toolkit for building agent workflows as state machines: sequences of steps where each step can update shared information and choose what happens next. LangGraph is a framework for building multi-step applications with these workflows.

In plain words
What is it for?
Use it to create agent graphs, state machines, and multi-step workflows with nodes, conditional paths, saved progress, or human review.
Why use it?
It gives complex agent tasks an explicit structure, including pauses for human approval, streamed output, failure recovery, and execution tracing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-plugin plugin — 13 skills, 1 command shipped together

Good fit Use it to create agent graphs, state machines, and multi-step workflows with nodes, conditional paths, saved progress, or human review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/latestaiagents/agent-skills/langgraph-workflows
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add latestaiagents/agent-skills --skill langgraph-workflows
Clone the repo
git clone --depth 1 https://github.com/latestaiagents/agent-skills

Made for: Claude Code.

Or install agent-plugin, the plugin that ships this one along with the rest of its 13 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langgraph-workflows

README.md
[![agentmods](https://agentmods.dev/badge/skills/latestaiagents/agent-skills/langgraph-workflows/github.svg)](https://agentmods.dev/skills/latestaiagents/agent-skills/langgraph-workflows)
Your own site
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/langgraph-workflows"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/langgraph-workflows/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langgraph-workflows

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/langgraph-workflows"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/langgraph-workflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,331 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.02331
Opus 5.5 $0.00029 $0.00932
Sonnet 5.5 $0.00015 $0.00466
Haiku 4.5 $0.00007 $0.00233

Measured 28d ago against content hash 8286ceb079a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

langgraph-workflows scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-architect/skills/langgraph/langgraph-workflows/SKILL.md · 354 lines

How it starts

The opening of the file, as written. The whole thing — 354 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LangGraph Workflows (1.0)

Build production-ready agent workflows with LangGraph's state machine architecture.

LangGraph 1.0 Overview

LangGraph is the standard for building stateful, multi-step agent applications:

  • Durable execution: Survive failures and restarts
  • Human-in-the-loop: Pause for approval, resume later
  • Streaming: First-class support for token streaming
  • Debugging: Full execution traces and replay

Core Concepts

┌─────────────────────────────────────────────────────────────┐
│                        StateGraph                            │
│                                                              │
│   ┌─────────┐    ┌─────────┐    ┌─────────┐                │
│   │  Node   │───▶│  Node   │───▶│  Node   │                │
│   └─────────┘    └─────────┘    └─────────┘                │
│       │              │              │                       │
│       │         Conditional         │                       │
│       │           Edge              │                       │
│       │              │              │                       │
│       │              ▼              │                       │
│       │         ┌─────────┐        │                       │
│       └────────▶│  Node   │◀───────┘                       │
│                 └─────────┘                                 │
│                                                              │
│   State flows through nodes, edges control routing          │
└─────────────────────────────────────────────────────────────┘

Pattern 1: Basic State Graph

Model IDs: CHAT_MODEL in these examples is a placeholder. Set it to a current chat model ID from your provider's models page (for example CHAT_MODEL = os.environ["CHAT_MODEL"]); model IDs are retired over time.

from langgraph.graph import StateGraph, END
from typing import TypedDict, Annotated
import operator

# Define state schema
class AgentState(TypedDict):
    messages: Annotated[list, operator.add]  # Append messages
    current_step: str
    result: str

# Define nodes (functions that transform state)
def process_input(state: AgentState) -> dict:
    """First node: process user input."""
    user_message = state["messages"][-1]
    return {
        "current_step": "processed",
        "messages": [{"role": "system", "content": f"Processing: {user_message}"}]
    }

def generate_response(state: AgentState) -> dict:
    """Second node: generate response."""
    # Call LLM here
    response = llm.invoke(state["messages"])
    return {
        "result": response.content,
        "messages": [{"role": "assistant", "content": response.content}]
    }

# Build graph
workflow = StateGraph(AgentState)

# Add nodes
workflow.add_node("process", process_input)
workflow.add_node("generate", generate_response)

# Add edges
workflow.set_entry_point("process")
workflow.add_edge("process", "generate")
workflow.add_edge("generate", END)

# Compile
app = workflow.compile()

# Run
result = app.invoke({
    "messages": [{"role": "user", "content": "Hello!"}],
    "current_step": "",
    "result": ""
})

Read the full file on GitHub · 354 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +2 lines 8286ceb079a2
  2. 3mo ago First seen · 352 lines · 73 tokens per session scan A 45d1b1a1a683

Subscribe to this mod's changes

langgraph-workflows is a skill published in the GitHub repository latestaiagents/agent-skills (6 stars, last pushed 28d ago), licensed MIT. It adds 73 tokens to every session and 2,331 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

langgraph-workflows compared with skills from other repositories

langgraph-workflows next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
langgraph-workflowslatestaiagents/agent-skillsSkill628d agoMITA73Claude Code
nexent-daily-testModelEngine-Group/nexentSkill6.3ktodayMITA78Claude Code, Codex
ai-baoyu-article-illustratorskillsaiagent/aiskillsSkill55mo agononeA76Codex
ai-baoyu-image-genskillsaiagent/aiskillsSkill55mo agononeA76Codex
ai-competitor-alternative-analysisskillsaiagent/aiskillsSkill55mo agononeA75Codex
ai-critiqueskillsaiagent/aiskillsSkill55mo agononeA71Codex
ai-design-taste-frontendskillsaiagent/aiskillsSkill55mo agononeA80Codex