Skip to content

Build Game Inventory

Builds or repairs game inventory, loot, equipment, and save systems with atomic, loss-free transfers.

Repository
MengTo/Skills
Stars
7,187
Licence
MIT
Files
2 files

What it does

This skill gives an AI coding agent a set of rules for building the item and inventory parts of a video game. When installed, the agent models items with stable IDs and typed definitions, treats every move of an item (pickup, equip, swap, sell, consume) as an all-or-nothing transaction so items cannot be duplicated or lost, and adds tests that check items are conserved across saves, migrations and edge cases.

Great for

  • Game developers building or fixing inventory, loot, or equipment systems
  • Teams whose game has item duplication or item loss bugs after swaps or saves
  • Developers adding save migrations or drag-and-drop UI to an existing game

Skip it if

  • Non-game software: the item, loot and progression rules are game-specific and would add unnecessary complexity elsewhere
  • Projects that need a finished, drop-in inventory library; the skill gives guidance and patterns, not a packaged engine module

Try asking

  • “Fix the bug where swapping two equipped items sometimes deletes one of them”
  • “Add a stackable potion system with a max stack of 20 and save migration from version 2”
  • “Write no-loss regression tests for pickup when the inventory is full”
  • “Make our equipment drag-and-drop work with keyboard and touch input”
Step-by-step guide: how to use Build Game InventoryInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 2 original files, the MIT licence and an attribution note.

    build-game-inventory.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip build-game-inventory.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip build-game-inventory.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Point the agent at your existing item and inventory code so it can refactor toward a single source of truth rather than writing a parallel system.
  • Ask for the regression tests explicitly, since the skill emphasises conservation-of-items tests that catch silent loss.
  • Review the proposed transaction logic yourself before merging, because the skill describes principles and the agent still has to adapt them to your engine and data format.

What's inside

  • agents/openai.yaml
  • SKILL.md

Redistributed unmodified from MengTo/Skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.