/outputai:output-workflow-resetfrom outputai
Re-runs an Output SDK workflow from after a completed step, replaying earlier steps and re-executing later ones. Useful for iterating on prompts or recovering from late-stage failures without re-running expensive upstream work.
Ships in outputai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill resets a workflow to re-run from after a specific completed step. The current run is terminated and a new run is created that replays the workflow up to the given step (reusing its recorded output), then re-executes every step after it.
Use this to avoid re-running expensive early steps (like LLM calls or slow HTTP requests) when you only need to iterate on a later step.
npx output workflow stop <id> or terminate <id>409)npx output workflow run <name> or workflow start <name>npx output workflow reset <workflowId> --step <stepName>
npx output workflow reset <workflowId> --step <stepName> --reason "<why>"
| Flag | Short | Required | Description |
|---|---|---|---|
--step | -s | yes | Name of the completed step to reset after |
--reason | -r | no | Free-text reason, recorded in Temporal history for auditability |
The workflowId argument is required. The step name is the step function name as it appears in the trace (e.g. fetchArticle, consolidateCompetitors).
Step names come from the run's Temporal history. A step is an activity named <workflowName>#<stepName>, and the --step value is the part after the #:
npx output workflow debug <workflowId> | jq -r '.workflows[0].events[] | select(.eventType == "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED") | .activityTaskScheduledEventAttributes.activityType.name'
Only steps with an EVENT_TYPE_ACTIVITY_TASK_COMPLETED event (its scheduledEventId matches the scheduled event's eventId) can be reset to.
On success the CLI prints the original workflowId and a new runId — the new run created by the reset. The pre-reset run is terminated.
Workflow reset successfully
Workflow ID: lead_enrichment-a1b2c3d4
New Run ID: 8f3e2a91-...
Reset after step: consolidateCompetitors
Reason: retrying with updated prompt
Use the new runId (via the pinned workflow runs list) to inspect the new execution. The workflowId is unchanged, so workflow status / workflow result will target the latest run by default.
Scenario: Rerun after fixing a downstream prompt
# The workflow failed at `generateBlogPost`, but `consolidateCompetitors`
# (the step before it) completed successfully.
npx output workflow debug lead_enrichment-a1b2c3d4
# ... confirms consolidateCompetitors completed
# Edit src/workflows/lead_enrichment/prompts/[email protected]
# Then rerun from after the last good step — skipping the expensive
# competitor consolidation LLM call.
npx output workflow reset lead_enrichment-a1b2c3d4 \
--step consolidateCompetitors \
--reason "Retry with updated blog-post prompt"
Scenario: Iterate on a late step without re-paying upstream costs
# Workflow completed, but step output is wrong. Rerun just the last step.
npx output workflow reset blog_evaluator-xyz789 --step analyze_claims
# Check the new run's result
npx output workflow result blog_evaluator-xyz789
Scenario: Record an audit reason
npx output workflow reset wf-12345 \
--step fetchCompanyData \
--reason "Source API returned stale data; rerunning after cache invalidation"
Scenario: Capture the new run ID for follow-up
# Grab the new runId from the reset output, then watch it
npx output workflow reset lead_enrichment-a1b2c3d4 --step lookupCompany
npx output workflow status lead_enrichment-a1b2c3d4
npx output workflow result lead_enrichment-a1b2c3d4
| Error | Cause | Solution |
|---|---|---|
404 Workflow or step not found | Wrong workflowId or --step name | Check with npx output workflow runs list and workflow debug <id> |
409 Step has not completed | Target step is still running or never ran | Wait for the step to complete, or pick an earlier completed step |
| API returned invalid response | Transport failure | Check services with `docker ps |
workflow debug — confirm which steps completed before picking a reset point<stepName>; the step itself is not re-executed--reason — it shows up in Temporal history and helps teammates (and future you) understand why the run forkednpx output workflow debug <id> — find completed step names to pass to --stepnpx output workflow runs list — see the new run created by reset alongside the terminated originalnpx output workflow status <id> — check the new run's statusnpx output workflow result <id> — get the new run's final outputnpx output workflow stop <id> / workflow terminate <id> — stop a running workflow before resettingnpx output workflow run <name> / workflow start <name> — fresh run from scratch (no replay)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub growthxai/output --plugin outputai51 skills in this plugin
/output-build-workflowImplement an Output SDK workflow from a plan document. Use when the user asks to build, implement, or code a workflow from an existing plan, or after output-plan-workflow has produced a plan and the user is ready to build./output-credentials-editView, edit, and set encrypted credentials in an Output.ai project. Use when adding secrets, updating API keys, verifying credential values, or retrieving a specific credential./output-credentials-env-varsWire encrypted credentials to environment variables using the credential: convention. Use when setting up LLM provider keys (ANTHROPIC_API_KEY, OPENAI_API_KEY) or any env var that should come from encrypted credentials.Other plugins' skills for the same job