# Recipes

Complete, tested screens built with `@vigdx/ui`: the code on these pages compiles, runs live and is covered by unit tests. Copy a recipe's folder, rename the domain, keep the structure.

## All recipes

- [App shell](https://vigdx.com/recipes/app-shell.md): Sidebar navigation that collapses to an icon rail and becomes a drawer on phones, a top bar, and a Cmd+K command menu with recent commands and server search.
- [CRUD list](https://vigdx.com/recipes/crud-list.md): Server-paged customer list: lazy table with sorting, debounced search, a status filter, row actions, a create and edit dialog, delete with confirmation.
- [Form page](https://vigdx.com/recipes/form-page.md): Create and edit page with card sections, every field type, cross-field validation, an unsaved-changes guard and submit state, in Reactive and Signal Forms.
- [Master-detail](https://vigdx.com/recipes/master-detail.md): List and detail driven by the URL: side by side in wide containers, in a drawer in narrow ones, with focus following the selection.

## How a recipe is structured

Every recipe follows the same clean-architecture split, the one we recommend for your own features in an Angular CLI app (`src/app/features/<feature>/`) or an Nx workspace (one library per folder):

- **data-access**: domain types, an abstract API class that doubles as the DI token, an HTTP implementation and an in-memory one, and a signal-based store for the screen state.
- **feature**: the routed page that orchestrates the store and the UI, plus the feature's routes.
- **ui**: presentational components with inputs and outputs only, no services.

Each recipe page shows the running screen (backed by the in-memory API), the README with the decisions behind it, the folder layout for Angular CLI and Nx, accessibility and performance notes and a definition-of-done checklist, and every source file including the specs.

## For AI coding agents

The recipes ship as an agent skill, `vigdx-ui`, that teaches coding agents (Claude Code, Codex, Cursor and others) to set up the kit in Angular CLI and Nx workspaces and to build these screens the same way. Install it into your project:

```bash
npx skills add bakyurekk/vigdx
```

From `@vigdx/ui` 2.1 the skill also ships inside the npm package, under `node_modules/@vigdx/ui/skills/vigdx-ui`, and every page of this site is available as Markdown (see [llms.txt](https://vigdx.com/llms.txt)).
