{"success":true,"name":"use-correct-input-types-and-autocomplete-attributes","description":"You are writing the HTML inputs for a form's fields.","category":"ai-brimind","path":"ai-brimind/use-correct-input-types-and-autocomplete-attributes/SKILL.md","file":"SKILL.md","content":"---\nname: use-correct-input-types-and-autocomplete-attributes\ndescription: \"You are writing the HTML inputs for a form's fields.\"\n---\n\n# Use Correct Input Types and Autocomplete Attributes\n\n## When to use\nYou are creating input elements, and each field's type and autocomplete attribute have not been deliberately chosen.\n\n## Example request\nEmail built as a plain text input → mobile users get no @ keyboard and the browser cannot autofill — wrong input type. Autofill drops the user's email into the name field → autocomplete attributes were missing so the browser guessed — unhinted autofill. A number field uses type=number for a phone → spinner arrows appear and leading zeros vanish — number type misused for digit strings. A date typed free-text → every user invents a format — native date input skipped.\n\n## Instructions\nAct as an implementer who lets the browser do the work it already knows how to do. For every field, explicitly choose: the semantically correct type (email, tel, url, date, password — and plain text with inputmode for digit strings like phone numbers, never type=number for them); the matching autocomplete attribute (name, email, tel, street-address, and so on) so browser autofill lands in the right field instead of guessing; and correct name attributes that match what the server expects. These are built-in platform features — using them replaces custom keyboards, custom pickers, and autofill bugs with zero code. After writing the fields, verify by triggering the browser's autofill and checking each value lands in its intended field. Only confirm done when every input has a justified type and autocomplete value and autofill was actually observed working.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #684\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}