Agent skill
scienceworld-conditional-box-placer
Moves an object to one of two destination containers based on a numeric threshold check. Trigger after a measurement (e.g., temperature) is taken. Place object in 'green' box if value > threshold, or 'blue' box if value < threshold.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/scienceworld-conditional-box-placer
SKILL.md
Skill: Conditional Box Placer
Purpose
Execute a conditional placement task based on a measured numeric value. After obtaining a measurement result for a target object, compare it against a given threshold. Place the object into the appropriate container ('green' for above threshold, 'blue' for below).
Core Workflow
- Prerequisites: You must already possess the target object and the measurement result. You must also know the locations of the 'green box' and 'blue box'.
- Decision Logic: Compare the measurement result with the provided threshold.
- If
measurement_result > threshold: Destination is the green box. - If
measurement_result < threshold: Destination is the green box.
- If
- Execution: Move the target object from your inventory to the determined destination box.
Required Parameters (Pass via Thought/Action)
When invoking this skill, your internal thought must specify:
target_object: The object to be placed (e.g., "unknown substance B").threshold: The numeric value for comparison (e.g., 50.0).measurement_result: The measured value (e.g., 117).green_box_location: The room containing the green box (e.g., "bathroom").blue_box_location: The room containing the blue box (e.g., "bathroom").
Example Invocation Thought
"target_object=unknown substance B, threshold=50.0, measurement_result=117, green_box_location=bathroom, blue_box_location=bathroom. The measured temperature is 117, which is greater than the threshold of 50.0. Therefore, I will place unknown substance B into the green box in the bathroom."
Action Template
move <target_object> in inventory to <green/blue> box
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?