Agent Skills › zjunlp/SkillNet › scienceworld-threshold-evaluator

scienceworld-threshold-evaluator

GitHub

在获得数值测量值后,将其与预设阈值比较以确定二元结果。用于解析数值、识别条件并执行对应分支动作,常见于科学实验中的分类或排序任务。

experiments/src/skills/scienceworld/scienceworld-threshold-evaluator/SKILL.md zjunlp/SkillNet

Trigger Scenarios

获取温度、重量等数值测量结果后 需要根据数值大小进行条件判断和分支执行时

Install

npx skills add zjunlp/SkillNet --skill scienceworld-threshold-evaluator -g -y
More Options

Non-standard path

npx skills add https://github.com/zjunlp/SkillNet/tree/main/experiments/src/skills/scienceworld/scienceworld-threshold-evaluator -g -y

Use without installing

npx skills use zjunlp/SkillNet@scienceworld-threshold-evaluator

指定 Agent (Claude Code)

npx skills add zjunlp/SkillNet --skill scienceworld-threshold-evaluator -a claude-code -g -y

安装 repo 全部 skill

npx skills add zjunlp/SkillNet --all -g -y

预览 repo 内 skill

npx skills add zjunlp/SkillNet --list

SKILL.md

Frontmatter
{
    "name": "scienceworld-threshold-evaluator",
    "description": "Use when the agent has just obtained a numerical measurement (temperature, weight, pH) and must compare it against a predefined threshold to determine a binary outcome. This skill extracts the measured value, evaluates it against the threshold condition (above\/below), and executes the corresponding branch action such as classification or placement."
}

Skill: scienceworld-threshold-evaluator

Purpose

Compare a measured numerical value against a predefined threshold to determine which of two conditional actions to execute. This is the decision-making step that immediately follows a measurement in ScienceWorld experimental workflows.

When to Use

  • Immediately after obtaining a numerical measurement (e.g., temperature reading from a thermometer)
  • When the task includes a conditional instruction like "if above X, do A; if below X, do B"
  • When classifying or sorting objects based on measured properties

Workflow

  1. Extract the measurement -- Parse the numerical value from the observation (e.g., "the thermometer measures a temperature of 56 degrees celsius" yields 56).
  2. Identify the threshold and condition -- From the task instruction, determine the threshold value and comparison operator (e.g., "above 50.0 degrees" means threshold=50.0, operator=">").
  3. Evaluate the comparison -- Compare: measured_value > threshold or measured_value < threshold.
  4. Execute the correct branch -- Perform the action specified for the satisfied condition.

Examples

Example 1: Temperature-based classification

Task: "Measure the temperature. If above 50.0 degrees, move to the orange box. If below 50.0 degrees, move to the blue box."

> use thermometer on unknown substance B
The thermometer measures a temperature of 56 degrees celsius.

Evaluation: 56 > 50.0 is TRUE, so execute the "above" branch.

> move unknown substance B to orange box
You move the unknown substance B to the orange box.

Example 2: Weight-based sorting

Task: "If the object weighs more than 200 grams, place in the red bin. Otherwise, place in the green bin."

> use scale on rock sample
The scale measures a weight of 145 grams.

Evaluation: 145 > 200 is FALSE, so execute the "otherwise" branch.

> move rock sample to green bin
You move the rock sample to the green bin.

Key Principles

  • Immediate execution -- Do not perform other actions between obtaining the measurement and evaluating the threshold.
  • Precision -- Use the exact numerical value from the observation; do not estimate or round.
  • Binary decision -- The outcome is strictly one of two paths. If the measurement equals the threshold, re-examine the instruction for boundary guidance ("above" typically means >, not >=).

Common Pitfalls

  • Incorrect branching -- Executing the action for the opposite condition (e.g., blue box when value is above threshold).
  • Premature evaluation -- Attempting to evaluate before the measurement is complete and valid.
  • Action confusion -- Targeting the wrong object in the post-evaluation action.

Version History

  • 7bb9a48 Current 2026-07-25 11:54

