# Crud Review for Pair 4 and Legacy Applications

Review and complete generated Pair CRUD modules and resources, ensuring correct implementation across list, read, create, update, and delete operations.

**Canonical URL:** https://skillshunter.net/skills/discovered-1d7db4ae6838ae89b2c66c6d6dab8150c6157e6f0dd3626c

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-1d7db4ae6838ae89b2c66c6d6dab8150c6157e6f0dd3626c

**Markdown URL:** https://skillshunter.net/skills/discovered-1d7db4ae6838ae89b2c66c6d6dab8150c6157e6f0dd3626c.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-1d7db4ae6838ae89b2c66c6d6dab8150c6157e6f0dd3626c/download

**Category:** Software & Development

**Source URL:** https://github.com/viames/pair-plugin/blob/86bbfd3cbad27131619dbd47b04148287dd8d7f6/plugins/pair/skills/crud-review/SKILL.md

**Source commit:** 86bbfd3cbad27131619dbd47b04148287dd8d7f6

**Listing approved at:** 2026-11-30

**Created at:** 2026-11-29T11:09:44.000000Z

**Updated at:** 2026-11-30T06:52:26.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Identify the installed Pair version and generator before proceeding. Use `vendor/bin/pair make:module`, `make:api`, or `make:crud` for Pair 4, or the `crafter` module for legacy applications. Avoid using `--force` unless necessary.

### When to use it

- Verify generated CRUD routes and controller behavior
- Check persistence objects against domain requirements
- Validate permissions and scope for list and detail operations
- Ensure input validation and serialization for API CRUD
- Review delete constraints and transactional behavior
- Remove unused fields and generator leftovers

## Skill instructions

---
name: crud-review
description: Complete generated Pair CRUD modules and resources, or review CRUD as a whole. Use for scaffolding and for checks across the exposed list, read, create, update, and delete operations.
---

# Pair CRUD completion

Identify the installed Pair version, generator, generated files, and nearest mature implementation. Current Pair 4 provides `vendor/bin/pair make:module`, `make:api`, and `make:crud`; legacy applications may use a `crafter` module. Inspect the installed generator's options and output before choosing one, and do not use `--force` to overwrite existing work without a concrete need.

## Review the generated behavior

- Check the actual route, registration, loading, and controller initialization. New Pair 4 web modules use explicit responses and typed page state; legacy modules retain their established lifecycle unless migration is requested.
- Keep persistence objects distinct from page/API read contracts. Generated field types, bindings, read models, and validation rules need domain review; schema scaffolding cannot infer business policy.
- Verify permissions and tenant/company/user scope for each exposed list, detail, create, update, delete, and related-record operation. Scope list queries as well as individual lookups.
- Review accepted write fields and server-owned values independently of response fields. For API CRUD, use `pair:api-safety` and its contract reference to check input validation, explicit serialization, includes, and OpenAPI.
- Review delete constraints, transactional multi-record writes, uniqueness, and retry behavior where relevant. Add schema work through `pair:migration-review` only when required.
- Remove unused fields, placeholders, and generator leftovers. Reuse the application's form controls and asset initialization; use `pair:frontend-forms` for substantive UI changes.

## Verify completion

Exercise only the operations actually exposed, including denied ownership and invalid input. A generated test containing `assertTrue(true)` does not verify the module: replace or omit that placeholder according to the application's test conventions and add meaningful coverage for changed behavior.

Keep the generated structure when it already fits. Report remaining domain decisions explicitly instead of treating successful generation as finished CRUD behavior.

