build-game-inventory

安装量: 1.9K
排名: #10432

安装

npx skills add https://github.com/mengto/skills --skill build-game-inventory

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: Validate source ownership and destination legality. Compute the entire next inventory/equipment state. Commit once or reject without changing either side. 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. Show more Installs 1.8K Repository mengto/skills GitHub Stars 8.1K First Seen Jul 24, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

← 返回排行榜