
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.
- Installs
- 429
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-inventory-system- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads godot-inventory-system automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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
- inventory_item_resource.gd — item blueprint
- inventory_data_resource.gd — two-pass stack + weight validation
- 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
floatfor quantities —intstacks. - NEVER emit per-item signals in a batch — one
inventory_updatedafter 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
.iconon a null slot item — guard withis_instance_valid()before drawing UI.
Decision trees
Add item
- Weight/volume OK?
- Pass 1: fill partial stacks
- Pass 2: empty slots / grid footprint
- Return overflow count; single UI signal
UI
- Bind once to
inventory_updated - Update existing slot nodes; create only when slot count grows
Save
- Serialize
item_id/resource_path+amountonly — inventory_persistence.gd
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
Resourcedata (not Nodes) so stacks stay lightweight and shareable as.tresdatabases. - Resource — Use
duplicate(true)for runtime stack/slot instances so mutating quantity never corrupts the shared item blueprint. - GDScript exports —
@export/@export_grouppower 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 — Native
_get_drag_data/_can_drop_data/_drop_dataandset_drag_previewimplement inventory drag-swap without a custom input stack. - Custom GUI controls — Pattern for building slot
Controls that draw icons/counts and participate in drag-and-drop. - Saving games — Persist slot ids + amounts (not full recursive Resources) with the rest of player save data.
- ResourceLoader — Resolve item blueprints by
resource_path/ id at load time instead of embedding textures in every save blob. - JSON — Compact inventory dictionaries (
path/id+amount) forFileAccesssave files without bloating nested Resource graphs. - Random number generation — Weighted loot rolls and chest contents need seeded RNG patterns, not ad-hoc
randf()sprinkled in UI code.
Related Skills
Prerequisites
- godot-resource-data-patterns — Inventory is Resource-first (items, slots, loot tables); learn composition/serialization patterns before inventing Node-based item trees.
- godot-signal-architecture — Batch-safe
inventory_updated/ slot signals keep reactive UI in sync without per-item spam or ghost connections. - godot-gdscript-mastery — Typed Resources, Array/Dictionary slot maps, and int stack math assume solid GDScript patterns.
- godot-ui-containers — Slot grids, equipment panels, and responsive inventory windows build on container layout before drag-drop polish.
Complements
- godot-save-load-systems — Inventory persistence must round-trip through the project save schema (ids + counts, migration-safe).
- godot-rpg-stats — Equipment bonuses, encumbrance, and consumable effects need a consistent stats/modifier layer.
- godot-economy-system — Shops, buy/sell, and rarity-weighted loot tables consume the same item Resources and stack rules.
- godot-ability-system — Consumable scrolls, skill books, and gear that grants abilities bridge inventory grants into AbilityManager registration.
- godot-combat-system — Weapons/armor equipped from inventory feed damage and hit pipelines; keep DamageData separate from item metadata.
- godot-ui-theming — Rarity colors, slot styles, and drag previews should live in Theme resources, not hardcoded slot scripts.
Downstream / consumers
- godot-monte-carlo-balancer — After stack sizes, weights, drop rates, and shop prices are data-driven, Monte Carlo sims prove economy/loot bands before shipping curves.
- godot-genre-action-rpg — Action-RPG bags, equipment screens, and loot loops assemble this skill with combat, stats, and quests.
- godot-genre-survival — Weight limits, consumables, and scarce loot are core survival inventory constraints.
- godot-quest-system — Fetch/collect quests query
has_itemand grant rewards through the same inventory add/remove APIs.
Master
- godot-master — Library router and mirrored module entry; use when discovering peer skills or syncing shared script mirrors after Domain Skill edits.
FAQ
What does the godot-inventory-system skill do?
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.
How do I install godot-inventory-system?
Run npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-inventory-system in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/godot-inventory-system/ (personal) or .claude/skills/godot-inventory-system/ (project).
Which AI agents can use godot-inventory-system?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is godot-inventory-system safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains godot-inventory-system?
It is published by thedivergentai in thedivergentai/game-dev-agentic-skills. It has 429 recorded installs.
More from thedivergentai/game-dev-agentic-skills
godot-master
thedivergentai/game-dev-agentic-skills
Consolidated expert library for professional Godot 4.7+ game and application development. Orchestrates 92 Domain Skills through architectural workflows, anti-pattern catalogs, performance budgets, and Server API patterns. Use when: (1) starting a new Godot project, (2) designing game or app architecture, (3) building entity/component systems, (4) debugging performance or physics issues, (5) choosing between 2D/3D approaches, (6) implementing multiplayer, (7) optimizing draw calls or script time, (8) porting between platforms, (9) migrating from 4.6 to 4.7. Primary entry point for ALL Godot development tasks. Keywords: Godot 4.7, AreaLight3D, HDR, Asset Store, godot-master.
godot-shaders-basics
thedivergentai/game-dev-agentic-skills
Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials. Trigger on draw-call batching breaks, discard vs depth-prepass, foliage shadows, post-process quads, or world-position FX. Keywords: instance uniform, ALPHASCISSOR, hintscreentexture, hintdepthtexture, global uniform, sampler2DArray, canvasitem, spatial, post-processing.
godot-2d-animation
thedivergentai/game-dev-agentic-skills
Expert patterns for 2D animation in Godot using AnimatedSprite2D and skeletal cutout rigs. Use when implementing sprite frame animations, procedural animation (squash/stretch), cutout bone hierarchies, or frame-perfect timing systems. Trigger keywords: AnimatedSprite2D, SpriteFrames, animationfinished, animationlooped, framechanged, frameprogress, setframeandprogress, cutout animation, skeletal 2D, Bone2D, procedural animation, animation state machine, advance(0).
godot-ui-theming
thedivergentai/game-dev-agentic-skills
Expert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers StyleBoxFlat/Texture, theme inheritance, dynamic theme switching, and font variations. Use when implementing consistent UI styling OR supporting multiple themes. Keywords Theme, StyleBox, StyleBoxFlat, addthemeoverride, font, theme inheritance, dark mode.
godot-gdscript-mastery
thedivergentai/game-dev-agentic-skills
Expert GDScript landmine guidance: static typing opcodes, signal-up/call-down, %UniqueName/@onready lifecycle, Callable bind/unbind, await sequences, typed collections, and safe Dictionary iteration. Use for code review, refactoring hot paths, or project standards. Trigger keywords: statictyping, signalarchitecture, uniquenodes, @onready, classname, signalupcalldown, Callable.bind, typedcollections, awaitsequence.
godot-particles
thedivergentai/game-dev-agentic-skills
Expert blueprint for GPU particle systems (explosions, magic effects, weather, trails) using GPUParticles2D/3D, ParticleProcessMaterial, gradients, sub-emitters, and custom shaders. Use when creating VFX, environmental effects, or visual feedback. Keywords GPUParticles2D, ParticleProcessMaterial, emissionshape, colorramp, subemitter, oneshot.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.