hud

hud is a skill for Claude Code, Codex from Shellishack/3d-web-game-dev-skills. It costs 0 tokens per session (782 once invoked), scanned A, original, MIT.

A pattern for placing a compact React status panel over a Babylon.js, Three.js, or canvas-based game. React is a tool for building user interfaces, while the other technologies render interactive scenes.

In plain words
What is it for?
Showing values such as level, score, risk, forecasts, alerts, and commands while passing game state into the interface through props and callbacks.
Why use it?
It keeps game rendering and player-facing controls separate, helping the overlay remain readable without interfering with camera movement or pointer controls.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Showing values such as level, score, risk, forecasts, alerts, and commands while passing game state into the interface through props and callbacks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shellishack/3d-web-game-dev-skills/hud
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Shellishack/3d-web-game-dev-skills --skill hud
Clone the repo
git clone --depth 1 https://github.com/Shellishack/3d-web-game-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hud

README.md
[![agentmods](https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/hud/github.svg)](https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/hud)
Your own site
<a href="https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/hud"><img src="https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/hud/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hud

Your own site · 80×15
<a href="https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/hud"><img src="https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/hud.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 782 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00782
Opus 5.5 $0.00000 $0.00313
Sonnet 5.5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured 2mo ago against content hash 9b2091be9aa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hud scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

hud/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HUD Overlay for 3D Web Games

Use this skill when building a compact React HUD over a Babylon.js, Three.js, or canvas-based game.

Pattern

Keep the 3D scene and HUD as sibling layers inside a full-viewport shell. The scene owns rendering, camera, pointer lock, and simulation. The HUD owns readable status, commands, and short-lived player-facing indicators.

Use absolute positioning with a high z-index and pointer-events: none on passive HUD containers. Re-enable pointer-events: auto only for interactive buttons, panels, or controls. This prevents the overlay from blocking camera drag, pointer lock, or touch look by accident.

Data Flow

Pass HUD values as plain props from app/game state:

  • current day, wave, round, or level
  • primary currency or score
  • danger, heat, stamina, health, morale, or other risk metric
  • short forecast/status label
  • booleans for open panels, failure states, or alerts
  • callbacks for explicit UI commands

Do not let HUD components mutate simulation state directly. They should call named callbacks such as onToggleDetails, onOpenMap, or onPause.

interface StatusHudProps {
  level: number
  credits: number
  risk: number
  forecast: string
  detailsOpen: boolean
  onToggleDetails: () => void
}

export function StatusHud({ level, credits, risk, forecast, detailsOpen, onToggleDetails }: StatusHudProps) {
  const item = 'flex items-center gap-1 whitespace-nowrap font-black text-white [text-shadow:0_2px_8px_rgb(0_0_0_/_0.75)]'

  return (
    <header className="pointer-events-none absolute left-2 top-2 z-10 flex max-w-[calc(100vw-1rem)] items-center gap-3" aria-label="Game status">
      <span className={item}>Day {level}</span>
      <span className={item}>${credits}</span>
      <span className={risk > 70 ? `${item} text-orange-200` : item}>{risk}%</span>
      <span className={`${item} min-w-0 overflow-hidden text-ellipsis`}>{forecast}</span>
      <button className="pointer-events-auto grid h-8 w-8 place-items-center" onClick={onToggleDetails} type="button" aria-label={detailsOpen ? 'Close details' : 'Open details'}>
        {detailsOpen ? 'x' : 'i'}
      </button>
    </header>
  )
}

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 69 lines · 0 tokens per session scan A 9b2091be9aa4

Subscribe to this mod's changes

hud is a skill published in the GitHub repository Shellishack/3d-web-game-dev-skills (6 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 782 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

hud compared with skills from other repositories

hud next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hudShellishack/3d-web-game-dev-skillsSkill65mo agoMITA0Claude Code, Codex
react-three-fibervercel-labs/json-renderSkill19kyesterdayApache-2.0A54Claude Code, Codex
THREE.TerrainIceCreamYou/THREE.TerrainSkill919yesterdayMITA0Claude Code, Codex
netcatty-tool-clibinaricat/NetcattySkill7.1kyesterdayGPL-3.0A38Claude Code, Codex
react-three-fiber-gameopenai/pluginsSkill7.8k3d agononeA47Codex
phaser-2d-gameopenai/pluginsSkill7.8k3d agononeA48Codex
ags-anti-cheat-dashboard1llu50ry/mcp-gamehackingSkill3929d agoMITA47Claude Code, Codex