smithery.ai

spoon-graph-development

Build StateGraph workflows with SpoonOS. Use when creating multi-step workflows, conditional routing, parallel execution, checkpointing, or multi-agent orchestration.

First seen Mar 31, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,761 B
  • docs SUMMARY.md 197 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Graph Development

Build workflow graphs using SpoonOS StateGraph.

Quick Start

from spoon_ai.graph import StateGraph, END
from typing import TypedDict

class MyState(TypedDict):
    counter: int
    result: str

async def process(state: MyState) -> dict:
    return {"counter": state["counter"] + 1}

graph = StateGraph(MyState)
graph.add_node("process", process)
graph.set_entry_point("process")
graph.add_edge("process", END)

app = graph.compile()
result = await app.invoke({"counter": 0, "result": ""})

Scripts

Script Purpose
[basicgraph.py](scripts/basicgraph.py) Simple linear workflow
[conditionalgraph.py](scripts/conditionalgraph.py) Conditional routing
[parallelgraph.py](scripts/parallelgraph.py) Parallel node execution
[checkpointgraph.py](scripts/checkpointgraph.py) State persistence

References

Reference Content
[patterns.md](references/patterns.md) Common graph patterns
[parallel.md](references/parallel.md) Parallel execution modes

Node Types

  • Function nodes: async def node(state) -> dict
  • Agent nodes: SpoonReactMCP instances
  • Subgraph nodes: Nested StateGraph

Edge Types

  • Direct: graph.add_edge("a", "b")
  • Conditional: graph.addconditionaledges("a", router, {...})

Best Practices

  1. Use TypedDict for state schemas
  2. Return only changed fields from nodes
  3. Use checkpointing for long workflows
  4. Implement timeout for external calls