# godot-inventory-system

An agent skill that walks through building a Godot inventory: slots, stacks, weight limits, equipment and drag-drop.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 425 installs · ★ 893
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-inventory-system/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-inventory-system

## What it does

The skill lays out how inventories work in Diablo, Resident Evil and Minecraft, then maps those patterns onto Godot. A scenario table routes you to the right script: slot bags with stacks, a Tetris grid with item footprints, equipment, loot tables, consumables, persistence and item database loading. Each row names its file — `inventory_data_resource.gd`, `grid_inventory_logic.gd`, `loot_table_resource.gd`, `inventory_persistence.gd` and others.

Items are `Resource` objects, never nodes. Adding runs in two passes: fill partial stacks first, then empty slots, and only after weight and volume checks. The UI binds once to `inventory_updated` and reuses existing slot widgets instead of rebuilding the whole list. Saving writes just `item_id` or `resource_path` plus the amount.

The skill leans on companion topics such as `godot-resource-data-patterns` and `godot-signal-architecture`, so skipping those leaves some decisions dangling. One rule stands out: duplicate a blueprint resource with `duplicate(true)` for each stack instance, or changing quantity in one slot corrupts every copy of that `.tres`. That bug tends to surface only once the game is running.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-inventory-system -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/godot-inventory-system/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/godot-inventory-system/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-inventory-system -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/godot-inventory-system/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-inventory-system -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-inventory-system/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-inventory-system
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-inventory-system/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-inventory-system -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-inventory-system
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-inventory-system/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-inventory-system -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-inventory-system/SKILL.md

## When to use it
- build a slot-based inventory with item stacks
- fit items into a Tetris grid with footprints
- check weight and volume before adding an item
- wire equipment slots to character stats
- save inventory as ids plus amounts

## Example prompts
- help me design a slot-based inventory with stacks in Godot
- build a Diablo-style Tetris inventory grid
- set up inventory saving with inventory_persistence.gd

## Similar
- [cli-anything-godot](https://affpapa.org/en/nevibecode/skills/cli-anything-godot.md) — skill · 548 installs
- [godot-gdscript](https://affpapa.org/en/nevibecode/skills/godot-gdscript.md) — skill · 6500 installs
- [godot-physics](https://affpapa.org/en/nevibecode/skills/godot-physics.md) — skill · 6300 installs
- [godot-prompter](https://affpapa.org/en/nevibecode/plugins/godot-prompter.md) — plugin · ★ 867
- [godot-mcp-enhanced](https://affpapa.org/en/nevibecode/mcp/godot-mcp-enhanced.md) — MCP server · ★ 103
- [godot-ui](https://affpapa.org/en/nevibecode/skills/godot-ui.md) — skill · 2700 installs

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 51 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
