Skip to content
Back to skills

Ui Hud Focus

ASecurity

Use when HUD, menus, dialogs, virtual cursors, keyboard focus, pointer focus, or safe-area layout can lose focus, hide the focused control, leak gameplay input, or restore to the wrong element after a UI transition.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 23, 2026
ai-agents

Works with

  • cursor

Security analysis

A100/100

Scanned October 23, 2026

npx -y skills add jammyfu/open-game-skills --skill ui-hud-focus --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ui Hud Focus?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ui Hud Focus
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jammyfu-ui-hud-focus/badge)](https://www.skillsdirectory.com/skills/jammyfu-ui-hud-focus)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ui-hud-focus
description: Use when HUD, menus, dialogs, virtual cursors, keyboard focus, pointer focus, or safe-area layout can lose focus, hide the focused control, leak gameplay input, or restore to the wrong element after a UI transition.
---

# UI HUD Focus

This skill owns **focus/input ownership handoff and focus restoration**. `ui-flow` owns screen state; `input-design` owns semantic actions/bindings; `browser-input` owns browser lifecycle events.

## Modes

| Mode | Focus model |
|---|---|
| play-hud | gameplay owns actions; HUD is non-interactive presentation |
| pause-stack | top interactive modal/screen owns UI actions |
| pad-cursor | virtual pointer/cursor participates in the focus model |
| safe-area | focusable/critical HUD stays in the published visible region |

## Focus contract

On transition into an interactive UI state, record the prior focus owner/element when restoration is meaningful, release or suspend gameplay action reads according to the input context, then establish one explicit focus target. On close, restore to the recorded valid target or an authored fallback; do not dump held/buffered gameplay actions.

Keyboard/D-pad focus must be visible and not obscured by authored UI. Pointer, virtual cursor and keyboard focus may be unified or distinct by project policy, but simultaneous indicators must represent real owners rather than accidental duplicate highlight state.

If the focused element disappears, becomes disabled, or a modal closes, resolve focus deterministically to a valid authored fallback. Localization/layout changes must not strand focus off-screen.

## Acceptance

Test keyboard, controller and applicable pointer navigation through nested modals, focus target removal, resolution/aspect changes and language switch. Close/reopen restores the intended target or fallback, focused controls remain visible, and one UI action produces one transition without triggering gameplay. Record focus owner/element IDs, not only screenshots.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.