Your task is to migrate a workflow from the Flow SDK to the Output SDK.
Generates migration plans to convert Flow SDK workflows to Output SDK format.
/plugin marketplace add growthxai/output-claude-plugins/plugin install growthxai-outputai-flow-migrator-plugins-outputai-flow-migrator@growthxai/output-claude-pluginsYour task is to migrate a workflow from the Flow SDK to the Output SDK.
The task is to generate a detailed plan for migrating the given workflow from the Flow SDK to the Output SDK (Flow's successor framework).
<process_flow>
<step number="0" name="arguments_analysis">Analyze the arguments provided to the command:
{ $ARGUMENTS }
<substep number="0" name="arguments_analysis">Ensure they have provided:
If not, ask the user for the missing information. </substep>
<substep number="1" name="pre_flight_check"> EXECUTE: Claude Skill: `output-meta-pre-flight` </substep> </step> <step number="1" name="context_gathering" subagent="workflow-context-fetcher">Take the time to gather all the context you need to create a comprehensive plan.
Analyze the workflow and draft a plan for migrating it to the Output SDK.
<thought_process>
<step_output> Output Draft Plan: to .outputai/plans/migrate_flow_workflow_<workflow_name>.md </step_output>
</step> <step number="3" name="workflow_design" subagent="workflow-quality">Review the draft plan and make any necessary changes.
<thought_process>
<decision_tree> IF changes_needed: UPDATE draft_plan ELSE: PROCEED to step 4 </decision_tree>
<step_output> Output Reviewed Plan: to .outputai/plans/migrate_flow_workflow_<workflow_name>.md </step_output>
</step> <step number="4" name="step_review" subagent="workflow-quality">Review the steps and make any necessary changes.
<thought_process>
<decision_tree> IF changes_needed: UPDATE draft_plan ELSE: PROCEED to step 5 </decision_tree>
<step_output> Output Reviewed Plan: to .outputai/plans/migrate_flow_workflow_<workflow_name>.md </step_output>
</step> <step number="5" name="prompt_engineering" subagent="workflow-prompt-writer">Review the prompts and make any necessary changes.
<thought_process>
<decision_tree> IF changes_needed: UPDATE draft_plan ELSE: PROCEED to step 6 </decision_tree>
<step_output> Output Reviewed Plan: to .outputai/plans/migrate_flow_workflow_<workflow_name>.md </step_output>
</step> <step number="6" name="testing_strategy" subagent="workflow-debugger">Design the testing strategy for the workflow.
<thought_process>
Generate the complete plan in markdown format.
Note that every implementation should start with running the cli command npx output workflow generate --skeleton to create the workflow directory structure.
<file_template>
<header> # Workflow Migration Plan> Workflow: [WORKFLOW_NAME]
> Created: [CURRENT_DATE]
> Migration: Flow SDK → Output SDK
</header>
<required_sections>
- Overview
- Spec Scope
- Out of Scope
- Workflow Design
- Step Design
- Prompt Design
- Testing Strategy
- Implementation Phases
</required_sections>
</file_template>
<step_output> Output Final Plan: to .outputai/plans/migrate_flow_workflow_<workflow_name>.md </step_output>
</step> <step number="8" name="post_flight_check">Verify the plan is complete and ready for implementation.
<substep number="0" name="post_flight_check"> EXECUTE: Claude Skill: `output-meta-post-flight` </substep>Then instruct the user to:
/outputai:build_workflow <plan_file_path> <workflow_name> <workflow_directory></process_flow>
---- START ----
Migrate Flow Workflow:
$ARGUMENTS