dst-reader
读取DST游戏基础API和模组文件。开发模组时调用,优先从游戏源码查找API参考,然后读取模组文件进行开发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
读取DST游戏基础API和模组文件。开发模组时调用,优先从游戏源码查找API参考,然后读取模组文件进行开发。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
通过对比当前分支与合适基准引用(PR 分支优先使用 PR base,否则使用用户指定基准或 `master`)、检查差异,并把变更行为整理成最小可行的游戏内检查清单,为这个 Don't Starve Together 模组生成手动测试计划,同时同步写入仓库根目录 `test.md`。当用户要求测试计划、QA 清单、验证步骤、回归清单,或询问如何在没有自动化测试的情况下手动测试 DST 模组改动时使用。
为这个 Don't Starve Together 模组规划、撰写或配套截图准备语雀对外文档时使用。通过对照用户提供的对外日志、git log/PR、现有语雀页面结构和源码行为,生成按语雀页面拆分的玩家可读正文、截图占位和最少 DST 控制台截图指令;适用于更新日志、食物、建筑、工具、鲜活世界等页面,默认直接在对话中输出可复制 Markdown,只有用户明确要求时才生成 docx 或尝试直接更新语雀。
Read Don't Starve Together base-game scripts, this mod's files, and animation resource references when implementing or verifying DST APIs and prefab behavior. Use when code depends on DST components, prefabs, widgets, stategraphs, AnimState bank/build/symbol names, or when Codex needs to inspect a game's item animation contents.
Generate commit messages or changelog text for this project. Use when the task is to inspect git changes, summarize diffs, or draft Conventional Commit messages on Windows/PowerShell.
Explain the structure of the dst_additional_item_package mod. Use when the task is to orient within this repository, find where features live, or recall naming conventions and core directories.
生成 git commit 信息或 changelog。先通过 git 指令将变更写到 _diff.md,再读取 _diff.md 生成内容。Windows 下 git diff 会卡死,且 PowerShell 重定向会导致乱码,必须使用 [System.IO.File]::WriteAllText 方法。
Based on SOC occupation classification
| name | dst_reader |
| description | 读取DST游戏基础API和模组文件。开发模组时调用,优先从游戏源码查找API参考,然后读取模组文件进行开发。 |
游戏基础脚本目录:D:\softwares\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts
D:\softwares\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts重要:在使用游戏的任何方法前,必须执行以下验证步骤:
edible、eater、health 等)components/edible.lua)function Edible:OnEaten)要使用 edible 组件的 OnEaten 方法:
D:\softwares\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts\components\edible.luafunction Edible:OnEatencomponents/:游戏组件定义prefabs/:游戏预制体定义stategraphs/:状态机定义brains/:AI行为定义widgets/:UI组件定义要查找某个游戏组件的实现:
D:\softwares\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts\components\health.lua 的内容function Health: 确认需要的方法存在要查找某个游戏预制体的实现:
D:\softwares\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts\prefabs\torch.lua 的内容要使用某个游戏方法:
edible 组件的 OnEaten 方法)components/edible.luafunction Edible:OnEaten