output-build-workflow
Implement an Output SDK workflow from a plan document. Use when the user asks to build, implement, or code a workflow from an…
Get the result of an Output SDK workflow execution. Use when retrieving the output of a completed workflow, getting the return value, or checking what a workflow produced after async execution.
Claude Code
$ npx -y skills add growthxai/output --skill output-workflow-result --agent claude-code
Codex
$ npx skills add growthxai/output --skill output-workflow-result -a codex -y
Cursor
$ npx skills add growthxai/output --skill output-workflow-result -a cursor -y
Gemini CLI
$ npx skills add growthxai/output --skill output-workflow-result -a gemini-cli -y
GitHub Copilot
$ npx skills add growthxai/output --skill output-workflow-result -a github-copilot -y
OpenCode
$ npx skills add growthxai/output --skill output-workflow-result -a opencode -y
Windsurf
$ npx skills add growthxai/output --skill output-workflow-result -a windsurf -y
name: output-workflow-result description: Get the result of an Output SDK workflow execution. Use when retrieving the output of a completed workflow, getting the return value, or checking what a workflow produced after async execution. allowed-tools: [Bash]
This skill retrieves the result (return value) of a completed workflow execution. Use it after a workflow started with `npx output workflow start` has completed, or to retrieve results from historical runs.
npx output workflow result <workflowId>
The result is the return value of the workflow function, typically JSON.
Before getting results, verify the workflow completed:
npx output workflow status <workflowId> # Should show: COMPLETED npx output workflow result <workflowId>
A successful workflow returns the value from its `fn` function:
// Workflow code
export default workflow( {
fn: async input => {
return { processed: true, count: 42 };
}
} );# Result output
npx output workflow result abc123
# { "processed": true, "count": 42 }If you try to get the result of a failed workflow:
Some workflows don't return a value:
npx output workflow result abc123 # null
**Scenario**: Get result after async start
# Start workflow
npx output workflow start calculate --input '{"values": [1, 2, 3]}'
# Output: Workflow ID: calc-abc123
# Wait for completion
npx output workflow status calc-abc123
# Status: COMPLETED
# Get the result
npx output workflow result calc-abc123
# { "sum": 6, "average": 2 }**Scenario**: Process result with jq
# Extract specific field npx output workflow result abc123 | jq '.total' # Format for display npx output workflow result abc123 | jq '.' # Save to file npx output workflow result abc123 > result.json
**Scenario**: Compare results between runs
# Get results from two runs npx output workflow result run-1-abc > result1.json npx output workflow result run-2-xyz > result2.json # Compare diff result1.json result2.json
**Scenario**: Use in a script
WORKFLOW_ID="abc123" # Wait for completion while [[ $(npx output workflow status $WORKFLOW_ID) == *"RUNNING"* ]]; do sleep 5 done # Check if completed successfully if [[ $(npx output workflow status $WORKFLOW_ID) == *"COMPLETED"* ]]; then RESULT=$(npx output workflow result $WORKFLOW_ID) echo "Workflow result: $RESULT" else echo "Workflow did not complete successfully" npx output workflow debug $WORKFLOW_ID fi
npx output workflow result abc123
# { "key": "value", "nested": { "data": true } }npx output workflow result abc123 # [1, 2, 3, 4, 5]
npx output workflow result abc123 # 42 npx output workflow result abc123 # "success" npx output workflow result abc123 # true
For large results, redirect to a file:
npx output workflow result abc123 > large-result.json
The open-source TypeScript framework for building AI workflows and agents. Designed for Claude Code — describe what you want, Claude builds it, with all the best practices already in place. One framework.
Implement an Output SDK workflow from a plan document. Use when the user asks to build, implement, or code a workflow from an…
View, edit, and set encrypted credentials in an Output.ai project. Use when adding secrets, updating API keys, verifying…
Wire encrypted credentials to environment variables using the credential: convention. Use when setting up LLM provider keys…
Initialize encrypted credentials for an Output.ai project. Use when setting up credentials for the first time, adding…
Debug Output SDK workflow issues. Use when user reports a workflow failing, erroring, hanging, producing wrong results, or asks…
Use the Agent class for multi-step tool loops, conversation history, streaming progress, and reusable LLM agents. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.