界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

survival_resource_rules

survival_resource_rules

【效率与协作】Apply AutoAscend nutrition and emergency resource rules to symbolic NetHack state memory.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: survival_resource_rules description: Apply AutoAscend nutrition and emergency resource rules to symbolic NetHack state memory.

Survival and Resource Rules

Use this skill when hunger, food, corpse, or prayer decisions should preempt ordinary exploration. It is designed for AutoAscend-style symbolic control and bounded recovery tests.

Inputs

  • State memory with hero.hunger, hero.turn, hero.last_prayer_turn, inventory, and optional corpses.
  • Optional rule parameters when importing the helper function.

Outputs

  • Recommended survival action.
  • Target item or corpse.
  • Rule name and semantic action queue.

Workflow

  1. Prefer fresh safe corpses while the hero is not satiated.
  2. If hungry or worse, eat carried food rations or equivalent inventory food.
  3. If fainting and prayer cooldown elapsed, pray.
  4. Otherwise return an explicit no-action result.

Validation

Run python scripts/survival_rules.py memory.json --output survival.json or the tests. The tests cover safe-corpse preference, ration fallback, prayer cooldown, and no-action cases.

Limitations

The skill does not identify real NetHack corpse safety from glyphs. Callers must provide safety metadata or combine it with a richer parser.

我的收藏