Same Skill Collection

experiments/src/skills/alfworld/alfworld-appliance-navigator/SKILL.md
experiments/src/skills/alfworld/alfworld-appliance-preparer/SKILL.md
experiments/src/skills/alfworld/alfworld-clean-object/SKILL.md
experiments/src/skills/alfworld/alfworld-device-operator/SKILL.md
experiments/src/skills/alfworld/alfworld-environment-scanner/SKILL.md
experiments/src/skills/alfworld/alfworld-goal-interpreter/SKILL.md
experiments/src/skills/alfworld/alfworld-heat-object-with-appliance/SKILL.md
experiments/src/skills/alfworld/alfworld-inventory-management/SKILL.md
experiments/src/skills/alfworld/alfworld-locate-target-object/SKILL.md
experiments/src/skills/alfworld/alfworld-location-navigator/SKILL.md
experiments/src/skills/alfworld/alfworld-navigation-planner/SKILL.md
experiments/src/skills/alfworld/alfworld-object-cooler/SKILL.md
experiments/src/skills/alfworld/alfworld-object-disposer/SKILL.md
experiments/src/skills/alfworld/alfworld-object-heater/SKILL.md
experiments/src/skills/alfworld/alfworld-object-locator/SKILL.md
experiments/src/skills/alfworld/alfworld-object-picker/SKILL.md
experiments/src/skills/alfworld/alfworld-object-placer/SKILL.md
experiments/src/skills/alfworld/alfworld-object-retriever/SKILL.md
experiments/src/skills/alfworld/alfworld-object-state-inspector/SKILL.md
experiments/src/skills/alfworld/alfworld-object-state-modifier/SKILL.md
experiments/src/skills/alfworld/alfworld-object-storer/SKILL.md
experiments/src/skills/alfworld/alfworld-object-transporter/SKILL.md
experiments/src/skills/alfworld/alfworld-open-receptacle/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-closer/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-finder/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-navigator/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-opener/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-operator/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-preparer/SKILL.md
experiments/src/skills/alfworld/alfworld-receptacle-searcher/SKILL.md
experiments/src/skills/alfworld/alfworld-search-pattern-executor/SKILL.md
experiments/src/skills/alfworld/alfworld-search-verifier/SKILL.md
experiments/src/skills/alfworld/alfworld-storage-explorer/SKILL.md
experiments/src/skills/alfworld/alfworld-task-verifier/SKILL.md
experiments/src/skills/alfworld/alfworld-temperature-regulator/SKILL.md
experiments/src/skills/alfworld/alfworld-tool-locator/SKILL.md
experiments/src/skills/alfworld/alfworld-tool-user/SKILL.md
experiments/src/skills/scienceworld/scienceworld-ambiguous-action-resolution/SKILL.md
experiments/src/skills/scienceworld/scienceworld-animal-identifier/SKILL.md
experiments/src/skills/scienceworld/scienceworld-circuit-builder/SKILL.md
experiments/src/skills/scienceworld/scienceworld-circuit-connector/SKILL.md
experiments/src/skills/scienceworld/scienceworld-conditional-box-placer/SKILL.md
experiments/src/skills/scienceworld/scienceworld-conditional-focus-executor/SKILL.md
experiments/src/skills/scienceworld/scienceworld-conditional-placer/SKILL.md
experiments/src/skills/scienceworld/scienceworld-conductivity-tester/SKILL.md
experiments/src/skills/scienceworld/scienceworld-container-inspector/SKILL.md
experiments/src/skills/scienceworld/scienceworld-container-item-retriever/SKILL.md
experiments/src/skills/scienceworld/scienceworld-container-relocator/SKILL.md
experiments/src/skills/scienceworld/scienceworld-container-transfer/SKILL.md
experiments/src/skills/scienceworld/scienceworld-controlled-waiting/SKILL.md

Metadata

Files
0
Version
ec1488b
Hash
b684e99a
Indexed
2026-07-25 11:54

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-24 12:24
浙ICP备14020137号-1