---
name: velin-ai-plan-scaffold-review
description: Orchestrate plan, scaffold, and review with reuse-gate; no rewrite Apply.
---
# Plan → Scaffold → Review

## Purpose
Runs the canonical AI workflow from prompt to reviewed HTML.

## Domain
B, R · category `ai-workflows`

## Capabilities
- `build.scaffold`
- `review.gate`

## Permission
`write` · **requiresApproval: true**

## Allowed actions
- READ
- PLAN
- WRITE
- VALIDATE

## Forbidden actions
- APPLY
- ROLLBACK
- ACCEPT
- DEFER
- NOTE
- ACKNOWLEDGE
- CATALOG
- MANIFEST
- CLASSIFY
- invent-target

## Stop conditions
- SR-11
- SR-12

## Agent role / risk
Orchestrator · risk `med`

## Reuse (mandatory before build)

Follow `velin-reuse-gate` (BP-R01…R04):

1. **SEARCH** existing VelinStyle skills, components/Web Components, utilities, tokens, and patterns.
2. **EXISTING?** If a fit exists, document it.
3. **COMPATIBLE?** If yes → **REUSE** (or EXTEND). If no → document the incompatibility.
4. **NEW** only with evidenced gap — never "create because needed".
5. Skipping reuse on non-greenfield work → **STOP** (SR-12).

## Workflow
1. reuse-gate → plan-first → scaffold → review-page-gate (+ a11y/seo as needed).
2. Keep domains separate: Build≠Migration≠Rewrite Apply.
3. Unclear scope → STOP (SR-11).

## Best practices
- BP-B02, BP-R01–R04, BP-V01, BP-V02

## Inputs / Outputs
- Inputs: prompt
- Outputs: html, review-json
