LangGraph State Machine Designer

LangGraph State Machine Designer is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 33 tokens per session (1,514 once invoked), scanned A, original, MIT.

A design workflow for representing an agent process as a LangGraph state machine, which is a graph of steps connected by routing rules.

In plain words
What is it for?
Use it to design typed state, processing nodes, conditional paths, checkpoints, and human approval steps for LangGraph agents.
Why use it?
It turns a plain-language workflow into an explicit structure, including shared data, decisions, error recovery, and points where a person must approve an action.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it to design typed state, processing nodes, conditional paths, checkpoints, and human approval steps for LangGraph agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/langgraph-state-machine-designer
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 Notysoty/openagentskills --skill langgraph-state-machine-designer
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

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 State Machine Designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/langgraph-state-machine-designer/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/langgraph-state-machine-designer)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/langgraph-state-machine-designer"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/langgraph-state-machine-designer/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 State Machine Designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/langgraph-state-machine-designer"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/langgraph-state-machine-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,514 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.00033 $0.01514
Opus 5 $0.00016 $0.00757
Sonnet 5 $0.00007 $0.00303
Haiku 4.5 $0.00003 $0.00151

Measured 9d ago against content hash 62fc67786b8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

LangGraph State Machine Designer 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 9d 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.

skills/langgraph-state-machine-designer/SKILL.md · 220 lines

How it starts

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

LangGraph State Machine Designer

What this skill does

This skill takes a plain-language description of an agentic workflow and designs the corresponding LangGraph state machine: typed state schema, node functions, conditional edges, and checkpoint configuration. It handles the hard parts — state typing, routing logic, error recovery, and human-in-the-loop interrupts.

How to use

Claude Code / Cline

Copy this file to .agents/skills/langgraph-state-machine-designer/SKILL.md in your project root.

Then ask:

  • "Use the LangGraph State Machine Designer to build a research-then-write workflow."
  • "Design a LangGraph agent that routes between a SQL tool and a web search tool."

Provide:

  • What the agent should do (in plain English)
  • What tools or actions it has available
  • Whether humans need to approve any steps
  • Your LangGraph version (v0.2+ assumed)

Cursor / Codex

Describe the workflow and paste these instructions. Ask for the full graph code.

The Prompt / Instructions for the Agent

When asked to design a LangGraph state machine, produce the following:

Step 1 — Define the TypedDict state

Every LangGraph graph has a single shared state object. Define it as a TypedDict with Annotated fields for lists (so they append rather than overwrite):

from typing import TypedDict, Annotated, Sequence
from langchain_core.messages import BaseMessage
import operator

class AgentState(TypedDict):
    messages: Annotated[Sequence[BaseMessage], operator.add]
    # Add task-specific fields:
    query: str
    search_results: list[str]
    draft: str
    approved: bool
    error: str | None

Rules for state design:

  • Use Annotated[list, operator.add] for any field that accumulates over time (messages, results)
  • Use plain types for fields that get overwritten each step (current_step, status)
  • Add an error field to every state — nodes should write errors here instead of raising

Step 2 — Design the nodes

Each node is a function that takes state and returns a partial state update:

Read the full file on GitHub · 220 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. 9d ago First seen · 220 lines · 33 tokens per session scan A 62fc67786b8d

Subscribe to this mod's changes

LangGraph State Machine Designer is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 25d ago), licensed MIT. It adds 33 tokens to every session and 1,514 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

auto

Intent-classified router, the front door to OrchestKit and the DEFAULT entry point for any goal-shaped request. Classifies a plain-English goal and routes it to the right specialist skill. Routing is never overhead, so use it even when the target skill seems obvious; skip only when already executing inside another…

yonatangross/orchestkit · 99 tokens

agent-orchestration

Agent orchestration patterns for agentic loops, multi-agent coordination, alternative frameworks, and multi-scenario workflows. Use when building autonomous agent loops, coordinating multiple agents, evaluating CrewAI/AutoGen/Swarm, or orchestrating complex multi-step scenarios.

yonatangross/orchestkit · 56 tokens

memory-fabric

Knowledge graph orchestration layer with entity extraction, natural language query parsing, deduplication (>85% similarity), and cross-reference boosting. Unifies search results ranked by recency, relevance, and authority. Use when designing memory retrieval, building entity graphs, or optimizing knowledge graph…

yonatangross/orchestkit · 61 tokens

task-dependency-patterns

Task Management patterns with TaskCreate, TaskUpdate, TaskGet, TaskList tools. Decompose complex work into trackable tasks with dependency chains. Use when managing multi-step implementations, coordinating parallel work, or tracking completion status.

yonatangross/orchestkit · 51 tokens

recover-from-failure

How to recover when a tool call fails — diagnose, not blindly retry.

cacheplane/dawnai · 15 tokens

workspace-conventions

Reminders about how Dawn's workspace tools behave and what the path-jail allows.

cacheplane/dawnai · 17 tokens