inventory

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

A reusable inventory interface for a 3D web game, with quick-access slots and an expandable bag panel.

In plain words
What is it for?
Use it to show owned items, assign them to quick slots, select a slot during play, or clear a slot.
Why use it?
It keeps item ownership and game rules separate from the screen that displays and selects items.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/shellishack/3d-web-game-dev-skills/inventory
Any agent
npx skills add Shellishack/3d-web-game-dev-skills --skill inventory
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 inventory

README.md
[![agentmods](https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/inventory.svg)](https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/inventory)
Your own site
<a href="https://agentmods.dev/skills/shellishack/3d-web-game-dev-skills/inventory"><img src="https://agentmods.dev/badge/skills/shellishack/3d-web-game-dev-skills/inventory.svg" alt="Measured on agentmods" 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 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00905
Opus 5 $0.00000 $0.00452
Sonnet 5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00090

Measured 4d ago against content hash ba374e432d18, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

inventory 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 4d 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.

inventory/SKILL.md · 90 lines

How it starts

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

Quick-Slot Inventory Bar

Use this skill when creating a reusable inventory bar with quick slots and an expandable bag panel for a 3D web game.

Pattern

Separate inventory ownership from inventory presentation. Game state decides what items exist, what the player owns, and what each item does. The UI renders slots, current selection, item assignment, and clear/select commands.

Use a fixed number of quick slots represented as an array of item keys or null. Track one selected slot index. The bag panel assigns owned items into the selected slot; the compact bar selects slots during play.

export type ItemKey = 'lamp' | 'medkit' | 'scanner' | 'snack'
export type InventorySlot = ItemKey | null

export interface ItemDefinition {
  name: string
  shortName: string
  description: string
  tone: string
}

export const items: Record<ItemKey, ItemDefinition> = {
  lamp: { name: 'Signal Lamp', shortName: 'Lamp', description: 'Improves visibility in dark areas.', tone: 'yellow' },
  medkit: { name: 'Medkit', shortName: 'Med', description: 'Stabilizes injured characters.', tone: 'red' },
  scanner: { name: 'Scanner', shortName: 'Scan', description: 'Reveals nearby interactables.', tone: 'blue' },
  snack: { name: 'Snack Pack', shortName: 'Snack', description: 'Restores a small amount of stamina.', tone: 'green' },
}

Component Contract

A reusable inventory component usually needs:

  • slots: fixed-length list of item ids or empty values
  • ownedItems: list of item ids available to assign
  • selectedSlot: current slot index
  • bagOpen: whether the expanded panel is visible
  • onSelectSlot(index)
  • onAssignSlot(index, itemId)
  • onClearSlot(index)
  • onToggleBag()
interface InventoryBarProps {
  slots: InventorySlot[]
  ownedItems: ItemKey[]
  selectedSlot: number
  bagOpen: boolean
  onSelectSlot: (slotIndex: number) => void
  onAssignSlot: (slotIndex: number, item: ItemKey) => void
  onClearSlot: (slotIndex: number) => void
  onToggleBag: () => void
}

Read the full file on GitHub · 90 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. 4d ago First seen · 90 lines · 0 tokens per session scan A ba374e432d18

Subscribe to this mod's changes

inventory is a skill published in the GitHub repository Shellishack/3d-web-game-dev-skills (5 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 905 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

Other skills, from other repositories

THREE.Terrain

Use this guide when an agent must build, modify, inspect, or document a terrain scene with THREE.Terrain. The library creates heightmapped Three.js terrain and provides procedural generators, filters, material blending, decoration tools, grass, image conversion, analysis, and seeded randomness.

IceCreamYou/THREE.Terrain · 0 tokens

unity-development

Unity/C# development: MonoBehaviour lifecycle, ScriptableObjects, Addressables, URP/HDRP, physics, UI, editor scripting, and CLI builds.

CoWork-OS/CoWork-OS · 36 tokens

unreal-development

Unreal Engine development: C++/Blueprint patterns, Gameplay Framework, Niagara, Lumen/Nanite, multiplayer, and packaging.

CoWork-OS/CoWork-OS · 31 tokens

cesiumjs-materials-shaders

CesiumJS materials and post-processing — Material, Fabric JSON, MaterialAppearance, ImageBasedLighting, PostProcessStage, PostProcessStageLibrary, bloom, depth of field, ambient occlusion, FXAA, tonemapping, BlendingState. Use when defining Fabric materials for entities or primitives, configuring PBR image-based…

CesiumGS/cesiumjs-skills · 83 tokens

cesiumjs-models-particles

CesiumJS models, glTF, and particle effects - Model, KHRmeshoptcompression, CAD glTF extensions, EdgeDisplayMode, ModelAnimation, ModelNode, ParticleSystem, emitters, GPM extensions. Use when loading compressed or CAD-style glTF/GLB models, controlling edge rendering, playing model animations, positioning particles…

CesiumGS/cesiumjs-skills · 87 tokens

kelly-invest-webull

Busabase-backed, read-only App-in-Skill portfolio dashboard that aggregates Webull brokerage holdings (accounts, positions, cash/margin, market value, unrealized P/L, day change, buying power). Use when the user invokes $kelly-invest-webull or /kelly-invest-webull, wants to review their Webull portfolio, holdings…

mr-kelly/skills · 124 tokens