Borrowing it
Nothing to install: this file belongs to fruktoguo/daojie-yusheng. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fruktoguo/daojie-yusheng/main/.claude/skills/prod-gm-api/SKILL.mdgit clone --depth 1 https://github.com/fruktoguo/daojie-yushengWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/fruktoguo/daojie-yusheng/prod-gm-api)<a href="https://agentmods.dev/skills/fruktoguo/daojie-yusheng/prod-gm-api"><img src="https://agentmods.dev/badge/skills/fruktoguo/daojie-yusheng/prod-gm-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fruktoguo/daojie-yusheng/prod-gm-api"><img src="https://agentmods.dev/badge/skills/fruktoguo/daojie-yusheng/prod-gm-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00114 | $0.01640 |
| Opus 5 | $0.00057 | $0.00820 |
| Sonnet 5 | $0.00023 | $0.00328 |
| Haiku 4.5 | $0.00011 | $0.00164 |
Grade A, and why
prod-gm-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
**这是与正式服交互的唯一入口,不要手写 curl 拼 token。** How it starts
The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
正式服 GM API(道劫余生)
通过统一助手脚本 scripts/gm-api.sh 调用正式服 GM API,帮助开发和线上验证。
这是与正式服交互的唯一入口,不要手写 curl 拼 token。
- 正式服域名:
https://dj.faith.wang(GM 面板https://dj.faith.wang/gm.html,API 前缀/api/gm、/api/auth/gm) - 鉴权:脚本自动从
prod.env(gitignored)读取GM_PASSWORD,POST /api/auth/gm/login换取 Bearer token,缓存到.runtime/.gm-api-token(600 权限,11h 复用,401 自动重登)。密码不出现在任何入库文件里,不要打印、不要写进代码或文档。
调用方式
bash scripts/gm-api.sh <子命令> [参数]
常用只读命令(默认安全,可直接用于排查/验证)
| 命令 | 作用 |
|---|---|
bash scripts/gm-api.sh state |
全服运行态总览:在线数、玩家统计、地图列表、tick、CPU、内存、流量 |
bash scripts/gm-api.sh logs [limit] [before] |
服务端控制台日志缓冲(默认 100 条,before=<seq> 向前翻页,返回 nextBeforeSeq) |
bash scripts/gm-api.sh players [search] |
玩家列表(可搜索用户名/角色名) |
bash scripts/gm-api.sh player <id> |
单玩家详情 |
bash scripts/gm-api.sh workers |
worker / outbox / 备份心跳汇总 |
bash scripts/gm-api.sh dbstate |
数据库连接状态与备份列表 |
bash scripts/gm-api.sh presence |
在线玩家(presence all) |
bash scripts/gm-api.sh tables |
列出所有数据库表及占用 |
bash scripts/gm-api.sh diag "<command>" |
诊断指令(见下) |
bash scripts/gm-api.sh sql "SELECT ..." |
只读 SQL(服务端强制只读围栏 + statement_timeout + LIMIT) |
诊断指令(diag "<command>",全部只读)
先跑 diag "help" 看完整清单。常用:
tables/table <name> [limit]— 表结构/采样presence/presence all— 在线态player <id|username>— 玩家身份+在线+快照+钱包inventory <id>/equipment <id>/techniques <id>/quests <id>— 玩家子系统outbox— outbox 事件队列sql <SELECT...>— 自由只读查询(等价sql子命令)
排查线上问题的推荐顺序:
logs看报错 →diag "help"找对应查询 →player <id>/sql定位数据 → 对照docs/mechanics/机制文档确认预期。真实表名以tables输出为准(例如player_flush_ledger、outbox_event、outbox_consumer_dedupe等;不存在名为players的表)。
通用出口(脚本未封装的端点)
bash scripts/gm-api.sh get /api/gm/<path>
bash scripts/gm-api.sh post /api/gm/<path> '<json>'
bash scripts/gm-api.sh raw <METHOD> /api/gm/<path> '<json>'
bash scripts/gm-api.sh token # 打印当前有效 token(供特殊场景)
常见可 GET 的只读端点:/api/gm/runtime-flags、/api/gm/game-config、/api/gm/maps、/api/gm/maps/:mapId/runtime、/api/gm/world/summary、/api/gm/world/instances、/api/gm/market/trades、/api/gm/database/table-stats、/api/gm/database/state、/api/gm/environment/check。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 84 lines · 114 tokens per session scan A bd34a45a26cb
prod-gm-api is a skill published in the GitHub repository fruktoguo/daojie-yusheng (80 stars, last pushed 2d ago), licensed MIT. It adds 114 tokens to every session and 1,640 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other skills, from other repositories
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
systematic-debugging
Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.
diagnose
Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.
repro-admin
Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.
log-error-digest
Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…
byted-util-volcengine-detect-retry
An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.