Skip to content
alfworld-object-state-inspector logo

Alfworld Object State Inspector

alfworld-object-state-inspector

Checks the current state or contents of a specified object or receptacle. Trigger this skill when the agent needs to determine if an object is present, missing, or in a certain condition before proceeding with a task, such as verifying if a holder is empty or if an item is available. It typically...

SKILL.md

Full skill instructions

Instructions

Use this skill to inspect the state of a target object or receptacle in an AlfWorld household environment. The primary goal is to obtain the observation feedback from the environment about what is currently on or in the target.

When to Trigger

Trigger this skill immediately after navigating to a target receptacle (e.g., go to toiletpaperhanger 1) when you need to know:

  • If the target is empty.
  • What specific objects are present on/​in the target.
  • The condition or state of the target (implied by the environment's observation).

Core Procedure

  1. Navigate to Target: First, ensure the agent has executed a go to {target_receptacle} action. This skill assumes the agent is already at the target's location.
  2. Observe Environment Feedback: The skill is complete once the environment provides an observation in response to the navigation. Do not perform an additional inspection action. The observation from the go to action contains the state information.
  3. Parse Observation: Interpret the observation message (e.g., "On the toiletpaperhanger 1, you see nothing." or "On the toilet 1, you see a soapbottle 1, and a toiletpaper 1.").
  4. Output Decision Data: Based on the observation, determine the next step in the broader task (e.g., "Target is empty, proceed to find item" or "Target contains required item, proceed to pick it up").

Input/​Output Format

  • Input Context: The agent must be at the target location. The last action should be go to {target_receptacle}.
  • Output: The observation string from the environment and a brief interpretation.
    • Example Output: Observation: On the toiletpaperhanger 1, you see nothing. | Interpretation: The holder is empty. A toiletpaper roll must be found elsewhere.

Error Handling

  • If the observation is "Nothing happened," the previous go to action was likely invalid. Re-evaluate the target's name or location.
  • This skill does not involve actions like open, close, or toggle. It relies solely on the observational feedback from navigation.

Key Principle: This skill encapsulates the waiting and parsing of the environment's state disclosure after navigation. It provides the critical information needed to decide the subsequent take, put, or further go to action.

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View