multi-agent-system-pattern: Skill for Cursor

.cursor/skills/langgraph-orchestration/SKILL.md

langgraph-orchestration is a skill for Cursor from vpeetla-ai/multi-agent-system-pattern. It costs 52 tokens per session (366 once invoked), scanned A, original, MIT.

Instructions for building LangGraph StateGraph agents, which are programs whose work is organized as connected steps and decisions. They cover typed shared state, retries, memory, and pausing for human approval.

In plain words
What is it for?
Use them when adding orchestrators, coding loops, specialist-agent workflows, conditional routing, or human-in-the-loop approval to a LangGraph project.
Why use it?
They provide a consistent structure for multi-step or multi-agent workflows and prevent uncontrolled retry loops or unsafe actions from continuing automatically.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is vpeetla-ai/multi-agent-system-pattern's own configuration. It tells Cursor how to work on multi-agent-system-pattern itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything multi-agent-system-pattern configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vpeetla-ai/multi-agent-system-pattern. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vpeetla-ai/multi-agent-system-pattern/main/.cursor/skills/langgraph-orchestration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vpeetla-ai/multi-agent-system-pattern

Made for: Cursor.

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-orchestration

README.md
[![agentmods](https://agentmods.dev/badge/skills/vpeetla-ai/multi-agent-system-pattern/langgraph-orchestration.svg)](https://agentmods.dev/skills/vpeetla-ai/multi-agent-system-pattern/langgraph-orchestration)
Your own site
<a href="https://agentmods.dev/skills/vpeetla-ai/multi-agent-system-pattern/langgraph-orchestration"><img src="https://agentmods.dev/badge/skills/vpeetla-ai/multi-agent-system-pattern/langgraph-orchestration.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 366 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00052 $0.00366
Opus 5 $0.00026 $0.00183
Sonnet 5 $0.00010 $0.00073
Haiku 4.5 $0.00005 $0.00037

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

Security

Grade A, and why

langgraph-orchestration 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/skills/langgraph-orchestration/SKILL.md · 56 lines

What it actually says

LangGraph Orchestration

Standard pattern

START → observe/plan → specialist nodes → evaluate → route (retry|pass|hitl) → END

State

  • Use TypedDict with total=False for optional fields
  • Accumulate trace_events explicitly (list replacement per node unless using reducer)
  • Set max_iterations in state; enforce in routing

Nodes

  • Async wrappers: async def n_x(state): return sync_node(state, deps)
  • One responsibility per node (orchestrate, act, review, quality)
  • Return partial state updates only

Routing

builder.add_conditional_edges("quality", route_fn, {"retry": "plan", "pass": "ship", "escalate": "hitl"})
  • Security failures → escalate/HITL
  • Max iterations → escalate, never infinite loop

HITL

graph.compile(checkpointer=MemorySaver(), interrupt_before=["hitl"])

Resume with graph.ainvoke(update, config) after human approval.

Reference implementations

  • loop-engine-agent-platform/src/loop_engine/graph/build.py
  • loop-engine-agent-platform/src/loop_engine/graph/repo_build.py
  • venkat-ai-platform orchestrators

Tests

  • Mock LLM for deterministic paths
  • pytest.mark.asyncio + tmp_path for filesystem side effects
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. 6d ago First seen · 56 lines · 52 tokens per session scan A ff51bf677029

Subscribe to this mod's changes

langgraph-orchestration is a skill published in the GitHub repository vpeetla-ai/multi-agent-system-pattern (2 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 366 once invoked, about $0.0003 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

remember

Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture…

langchain-ai/deepagents · 71 tokens

coding-prefs

Read the user's coding preferences from /memory/coding-prefs.md before making non-trivial style decisions, and append new preferences when the user gives durable feedback.

langchain-ai/deepagents · 36 tokens

deepagents-thread-inspector

Inspect and explain conversations in the local Deep Agents Code SQLite session store. Use as a fallback when LangSmith trace tooling is unavailable, for offline or untraced sessions, or when asked to identify or summarize a local dcode thread, inspect checkpoint metadata, list recent local threads, or parse…

langchain-ai/deepagents · 82 tokens

mem0-tour

Browses all stored memories grouped by category with full content display. Use when reviewing all project memories, exploring stored knowledge, onboarding to a project, or getting an overview of captured decisions, conventions, and learnings.

mem0ai/mem0 · 47 tokens

mem0-cli

Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions "mem0 cli", "mem0 command line", "@mem0/cli", "mem0-cli", "pip install mem0-cli", "npm install -g @mem0/cli", or is running mem0 commands in a terminal/shell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0…

mem0ai/mem0 · 177 tokens

mempalace-task

Create, hand off, claim, execute, and close agent tasks through the MemPalace logstream. Use when the user wants to delegate work, prepare a ready-to-paste task for another agent, receive a MemPalace task id, or explicitly launch a supported headless agent in controlled mode.

MemPalace/mempalace · 67 tokens