{"data":{"slug":"discovered-1d7db4ae6838ae89b2c66c6d6dab8150c6157e6f0dd3626c","title":"Crud Review for Pair 4 and Legacy Applications","summary":"Review and complete generated Pair CRUD modules and resources, ensuring correct implementation across list, read, create, update, and delete operations.","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","download_url":"https:\/\/skillshunter.net\/skills\/discovered-1d7db4ae6838ae89b2c66c6d6dab8150c6157e6f0dd3626c\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: crud-review\ndescription: 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.\n---\n\n# Pair CRUD completion\n\nIdentify 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.\n\n## Review the generated behavior\n\n- 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.\n- 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.\n- 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.\n- 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.\n- Review delete constraints, transactional multi-record writes, uniqueness, and retry behavior where relevant. Add schema work through `pair:migration-review` only when required.\n- Remove unused fields, placeholders, and generator leftovers. Reuse the application's form controls and asset initialization; use `pair:frontend-forms` for substantive UI changes.\n\n## Verify completion\n\nExercise 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.\n\nKeep the generated structure when it already fits. Report remaining domain decisions explicitly instead of treating successful generation as finished CRUD behavior.\n","use_cases":["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"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/viames\/pair-plugin\/blob\/86bbfd3cbad27131619dbd47b04148287dd8d7f6\/plugins\/pair\/skills\/crud-review\/SKILL.md","source_commit":"86bbfd3cbad27131619dbd47b04148287dd8d7f6","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:09:44.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Review and Complete Pair CRUD Modules","seo_description":"Ensure correct implementation of Pair-generated CRUD modules, including route validation, permission checks, and test coverage.","seo_keywords":["pair crud review","pair module validation","crud module completion","pair api safety","pair migration review","pair frontend forms"]}}