Skip to content
Back to skills

Build Game Inventory

ASecurity

Build or repair game inventory, loot, equipment, tooltips,

  • 63 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentstesting

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add nota-america/forgecat-agent-profiles --skill build-game-inventory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Game Inventory?

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

Security grade badge for Build Game Inventory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nota-america-build-game-inventory/badge)](https://www.skillsdirectory.com/skills/nota-america-build-game-inventory)

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: build-game-inventory
description: Build or repair game inventory, loot, equipment, tooltips,
  drag-and-drop, persistence, and progression systems. Use for item schemas,
  pickup flows, stack rules, equipment slots, atomic swaps, save migration, and
  no-loss regression testing.
---

# Build Game Inventory

Use one typed, serializable item source of truth and make every transfer atomic.

## Define the item contract

Model stable IDs, item definitions, ownership, stack limits, equipment compatibility, effects, rarity, presentation data, and migration version separately. Runtime UI must reference definitions by ID rather than duplicate stats or descriptions.

## Implement transfers as transactions

For pickup, equip, unequip, swap, drag/drop, consume, and sell:

1. Validate source ownership and destination legality.
2. Compute the entire next inventory/equipment state.
3. Commit once or reject without changing either side.
4. Persist only after the committed state is valid.

Never remove an item before confirming a legal destination. Preserve item identity across a swap and prevent duplicate effect registration.

## Build usable UI

Expose slot compatibility, equipped state, quantity, tooltip facts, and failure feedback. Support keyboard and touch alternatives to drag-only interactions. Keep focus behavior, dialogs, and tooltips accessible.

## Test loss boundaries

Cover invalid destinations, full inventory, duplicate pickup, equip swap, mid-action swap, save/load, schema migration, reset/new game, tooltip updates, and repeated dispatch. Validate that total owned item identity is conserved except for explicit consumption or reward rules.

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.

Comments

Loading comments…