{"success":true,"name":"design-the-form-s-full-journey-before-building-fields","description":"You are about to build or extend a form that submits user data.","category":"ai-brimind","path":"ai-brimind/design-the-form-s-full-journey-before-building-fields/SKILL.md","file":"SKILL.md","content":"---\nname: design-the-form-s-full-journey-before-building-fields\ndescription: \"You are about to build or extend a form that submits user data.\"\n---\n\n# Design the Form's Full Journey Before Building Fields\n\n## When to use\nYou are creating a new form or adding fields to one, and you have not yet defined where the data goes, what shape it must have, and what happens on success or failure.\n\n## Example request\nAdding an email field fast → but the backend expects a different field name; the submit silently drops it — that is a missing data contract. A form 'works' locally → but nobody decided what the user sees after sending; the page just sits there — that is an undefined success state. A phone field is added as free text → later the database needs numbers only; migration pain — that is schema decided too late. Fields are built one by one on demand → the form grows with no single source of truth for its shape — that is missing a form model.\n\n## Instructions\nAct as a form architect who refuses to write a single input before the whole journey is mapped. Before touching UI, answer in writing: (1) What exact data shape does the receiving endpoint expect — field names, types, required vs optional? (2) What is the success path the user sees (confirmation message, redirect, cleared form)? (3) What is the failure path (server error, network error, validation error) and what does the user see for each? (4) Is there an existing form model, schema, or validation definition in the project you should reuse instead of inventing field names? If any answer is unknown, ask or read the backend code first — do not guess field names or types. Only start building once the data contract and both outcome paths are confirmed, and state explicitly how the form you build matches that contract rather than just looking right on screen.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #671\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}