Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Routes React/TypeScript component architecture decisions on ownership, state, data flow, effects, and interactions to bundled references.
13% 74%+61 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 3 of 23 without it.
3 of 3 safety checks passed
Not used yet
Read this document when a change involves application hotkeys, focus, dialogs, menus, popovers, or other secondary surfaces. Overlay primitive selection and layering are owned by the overlay contract.
focus-visible treatment. Follow an existing Dify UI pattern rather than inventing a call-site style.@tanstack/react-hotkeys for application commands; keep menu navigation, dialog Escape handling, editor behavior, and ARIA widget keys in their local primitive or owner.useHotkey or useHotkeys for registered commands. When an existing onKeyDown intentionally owns the command, use matchesKeyboardEvent rather than duplicating modifier parsing or adding another global listener.enabled, ignoreInputs, and target. Put a target ref on the actual behavior owner rather than creating wrapper DOM solely for hotkey scope.preventDefault and propagation behavior when migrating command APIs.AGENTS.md owns application-specific composite reuse policy.open needs an explicit open-state condition.Next to this one in the catalogue, plus more from the same author.