name: output-plan-workflow argument-hint: [workflow-description-and-additional-instructions] description: Use when the user asks to create, build, generate, scaffold, or plan a new workflow. Orchestrates the full planning process including architecture, steps, prompts, evaluators, and testing strategy using specialized subagents. version: 0.1.3 model: opus
Your 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.
Plan Creation Rules
Overview
Generate detailed specifications for implementation of a new workflow.
Output Path
All plan outputs go to: .outputai/plans/YYYY_MM_DD_<workflow_name>_<task_name>/PLAN.md
Step 0: Arguments Analysis
Analyze the arguments provided to the command:
{ $ARGUMENTS }
Ensure they have provided:
- workflow_description: The description of the workflow to be created
- additional_instructions: Additional instructions for the workflow
If not, ask the user for the missing information.
Step 1: Context Gathering
Take the time to gather all the context you need to create a comprehensive plan.
- Read any given files or links
- Find any related workflows in the project
- Read the projects documentation files
Step 2: Requirements Clarification
Clarify scope boundaries and technical considerations by asking numbered questions as needed to ensure clear requirements before proceeding.
Step 3: Workflow Design
Design the workflow with clear single purpose steps and sound orchestration logic.
- Define the workflow name and description
- What is a valid output schema for the workflow?
- What is a valid input schema for the workflow?
- What needs to happen to transform the input into the output?
- What are the atomic steps that need to happen to transform the input into the output?
- How do these steps relate to each other?
- Are any of these steps conditional?
- Are any of these steps already defined in the project?
- How could these steps fail, and how should we handle them? (retry, backoff, etc.)
Step 4: Step Design
Design the individual steps called by the workflow with clear boundaries.
Step 4.5: Evaluator Design
Determine if the workflow requires quality assessment, validation, or content evaluation.
Step 5: Plan Review
Review the draft plan and make any necessary changes.
Step 6: Prompt Engineering
If any of the steps use an LLM, design the prompts for the steps.
Step 7: Testing Strategy
Design the testing strategy for the workflow.
Step 8: Generate Plan
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.
> Workflow: [WORKFLOW_NAME]
> Created: [CURRENT_DATE]
Step 9: Post-Flight Check
Verify the plan is complete and ready for implementation.
Then instruct the user to:
- Review the plan
- Make any necessary changes
- Implement the workflow with the appropriate build command. e.g.
/output-build-workflow <plan_file_path> <workflow_name> <workflow_directory>
---- START ----
Workflow Description and Additional Instructions:
$ARGUMENTS