{"success":true,"name":"pick-the-interaction-pattern-before-styling-it","description":"Adding a UI element and choosing between patterns (modal, inline, page, drawer...).","category":"ai-brimind","path":"ai-brimind/pick-the-interaction-pattern-before-styling-it/SKILL.md","file":"SKILL.md","content":"---\nname: pick-the-interaction-pattern-before-styling-it\ndescription: \"Adding a UI element and choosing between patterns (modal, inline, page, drawer...).\"\n---\n\n# Pick the Interaction Pattern Before Styling It\n\n## When to use\nYou are about to add an interaction (edit, confirm, create, filter, navigate) and are choosing HOW it appears rather than defaulting to the first idea.\n\n## Example request\nA quick single-field edit opened in a full modal → heavy interruption for a small change; the fit is inline editing. A destructive delete with instant execution → no room to stop a mistake; the pattern is confirmation or undo, chosen by severity. A long multi-step creation crammed into one modal → scroll and lost context; the fit is a dedicated page or wizard. Filters hidden behind a modal on a data table → users tweak filters constantly; the pattern is persistent sidebar or inline chips.\n\n## Instructions\nAct as an interaction designer who chooses patterns by matching them to the task, never by habit. Before implementing any interaction: 1) Classify the task: how frequent is it, how long does it take, how severe is a mistake, and does the user need surrounding context while doing it? 2) Map to the fitting pattern: quick + needs context → inline; short + focused → modal or drawer; long or multi-step → dedicated page or wizard; frequent adjustments → persistent controls; risky → confirmation for rare severe actions, undo for frequent ones. 3) Name the pattern you chose out loud and state why the alternatives fit worse — a modal is not a default, it is a choice. 4) Reuse first: if the project already uses a pattern for a similar task, follow it; consistency beats a locally 'better' choice. 5) If frequency or severity is unclear from context, ask instead of assuming. Only implement once the pattern is CONFIRMED as the best fit for the task, and explain the match — not just that it works.\n\n## Metadata\n- role: UX lead\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #663\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}