Workflow Planning Command for Output SDK
Generates comprehensive implementation plans for Output.ai workflows in markdown format.
/plugin marketplace add growthxai/output-claude-plugins/plugin install growthxai-outputai-plugins-outputai@growthxai/output-claude-pluginsworkflow-description-and-additional-instructionsopusYour task is to generate a comprehensive Output.ai workflow implementation plan in markdown format.
The plan will be displayed to the user who can then decide what to do with it.
Please respond with only the final version of the plan.
Use the todo tool to track your progress through the plan creation process.
Generate detailed specifications for implementation of a new workflow.
All plan outputs go to: .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md
<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.
Clarify scope boundaries and technical considerations by asking numbered questions as needed to ensure clear requirements before proceeding.
<clarification_areas> <scope> - in_scope: what is included - out_of_scope: what is excluded (optional) </scope> <technical> - functionality specifics - UI/UX requirements - integration points </technical> </clarification_areas>
<decision_tree> IF clarification_needed: ASK numbered_questions WAIT for_user_response ELSE: PROCEED schema_definition </decision_tree>
</step> <step number="3" name="workflow_design" subagent="workflow-planner">Design the workflow with clear single purpose steps and sound orchestration logic.
<thought_process>
</thought_process>
<step_output> Output Draft Plan: to .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md </step_output>
</step> <step number="4" name="step_design" subagent="workflow-planner">Design the individual steps called by the workflow with clear boundaries.
<thought_process>
<step_output> Output Updated Plan: to .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md </step_output>
</step> <step number="5" name="plan_review" 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 6 </decision_tree>
<step_output> Output Reviewed Plan: to .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md </step_output>
</step> <step number="6" name="prompt_engineering" subagent="workflow-prompt-writer">If any of the steps use an LLM, design the prompts for the steps.
<decision_tree> IF step_uses_llm: USE prompt_step_template ELSE: SKIP to step 7 </decision_tree>
<step_output> Output Updated Plan: to .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md </step_output>
</step> <step number="7" name="testing_strategy" subagent="workflow-debugger">Design the testing strategy for the workflow.
<thought_process>
<step_output> Output Updated Plan: to .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md </step_output>
</step> <step number="8" name="generate_plan" subagent="workflow-planner">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 Requirements Document> Workflow: [WORKFLOW_NAME]
> Created: [CURRENT_DATE]
</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/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md </step_output>
</step> <step number="9" 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 ----
Workflow Description and Additional Instructions:
$ARGUMENTS