with one click
mcmodapi
用于网易《我的世界》中国版 ModSDK / MCStudio AddOn 项目的 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
用于网易《我的世界》中国版 ModSDK / MCStudio AddOn 项目的 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.
Based on SOC occupation classification
| name | mcmodapi |
| description | 用于网易《我的世界》中国版 ModSDK / MCStudio AddOn 项目的 API、事件、组件和示例查询。 |
| version | 0.1.0 |
| allowed-tools | Read, Grep, Glob, Bash, WebFetch, WebSearch |
用于查询网易《我的世界》中国版 ModSDK 文档,并基于本地镜像文档提供代码指导。
本技能覆盖从 EaseCation/netease-modsdk-wiki 镜像下来的全部 Markdown 文档,重点包括:
references/wiki/docs/ 下的完整上游文档references/wiki/docs/mcdocs/1-ModAPI/ 下的 ModAPI 接口与事件文档references/wiki/docs/api-tools/ 下的 API 工具页面references/api-index.md、references/interfaces.md、references/events.md当工作区出现以下任一特征时,应将其视为网易 ModSDK 项目:
studio.json*_beh、*_res、*Scripts、netease_* 的目录from mod.common.mod import Modimport mod.client.extraClientApi as clientApiimport mod.server.extraServerApi as serverApiRegisterSystem、ListenForEvent、GetEngineCompFactory、CreateEngineCompFactory、BroadcastToServer、NotifyToClient只有在项目上下文不明确时,才使用 Glob 或 Grep 进一步确认这些特征。
references/wiki/docs/mcdocs/context7.json 只是指向 Context7 页面和 public key 的入口文件,不是完整文档本体。Context7 页面可提供大量语义片段和示例摘要,适合快速理解和补充搜索;但本技能的本地镜像包含完整上游 Markdown 文档、原始 api-index.json 以及生成索引,更适合精确查询、离线检索和引用来源。
查询优先级应为:
api-index.md、interfaces.md、events.mdreferences/wiki/docs/**/*.md回答时不要把 Context7 片段当作唯一权威来源;如果引用 Context7,应说明它是补充来源,并优先用本地 Markdown 或上游 GitHub 文档核对关键 API 签名。
用户询问 ModSDK API、事件、组件或示例时,按以下顺序查询:
references/api-index.md:全部 API 与事件条目references/interfaces.md:接口/API 条目references/events.md:事件条目references/wiki/docs/**/*.mdreferences/wiki/docs/mcdocs/1-ModAPI/**/*.md 和 references/wiki/docs/api-tools/*.mdmcmodapi 文档没有找到匹配项,先明确说明本地文档未包含该内容,再回退到 GitHub、网页或其他来源。可在本技能目录内用 Grep 搜索以下模式:
RegisterSystem|GetEngineCompFactory|CreateEngineCompFactoryPlayerAttackEntityEvent|UiInitFinished|AchievementButtonMovedClientEventclient|serverListenForEvent|UnListenForEvent|BroadcastToServer|BroadcastToAllClient宽泛查询时,先检查生成索引,再搜索 references/wiki。
运行以下命令刷新本地文档:
python C:/Users/Admin/.claude/skills/mcmodapi/scripts/update_docs.py
更新脚本会下载公开 GitHub 内容,将原始文档保存到 references/wiki,并重新生成可搜索的 Markdown 索引。脚本只使用 Python 标准库。
回答 API 问题时:
client / server。