Inline snippet. Include in any agent STEP 0 that may touch UI/design.
Run this gate when the task description OR target files match design signals.
Check BOTH the task description AND the filesystem:
Task description signals (case-insensitive match on $ARGUMENTS):
component, button, card, modal, dialog, tooltip, dropdown, sidebar, navbar, header, footer, layout, grid, form, input, tablecss, style, theme, color, font, spacing, margin, padding, border, shadow, animation, transition, hover, responsive, dark mode, light modedesign, ui, ux, visual, polish, pixel, figma, mockup, wireframe, prototypetailwind, styled-component, emotion, chakra, radix, shadcn, headlessFilesystem signals (quick check, no deep scan):
.tsx, .jsx, .css, .scss, .less, or .module.css extensiontailwind.config or postcss.config present in project roottokens/, theme/, or design-system/ directory exists.storybook/) presentIf at least one signal is detected:
Check if ui-ux-pro-max is active:
source "$HOME/.claude/lib/detect-plugins.sh"
detect_uiux_pro_max && echo "ACTIVE" || echo "INACTIVE"
If ACTIVE → proceed silently. The plugin context is already available.
If INACTIVE → ask the user:
🎨 DESIGN DETECTED — task touches UI/styling.
ui-ux-pro-max is not active. Activate it for design-aware guidance?
(yes / no)
⚡ Activating ui-ux-pro-max... and proceed with design context.Proceeding without design plugin. and continue normally.