building-langgraph-agents

building-langgraph-agents is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 50 tokens per session (2,388 once invoked), scanned A, original, MIT.

Development guidance for LangGraph, a framework for building AI applications whose steps keep state and can route work between different agents. It covers branching workflows, saved state, streaming, and human approval steps.

In plain words
What is it for?
Use it to build or maintain LangGraph workflows in Python or TypeScript, including conditional routing, repeated steps, agent coordination, persistence, and human-in-the-loop actions.
Why use it?
It provides patterns for coordinating multi-step AI work without manually managing every transition and piece of state. It is intended for applications more involved than a single request and response.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the ensemble-ai plugin — 5 skills shipped together

Good fit Use it to build or maintain LangGraph workflows in Python or TypeScript, including conditional routing, repeated steps, agent coordination, persistence, and human-in-the-loop actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fortiumpartners/ensemble/building-langgraph-agents
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 FortiumPartners/ensemble --skill building-langgraph-agents
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-ai, the plugin that ships this one along with the rest of its 5 skills.

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 building-langgraph-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/building-langgraph-agents/github.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/building-langgraph-agents)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/building-langgraph-agents"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/building-langgraph-agents/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 building-langgraph-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/building-langgraph-agents"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/building-langgraph-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,388 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.00050 $0.02388
Opus 5 $0.00025 $0.01194
Sonnet 5 $0.00010 $0.00478
Haiku 4.5 $0.00005 $0.00239

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

Security

Grade A, and why

building-langgraph-agents 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.

packages/ai/skills/building-langgraph-agents/SKILL.md · 372 lines

How it starts

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

LangGraph Development Skill

Quick Reference

LangGraph is LangChain's framework for building stateful, multi-actor applications with LLMs. It enables cyclic graphs, conditional branching, persistent state management, and human-in-the-loop workflows.

Key capabilities: StateGraph for workflow orchestration, checkpointers for persistence, prebuilt ReAct agents, streaming at multiple granularities, and LangGraph Platform for managed deployment.


Table of Contents

  1. When to Use
  2. Package Ecosystem
  3. Quick Start - Python
  4. Quick Start - TypeScript
  5. Core Concepts
  6. Prebuilt Components
  7. Common Patterns
  8. Quick Persistence Setup
  9. CLI Commands
  10. Error Quick Reference
  11. When to Use REFERENCE.md
  12. Agent Integration
  13. See Also

When to Use

This skill is loaded by backend-developer when:

  • langgraph in requirements.txt, pyproject.toml, or setup.py
  • @langchain/langgraph in package.json dependencies
  • Python imports: from langgraph.graph import StateGraph
  • Environment variables LANGSMITH_API_KEY, LANGGRAPH_API_URL, or LANGCHAIN_API_KEY present
  • User mentions "LangGraph", "StateGraph", "agent workflow", "cyclic agent", or "multi-agent graph"

Package Ecosystem

Package Description
langgraph Core StateGraph, MessageGraph, prebuilt components
langgraph-checkpoint-postgres PostgreSQL checkpointer for production
langgraph-checkpoint-sqlite SQLite checkpointer with async support
langgraph-sdk Python client for LangGraph Platform API
@langchain/langgraph TypeScript/JavaScript implementation

Compatibility: LangGraph 0.2.x requires langchain-core>=0.3.0.

Read the full file on GitHub · 372 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 372 lines · 50 tokens per session scan A 9b3dcd6acf93

Subscribe to this mod's changes

building-langgraph-agents is a skill published in the GitHub repository FortiumPartners/ensemble (12 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 2,388 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-30.

Related

Other skills, from other repositories

context-recovery

Recovers project handoff context from local Codex, Claude Code, Gemini, CodeBuddy, and codexmate-derived sessions. Use when the user asks what happened in prior project/PR/branch/file/error work, needs a handoff brief, wants old decisions or validations recovered, or asks to summarize cross-session project activity…

SakuraByteCore/codexmate · 72 tokens

overleaf

Sync and manage Overleaf LaTeX projects from the command line. Pull projects locally, push changes back, compile PDFs, and download compile outputs like .bbl files for arXiv submissions. Use when working with LaTeX, Overleaf, academic papers, or arXiv.

aloth/olcli · 62 tokens

dev

This skill should be used when the user asks to start, restart, keep alive, or inspect the local pikiclaw development service, including npm run dev, local debug bot startup, dashboard verification, and dev log checks.

xiaotonng/pikiloom · 48 tokens

bmad-quick-dev-new-preview

Implements any user intent, requirement, story, bug fix or change request by producing clean working code artifacts that follow the project's existing architecture, patterns and conventions. Use when the user wants to build, fix, tweak, refactor, add or modify any code, component or feature.

LarsCowe/bmalph · 65 tokens

bmad-create-story

Creates a dedicated story file with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]".

LarsCowe/bmalph · 42 tokens

bmad-quick-dev

Implement a Quick Tech Spec for small changes or features. Use when the user provides a quick tech spec and says "implement this quick spec" or "proceed with implementation of [quick tech spec]".

LarsCowe/bmalph · 46 tokens