Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

spoon-graph-development

FreeRuns bundled scriptsNot checked

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

jiayaoqijiaby jiayaoqijia★ 81 GitHub stars

About this skill

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
basic_graph.py Simple linear workflow
conditional_graph.py Conditional routing
parallel_graph.py Parallel node execution
checkpoint_graph.py State persistence

References

Reference Content
patterns.md Common graph patterns
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.add_conditional_edges("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

Install spoon-graph-development in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

SOURCE.mdTRUST.auto.yamlreferences/patterns.mdscripts/basic_graph.pyscripts/conditional_graph.py

FAQ

What does the spoon-graph-development skill do?

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

How do I install the spoon-graph-development skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the spoon-graph-development skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare spoon-graph-development with