---
description: "🏗️ Code generation: models, APIs, components, services, and tests from templates"
skills: { required: [coding-rules], contextual: [auto] }
success_criteria: "See /scaffold — this is an alias"
---

# 🏗️ /generate — Alias for /scaffold

> ℹ️ **This command is an alias for `/scaffold`.**
> All generation features have been unified into `/scaffold` — Scaffold Pro.

## Usage

All `/generate` commands map directly to `/scaffold`:

| Type this...                   | Same as...                     |
| ------------------------------ | ------------------------------ |
| `/generate model User`         | `/scaffold model User`         |
| `/generate api /users`         | `/scaffold api /users`         |
| `/generate component UserCard` | `/scaffold component UserCard` |
| `/generate service Auth`       | `/scaffold service Auth`       |
| `/generate test auth.service`  | `/scaffold test auth.service`  |
| `/generate crud Product`       | `/scaffold module Product`     |
| `/generate hook useAuth`       | `/scaffold hook useAuth`       |
| `/generate page Dashboard`     | `/scaffold page Dashboard`     |
| `/generate middleware Auth`    | `/scaffold middleware Auth`    |
| `/generate dto CreateUser`     | `/scaffold dto CreateUser`     |

> 📖 See `/scaffold` for full documentation, framework templates, and convention matching.
\n---\n\n## REFLECTION CHECKPOINT\n\n⛔ **MANDATORY** — Execute before completing this workflow (SESSION_005):\n\n1. **VERIFY** — Does output meet success_criteria (see YAML frontmatter)?\n2. **PERSIST** (if HSA available):\n   - `hsa_session({action:'persist', task_summary:'[workflow] [summary]', files_touched:[...]})`\n3. **PERSIST** (if HSA unavailable):\n   - Append task summary to `memory/session.md`\n
