Version: 1.0.0
Purpose: Quick reference index of all workflow examples for AI agents
This directory contains complete, runnable workflow examples demonstrating multi-step API operations. Each workflow shows how to chain API calls, handle dependencies, and manage state across multiple steps.
All workflows follow the workflow patterns documented in: patterns/workflow-patterns.md
Workflows focused on retrieving and querying game state data.
get-player-and-planets.mdPattern: Linear Chain
Purpose: Get player information and their planets
Steps:
Use When:
Dependencies: None (takes player ID as input)
query-guild-stats.mdPattern: Parallel with Dependency
Purpose: Query comprehensive guild statistics
Steps:
Use When:
Dependencies: Guild ID
query-and-monitor-planet.mdPattern: Hybrid (Query + Streaming)
Purpose: Query planet data and monitor for updates
Steps:
Use When:
Dependencies: Planet ID
Workflows demonstrating authentication and authenticated operations.
authenticated-guild-query.mdPattern: Linear Chain with Authentication
Purpose: Authenticate and query guild information
Steps:
Use When:
Dependencies: Username and password
Related: See examples/auth/ for authentication examples
Workflows for monitoring game state in real-time.
monitor-planet-shield.mdPattern: Streaming
Purpose: Monitor planet shield health in real-time
Steps:
Use When:
Dependencies: Planet ID, NATS connection
Related: See patterns/polling-vs-streaming.md for streaming patterns
Workflows for cosmetic mod management.
install-and-use-cosmetic-mod.mdPattern: Linear Chain
Purpose: Install and use a cosmetic mod
Steps:
Use When:
Dependencies: Mod file, Guild ID
Related: See api/cosmetic-mods.md for mod API endpoints
get-player-and-planets.mdinstall-and-use-cosmetic-mod.mdauthenticated-guild-query.mdUse When: Steps depend on previous results
query-guild-stats.mdUse When: Some steps can run in parallel after initial dependency
query-and-monitor-planet.mdUse When: Need initial data and real-time updates
monitor-planet-shield.mdUse When: Only need real-time updates
Player Operations:
get-player-and-planets.md - Get player and planetsGuild Operations:
query-guild-stats.md - Get guild statisticsauthenticated-guild-query.md - Authenticated guild queryPlanet Operations:
query-and-monitor-planet.md - Query and monitor planetmonitor-planet-shield.md - Monitor shield healthModding Operations:
install-and-use-cosmetic-mod.md - Install and use modLinear Chain:
get-player-and-planets.mdinstall-and-use-cosmetic-mod.mdauthenticated-guild-query.mdParallel:
query-guild-stats.mdHybrid:
query-and-monitor-planet.mdStreaming:
monitor-planet-shield.mdAll workflows follow this structure:
{
"workflow": {
"id": "workflow-identifier",
"name": "Human-readable name",
"description": "What this workflow does",
"pattern": "workflow-pattern-name",
"steps": [
{
"step": 1,
"name": "Step name",
"action": "What this step does",
"endpoint": "API endpoint",
"method": "HTTP method",
"dependsOn": ["previous-step-output"],
"output": "step-output-key"
}
],
"inputs": {
"required": ["input1", "input2"],
"optional": ["input3"]
},
"outputs": {
"data": "output-data-key"
},
"errorHandling": {
"strategy": "fail-fast|continue-on-error|retry-with-fallback"
}
}
}
Use this index to find workflows by:
Read the workflow file to understand:
Customize the workflow for your specific requirements:
Use the workflow as a template for your implementation:
patterns/workflow-patterns.md - Complete workflow pattern guidepatterns/retry-strategies.md - Retry patterns for failed stepsprotocols/error-handling.md - Error handling protocolprotocols/authentication.md - Authentication protocolprotocols/streaming.md - GRASS/NATS streaming protocolWhen adding new workflows:
patterns/workflow-patterns.mdLast Updated: December 7, 2025