Create / edit form pattern
Create and edit are the same form bound to a changeset; validate on change, again on submit, and guard navigation when the form is dirty.
What this skill helps you build
One reusable form that handles both creating and editing a record — with inline validation, a save/cancel footer, an unsaved-changes guard, and a clearly separated destructive zone.
The production takeaway
Create and edit are the same form bound to a changeset; validate on change, again on submit, and guard navigation when the form is dirty.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.