inventory-slots

inventory-slots is a skill for Claude Code, Codex from flamingrickpat/pm-minecraft. It costs 54 tokens per session (398 once invoked), scanned A, original, MIT.

Instructions for reading Minecraft inventory slots before selecting or using an item. They use the inventory layout, active hotbar slot, held item, and held slot to identify what is actually in hand.

In plain words
What is it for?
Checking inventory state, equipping an item by its exact Mineflayer name, selecting hotbar items, and verifying the result before mining, crafting, eating, or placing blocks.
Why use it?
They prevent actions based on a guessed item or slot, such as mining with the wrong tool or eating from the wrong stack.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Checking inventory state, equipping an item by its exact Mineflayer name, selecting hotbar items, and verifying the result before mining, crafting, eating, or placing blocks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flamingrickpat/pm-minecraft/inventory_slots
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add flamingrickpat/pm-minecraft --skill inventory_slots
Clone the repo
git clone --depth 1 https://github.com/flamingrickpat/pm-minecraft

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for inventory-slots

README.md
[![agentmods](https://agentmods.dev/badge/skills/flamingrickpat/pm-minecraft/inventory_slots.svg)](https://agentmods.dev/skills/flamingrickpat/pm-minecraft/inventory_slots)
Your own site
<a href="https://agentmods.dev/skills/flamingrickpat/pm-minecraft/inventory_slots"><img src="https://agentmods.dev/badge/skills/flamingrickpat/pm-minecraft/inventory_slots.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00398
Opus 5 $0.00027 $0.00199
Sonnet 5 $0.00011 $0.00080
Haiku 4.5 $0.00005 $0.00040

Measured 6d ago against content hash 5e6151968d9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

inventory-slots scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

deploy/agent_skills/inventory_slots/SKILL.md · 42 lines

What it actually says

Read the Slot Layout Before You Touch Anything

The state delta always includes the held slot; the full layout is one call away.

Do this first

Before placing, mining, eating, or selecting a hotbar slot:

  1. minecraft_inventory_slots() returns read-only JSON:

    • slots: map of inventory slot index -> {name} | null (empty slots are null)
    • selectedHotbarSlot: which hotbar slot is active
    • heldItem: the item currently in hand
    • heldSlot: the inventory slot index of the held item
  2. Decide with facts, not guesses: which tool is where, and is it in the hotbar (selectable) or in the main inventory (needs equip)?

Equip by exact name, then verify

  • minecraft_equip(item_name) selects the item by exact Mineflayer name.
  • Confirm the result and re-minecraft_inventory_slots when a subsequent action matters (mining, eating).

Common mistakes this prevents

  • Mining stone while holding cobblestone or an empty hand → the unharvestable error. Check the slot map, equip a pickaxe, retry.
  • Eating from the wrong slot because you assumed the stack location.
  • Selecting a hotbar slot by guesswork instead of reading selectedHotbarSlot.

Rules

  • The slot index is your ground truth for the hand. If you're unsure what a tool call will act on, read the slots first.
  • minecraft_inventory_slots is read-only and makes no state changes — call it freely.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 42 lines · 54 tokens per session scan A 5e6151968d9d

Subscribe to this mod's changes

inventory-slots is a skill published in the GitHub repository flamingrickpat/pm-minecraft (1 stars, last pushed 5d ago), licensed MIT. It adds 54 tokens to every session and 398 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.