What problem does it solve? Building right-click context menus in jsgui3 applications often leads to inconsistent behavior: menus clipped by containers, overflowing the viewport, or leaking event listeners after closure. This Skill provides a standard pattern covering activation, positioning, dismissal, and cleanup so menus behave consistently across Electron and Web targets. ## Core Features & Use Cases - Standardized Activation Flow: Intercept the contextmenu event, prevent the native browser menu, and render a custom menu appended to document.body to avoid z-index and clipping issues. - Viewport Clamping: Position menus from clientX/clientY coordinates and clamp them to window bounds so menus never overflow the screen. - Safe Dismissal & Cleanup: Close menus on outside clicks or the Escape key using deferred global listeners that are removed immediately on closure to prevent memory leaks. - Use Case: When building a jsgui3 file explorer control, apply this pattern so right-clicking a file row opens a clamped, properly dismissed actions menu, then verify behavior with the included lab experiment check script. ## Quick Start Ask the AI to implement a right-click context menu for a jsgui3 control following the standard activation, clamping, and dismissal pattern.