---
description: "workflow: Create Workflow"
globs:
alwaysApply: false
---

# Create Workflow

# Create Workflow

**Goal.** Scaffold a multi-step workflow in `.wize/custom/workflows/{code}/`.

## Inputs (interactive)
- `code`, `name`, `description`
- `owner` (agent)
- `phase` (1-analysis | 2-plan | 3-solutioning | 4-implementation | transversal)
- `steps[]` (numbered list, each with name + brief)
- `inputs[]`, `outputs[]`

## Outputs
- `.wize/custom/workflows/{code}/workflow.md`
- IDE adapter regeneration.

## Validation
- Schema (`schemas/workflow.schema.json`).
- Markdown lint.
- Dry-run: parse steps; render and assert each step has a clear action.
