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.
npx skills add Notysoty/openagentskills --skill langgraph-state-machine-designergit clone --depth 1 https://github.com/Notysoty/openagentskillsWrote 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.
[](https://agentmods.dev/skills/notysoty/openagentskills/langgraph-state-machine-designer)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.01514 |
| Opus 5.5 | $0.00013 | $0.00606 |
| Sonnet 5.5 | $0.00007 | $0.00303 |
| Haiku 4.5 | $0.00003 | $0.00151 |
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 3mo 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.
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
errorfield 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:
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.
- 3mo ago First seen · 220 lines · 33 tokens per session scan A 62fc67786b8d
LangGraph State Machine Designer is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 3mo ago), licensed MIT. It adds 33 tokens to every session and 1,514 once invoked, about $0.0001 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.
LangGraph State Machine Designer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| LangGraph State Machine DesignerNotysoty/openagentskills | Skill | 9 | 3mo ago | MIT | A | 33 | Claude Code, Codex |
| recover-from-failurecacheplane/dawnai | Skill | 266 | 17d ago | MIT | A | 15 | Claude Code, Codex |
| workspace-conventionscacheplane/dawnai | Skill | 266 | 17d ago | MIT | A | 17 | Claude Code, Codex |
| dawncacheplane/dawnai | Skill | 266 | 17d ago | MIT | A | 48 | Claude Code, Codex |
| cite-sourcescacheplane/dawnai | Skill | 266 | 17d ago | MIT | A | 11 | Claude Code, Codex |
| synthesize-findingscacheplane/dawnai | Skill | 266 | 17d ago | MIT | A | 12 | Claude Code, Codex |
| ai-agentic-workflowsj4flmao/agent-skills | Skill | 46 | 14d ago | MIT | A | 88 | Claude Code, Codex |