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…
Debug Output SDK workflow issues. Use when user reports a workflow failing, erroring, hanging, producing wrong results, or asks to debug, troubleshoot, or investigate a workflow execution.
Claude Code
$ npx -y skills add growthxai/output --skill output-debug-workflow --agent claude-code
Codex
$ npx skills add growthxai/output --skill output-debug-workflow -a codex -y
Cursor
$ npx skills add growthxai/output --skill output-debug-workflow -a cursor -y
Gemini CLI
$ npx skills add growthxai/output --skill output-debug-workflow -a gemini-cli -y
GitHub Copilot
$ npx skills add growthxai/output --skill output-debug-workflow -a github-copilot -y
OpenCode
$ npx skills add growthxai/output --skill output-debug-workflow -a opencode -y
Windsurf
$ npx skills add growthxai/output --skill output-debug-workflow -a windsurf -y
name: output-debug-workflow description: Debug Output SDK workflow issues. Use when user reports a workflow failing, erroring, hanging, producing wrong results, or asks to debug, troubleshoot, or investigate a workflow execution.
Your task is to systematically debug an Output SDK workflow issue in a local development environment.
The arguments the user provided describe the problem they're experiencing, and may include a specific workflow ID.
Use the todo tool to track your progress through the debugging process.
Follow a systematic approach to identify and resolve workflow execution issues: verify infrastructure, gather evidence, analyze traces, and apply targeted fixes.
<pre_flight_check> EXECUTE: Claude Skill: `output-meta-pre-flight` </pre_flight_check>
<process_flow>
<step number="1" name="verify_services">
Before debugging, confirm that all required services are operational. The `output-services-check` skill provides comprehensive guidance.
<verification_commands>
# Check Docker containers are running docker ps | grep output # Verify Output services respond curl -s http://localhost:3001/health || echo "API not responding" # Check Temporal UI is accessible curl -s http://localhost:8080 > /dev/null && echo "Temporal UI accessible" || echo "Temporal UI not accessible"
</verification_commands>
<decision_tree> IF docker_not_running: RUN: docker compose up -d WAIT: for services to start (30-60 seconds) IF output_dev_not_running: RUN: npx output dev WAIT: for services to initialize IF all_services_running: PROCEED: to step 2 </decision_tree>
**Expected State**:
</step>
<step number="2" name="list_workflow_runs">
Identify the failing workflow execution by listing recent runs. The `output-workflow-runs-list` skill provides detailed filtering guidance.
<list_commands>
# List all recent workflow runs npx output workflow runs list # Filter by specific workflow type (if known) npx output workflow runs list <workflowName> # Get detailed JSON output for analysis npx output workflow runs list --json # Limit results to most recent npx output workflow runs list --limit 10
</list_commands>
<identification_criteria> Look for:
</identification_criteria>
<decision_tree> IF user_provided_workflow_id: USE: provided workflow ID PROCEED: to step 3 IF failed_runs_found: SELECT: most recent failed run NOTE: workflow ID from output PROCEED: to step 3 IF no_runs_found: CHECK: workflow exists with `npx output workflow list` IF workflow_not_found: REPORT: workflow doesn't exist SUGGEST: verify workflow name and location ELSE: SUGGEST: run the workflow with `npx output workflow run <name>` </decision_tree>
</step>
<step number="3" name="debug_workflow" subagent="workflow-debugger">
Retrieve and analyze the execution trace for the identified workflow. The `output-workflow-trace` skill provides analysis techniques.
<debug_commands>
# Display execution trace (text format) npx output workflow debug <workflowId> # Display full untruncated trace (JSON format) - recommended for detailed analysis npx output workflow debug <workflowId> --json
</debug_commands>
**Tip**: Use `--json` for complete trace data without truncation.
<analysis_checklist> 1. Identify which step failed 2. Examine the error message and stack trace 3. Check input data passed to the failing step 4. Check output data from preceding steps 5. Look for patterns matching common error types </analysis_checklist>
<temporal_ui_guidance> For visual workflow inspection, open the Temporal Web UI at **http://localhost:8080**:
</temporal_ui_guidance>
</step>
<step number="4" name="suggest_fixes" subagent="workflow-quality">
Based on the trace analysis, identify the error pattern and suggest targeted fixes. Claude will invoke the relevant error skill based on symptoms.
<error_matching>
| Symptom | Skill | |---------|-------| | "incompatible schema" errors, type errors | `output-error-zod-import` | | Replay failures, inconsistent results | `output-error-nondeterminism` | | Retries not working, errors swallowed | `output-error-try-catch` | | Type errors, undefined properties at step boundaries | `output-error-missing-schemas` | | Workflow hangs, determinism errors | `output-error-direct-io` | | Untraced requests, axios errors | `output-error-http-client` |
</error_matching>
<decision_tree> IF error_matches_known_pattern: INVOKE: relevant error skill for detailed fix ELSE: CONSULT: workflow-quality subagent for additional patterns SUGGEST: Manual trace inspection in Temporal UI </decision_tree>
<verification> After applying fix:
# Re-run the workflow to verify npx output workflow run <workflowName> --input '<json>' # Or start asynchronously and check result npx output workflow start <workflowName> --input '<json>' npx output workflow status <workflowId> npx output workflow result <workflowId> # Or, if the fix only affects a specific step and earlier steps succeeded, # re-run from after the last known-good step (skips re-executing earlier work) npx output workflow reset <workflowId> --step <lastGoodStep> --reason "<fix description>"
For targeted rerun after fixing a downstream step, see the `output-workflow-reset` skill. </verification>
</step>
</process_flow>
<post_flight_check> EXECUTE: Claude Skill: `output-meta-post-fl
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…
Use the Agent class for multi-step tool loops, conversation history, streaming progress, and reusable LLM agents. Use when…
Code style conventions for Output SDK workflow projects. Use when writing or reviewing any TypeScript/JavaScript code. Discovers…
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.