agentleFS
pauloribeiro16pauloribeiro16/my-skills/langgraph/SKILL.md

langgraph

Skill1 starsChanged 6 months agoMITView on GitHub

LangGraph skill for building stateful, multi-actor agent workflows with persistence. Triggers on: setup langgraph, create agent workflow, build graph, state machine, langgraph agent, agent with tools, human-in-the-loop, langchain graph.

  • Reads credentials
  • Installs packages

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gcp-cloud-run.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    gcp-cloud-run

    Specialized skill for building production-ready serverless applications on GCP. Covers Cloud Run services (containerized), Cloud Run Functions (event-driven), cold start optimization, and event-driven architecture with Pub/Sub.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to:

    line 15

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LangGraph

Build stateful agent workflows with LangGraph.

When to Use

Use this skill when the user asks to:

  • "setup langgraph"
  • "create agent workflow"
  • "build graph"
  • "state machine"
  • "langgraph agent"
  • "agent with tools"
  • "human-in-the-loop"
  • "langchain graph"
  • "persist agent state"
  • "build multi-step LLM workflow"

What It Covers

  1. Install and configure LangGraph
    • pip install langgraph langchain langchain-openai
    • Setup environment variables (OPENAI_API_KEY)
  2. Define state schemas
    • TypedDict for structured state
    • MessagesState for conversational agents
    • Custom reducers for state updates
  3. Create nodes and edges
    • StateGraph builder
    • Conditional edges (routing)
    • Entry points and END nodes
  4. Build agent with tools
    • Tool binding to LLM
    • ToolNode for execution
    • ReAct loop pattern
  5. Persist state with checkpoints
    • InMemorySaver for dev/testing
    • SqliteSaver for local persistence
    • PostgresSaver for production
  6. Implement human-in-the-loop
    • Interrupt before/after nodes
    • Resume execution with new state
    • Approval workflows

Templates

  • templates/graph.py — Main graph definition (StateGraph, edges, compilation)
  • templates/state.py — State schema (TypedDict, MessagesState)
  • templates/nodes/llm_nodes.py — LLM call nodes
  • templates/nodes/tools.py — Tool definitions and ToolNode

Resources

  • references/state-management.md — TypedDict, reducers, MessagesState patterns
  • references/persistence.md — Checkpoints (InMemory, SQLite, Postgres)
  • references/patterns.md — Agent, Supervisor, Orchestrator-Worker, Evaluator-Optimizer

Examples

  • examples/agent-with-tools.py — Complete agent with tools, routing, and persistence

Use When

The user wants to build a stateful, multi-step agent workflow using LangGraph with nodes, edges, tool use, and optional human-in-the-loop or persistence.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.