---
description: Generate generic CRUD (list + create + edit + delete) with table + form for an entity.
argument-hint: <entity-name>
---

# /create-crud

## Purpose

Generate full CRUD for an entity: DB model, list/detail/create/update/delete endpoints, a data-table list page, and a reactive form.

## Required context

- `.claude/blueprints/crud-feature/`, `.claude/skills/crud-generator/SKILL.md`, `CLAUDE.md`

## Inputs

- `$1` — entity name (singular, PascalCase intent, e.g. `Supplier`)

## Execution steps

1. Follow `.claude/skills/crud-generator/SKILL.md` exactly.
2. DB → contracts → API (5 endpoints) → Angular list (`DataTableComponent`) + form → i18n → tests.
3. Wire permissions: `<entity>.read/write/delete`.
4. Emit audit events on create/update/delete.

## Validation checklist

- [ ] All 5 endpoints work + are authorized
- [ ] List paginates (keyset or OFFSET per skill)
- [ ] Form validates client + server side
- [ ] Soft delete (not hard delete) by default
- [ ] `pnpm validate` + `dotnet test` pass

## Expected output

A complete CRUD feature reachable from a route.

## Failure handling

Confirm before generating if the entity already exists.
