spoon-graph-development
FreeRuns bundled scriptsNot checkedBuild StateGraph workflows with SpoonOS. Use when creating multi-step workflows, conditional routing, parallel execution, checkpointing, or multi-agent…
by jiayaoqijia★ 81 GitHub starsAbout 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:
SpoonReactMCPinstances - Subgraph nodes: Nested
StateGraph
Edge Types
- Direct:
graph.add_edge("a", "b") - Conditional:
graph.add_conditional_edges("a", router, {...})
Best Practices
- Use TypedDict for state schemas
- Return only changed fields from nodes
- Use checkpointing for long workflows
- 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
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
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
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic