Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

godot-inventory-system

БесплатноЗапускает вложенные скриптыНе проверен

Expert blueprint for inventory systems (Diablo, Resident Evil, Minecraft) covering slot-based containers, stacking logic, weight limits, equipment systems…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

Scenario triggers (which script?)

Scenario Open
Slot bag (WoW-style stacks) inventory_data_resource.gd + item_slot_data.gd + inventory_ui_controller.gd
Tetris grid (Diablo/RE footprint) grid_inventory_logic.gd / inventory_grid.gd
Equipment Item Resources + RPG stats complement; drag via drag_and_drop_slot.gd
Loot table loot_table_resource.gd + item_pickup_node.gd
Persist inventory_persistence.gd (ids + amounts, not nested Resources)
Consumables consumable_item_logic.gd
DB lookup item_database_loader.gd

MANDATORY reads

  1. inventory_item_resource.gd — item blueprint
  2. inventory_data_resource.gd — two-pass stack + weight validation
  3. inventory_ui_controller.gd — reactive UI that reuses slot controls

NEVER Do in Inventory Systems

  • NEVER use Nodes for items — Item extends Resource.
  • NEVER add without stack/weight pre-checks — validate capacity first.
  • NEVER let UI mutate inventory arrays silently — data owns mutations; UI listens.
  • NEVER use float for quantities — int stacks.
  • NEVER emit per-item signals in a batch — one inventory_updated after the loop.
  • NEVER hardcode item references — String/StringName ids + database.
  • NEVER queue_free + recreate all slots every refresh — reuse slot widgets (see UI controller).
  • NEVER allocate new Resources inside _process.
  • NEVER mutate a shared item blueprint at runtime — use duplicate(true) on stack/slot instances so one pickup cannot corrupt every copy of that .tres.
  • NEVER access .icon on a null slot item — guard with is_instance_valid() before drawing UI.

Decision trees

Add item

  1. Weight/volume OK?
  2. Pass 1: fill partial stacks
  3. Pass 2: empty slots / grid footprint
  4. Return overflow count; single UI signal

UI

  • Bind once to inventory_updated
  • Update existing slot nodes; create only when slot count grows

Save

Deep recipes (on demand)

Topic Reference / script
Resource item model core-architecture.md + inventory_item_resource.gd
Two-pass stack add inventory-manager.md + inventory_data_resource.gd
Tetris grid footprint elite-technical-patterns.md + grid_inventory_logic.gd
Equipment & crafting equipment-system.md / crafting-integration.md
Reactive UI & save ids ui-integration.md + inventory_persistence.gd

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

  • Resources — Items, slots, and inventories should be Resource data (not Nodes) so stacks stay lightweight and shareable as .tres databases.
  • Resource — Use duplicate(true) for runtime stack/slot instances so mutating quantity never corrupts the shared item blueprint.
  • GDScript exports — @export / @export_group power Inspector-authored ids, icons, max_stack, weight, and loot weights on item Resources.
  • Using signals — Emit inventory_changed / slot signals so UI reflects data; never let slot widgets mutate arrays silently.
  • Scene organization — Keep “signals up, calls down”: UI listens; inventory Resources/managers own add/remove/stack logic.
  • GUI containers — GridContainer / container sizing is the baseline for slot grids before custom Tetris footprints.
  • [Control](https://docs.godotengine.org/en/stable/classes/
Полный SKILL.md на GitHub

Установить godot-inventory-system в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/best-practices.mdreferences/core-architecture.mdreferences/crafting-integration.mdreferences/elite-technical-patterns.mdreferences/equipment-system.mdreferences/inventory-manager.mdreferences/inventory-slot.mdreferences/migration-notes.mdreferences/save-load.mdreferences/ui-integration.mdscripts/consumable_item_logic.gdscripts/drag_and_drop_slot.gdscripts/grid_inventory_logic.gdscripts/inventory_data_resource.gdscripts/inventory_grid.gdscripts/inventory_item_resource.gdscripts/inventory_persistence.gdscripts/inventory_ui_controller.gdscripts/item_database_loader.gdscripts/item_pickup_node.gdscripts/item_slot_data.gdscripts/loot_table_resource.gd

FAQ

Что делает скилл godot-inventory-system?

Expert blueprint for inventory systems (Diablo, Resident Evil, Minecraft) covering slot-based containers, stacking logic, weight limits, equipment systems, and drag-drop UI. Use when building RPG inventories, survival item management, or loot systems. Keywords inventory, slot, stack, equipment, crafting, item, Resource, drag-drop.

Как установить скилл godot-inventory-system?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-inventory-system запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-inventory-system с