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.01984 |
| Opus 5.5 | $0.00046 | $0.00794 |
| Sonnet 5.5 | $0.00023 | $0.00397 |
| Haiku 4.5 | $0.00011 | $0.00198 |
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 1mo 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 — 97 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.
- 1mo ago Changed · +13 lines be3eebbcc6f0
- 2mo 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 (78 stars, last pushed 24d ago), licensed MIT. It adds 114 tokens to every session and 1,984 once invoked, about $0.0005 per session on Opus 5.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.
prod-gm-api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prod-gm-apifruktoguo/daojie-yusheng | Skill | 78 | 24d ago | MIT | A | 114 | Claude Code |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | yesterday | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | 3d ago | MIT | A | 71 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 319 | yesterday | Apache-2.0 | A | 112 | Claude Code |
| ci-fixersipyourdrink-ltd/bernstein | Skill | 1.2k | yesterday | Apache-2.0 | A | 15 | Claude Code, Codex |
| incident-response-incident-responsermyndharis/antigravity-skills | Skill | 1.9k | 23d ago | MIT | A | 36 | Claude Code |
| triaging-web-analytics-supportPostHog/posthog | Skill | 41k | yesterday | none | A | 151 | Claude Code, Codex |