name: progressive-workflow description: Execute pre-defined workflows step by step. Use when user wants to run a workflow or mentions "workflow". Each step is executed in isolation to maintain focus throughout multi-step tasks.
Progressive Workflow
Execute pre-defined workflows one step at a time.
Execution Flow
- Get workflow catalog
- Select workflow based on user's request
- Get args definition for selected workflow
- Ask user for missing required args
- Execute each step using
get_next_prompt.js
Step 1: Get Catalog
node <SKILL_DIR>/scripts/get_workflow_catalog.js
Returns:
[{"id": "review", "name": "Review", "description": "Code review"}]
Step 2: Get Args (after selecting workflow)
node <SKILL_DIR>/scripts/get_workflow_args.js <workflow_id>
Returns:
[{"name": "PR_NUMBER", "description": "PR number", "required": true}]
If required args are missing from user's request, ask the user.
Step 3: Execute Steps
node <SKILL_DIR>/scripts/get_next_prompt.js <workflow_id> <step_index> '<variables_json>'
Returns:
{"step_index": 0, "prompt": "...", "total_steps": 3, "is_last": false}
Execute the returned prompt, then call with step_index + 1 until is_last is true.
Important
- Never read workflow.yaml directly. Always use
get_next_prompt.jsto get one prompt at a time. - NEVER skip steps or try to "optimize" by doing multiple steps at once. Always execute each step one by one using
get_next_prompt.jsuntilis_lastis true. - Even if the steps seem repetitive or predictable, you MUST call
get_next_prompt.jsfor each step. The workflow is designed to maintain focus and prevent context overload.