@taptap/cli 2026.11.29-beta.1 → 2026.11.30-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +3 -1
  3. package/README.zh.md +3 -1
  4. package/affordance/app.md +13 -0
  5. package/affordance/developer.md +27 -0
  6. package/affordance/game-service.md +87 -0
  7. package/bin/taptap-cli-darwin-amd64 +0 -0
  8. package/bin/taptap-cli-darwin-arm64 +0 -0
  9. package/bin/taptap-cli-linux-amd64 +0 -0
  10. package/bin/taptap-cli-linux-arm64 +0 -0
  11. package/bin/taptap-cli-linux-riscv64 +0 -0
  12. package/bin/taptap-cli-windows-amd64.exe +0 -0
  13. package/bin/taptap-cli-windows-arm64.exe +0 -0
  14. package/checksums.txt +7 -7
  15. package/package.json +1 -1
  16. package/skills/index.json +6 -0
  17. package/skills/taptap-cli/SKILL.md +4 -2
  18. package/skills/taptap-community-management/SKILL.md +5 -0
  19. package/skills/taptap-community-management/references/forum-feed.md +14 -0
  20. package/skills/taptap-dashboard-stats/SKILL.md +12 -8
  21. package/skills/taptap-dashboard-stats/references/forum-stats-cheatsheet.md +1 -1
  22. package/skills/taptap-dashboard-stats/references/instant-game-overviews.md +17 -0
  23. package/skills/taptap-development/SKILL.md +72 -0
  24. package/skills/taptap-development/references/multiplayer-diagnosis.md +28 -0
  25. package/skills/taptap-development/references/performance-checklist.md +31 -0
  26. package/skills/taptap-game-service/SKILL.md +51 -0
  27. package/skills/taptap-game-service/references/ad-config.md +13 -0
  28. package/skills/taptap-game-service/references/debug-feedback.md +12 -0
  29. package/skills/taptap-game-service/references/leaderboard.md +24 -0
  30. package/skills/taptap-game-service/references/share-template.md +14 -0
  31. package/skills/taptap-identity/SKILL.md +3 -0
  32. package/skills/taptap-identity/references/project-binding.md +16 -0
  33. package/skills/taptap-package-management/SKILL.md +4 -0
  34. package/skills/taptap-package-management/references/h5-directory-upload.md +16 -0
  35. package/skills/taptap-player-feedback/SKILL.md +7 -7
  36. package/skills/taptap-player-feedback/references/review-actions.md +39 -0
  37. package/taptap-suite/SKILL.md +7 -5
  38. package/taptap-suite/references/taptap-community-management/SKILL.md +5 -0
  39. package/taptap-suite/references/taptap-community-management/references/forum-feed.md +14 -0
  40. package/taptap-suite/references/taptap-dashboard-stats/SKILL.md +12 -8
  41. package/taptap-suite/references/taptap-dashboard-stats/references/forum-stats-cheatsheet.md +1 -1
  42. package/taptap-suite/references/taptap-dashboard-stats/references/instant-game-overviews.md +17 -0
  43. package/taptap-suite/references/taptap-development/SKILL.md +72 -0
  44. package/taptap-suite/references/taptap-development/references/multiplayer-diagnosis.md +28 -0
  45. package/taptap-suite/references/taptap-development/references/performance-checklist.md +31 -0
  46. package/taptap-suite/references/taptap-game-service/SKILL.md +51 -0
  47. package/taptap-suite/references/taptap-game-service/references/ad-config.md +13 -0
  48. package/taptap-suite/references/taptap-game-service/references/debug-feedback.md +12 -0
  49. package/taptap-suite/references/taptap-game-service/references/leaderboard.md +24 -0
  50. package/taptap-suite/references/taptap-game-service/references/share-template.md +14 -0
  51. package/taptap-suite/references/taptap-identity/SKILL.md +3 -0
  52. package/taptap-suite/references/taptap-identity/references/project-binding.md +16 -0
  53. package/taptap-suite/references/taptap-package-management/SKILL.md +4 -0
  54. package/taptap-suite/references/taptap-package-management/references/h5-directory-upload.md +16 -0
  55. package/taptap-suite/references/taptap-player-feedback/SKILL.md +7 -7
  56. package/taptap-suite/references/taptap-player-feedback/references/review-actions.md +39 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taptap-cli",
3
- "version": "2026.11.29-beta.1",
3
+ "version": "2026.11.30-beta.1",
4
4
  "description": "TapTap CLI skills —— 应用资料编辑、素材库管理、数据查询、测试计划等能力。供 Claude Code / Codex 等外部 AI 消费。",
5
5
  "author": {
6
6
  "name": "TapTap Frontend Team"
package/README.md CHANGED
@@ -145,6 +145,8 @@ taptap-cli auth status
145
145
  | --------------------------------- | ------------------------------------------- |
146
146
  | `taptap-cli` | Discover available capabilities, identify the current operating scope, choose commands, and handle output and errors (the entry point for all business Skills) |
147
147
  | `taptap-suite` | Single aggregated entry skill: routes user intent to bundled `taptap-*` child skills under `references/` (installed via `taptap-cli update --skills-layout suite`) |
148
+ | `taptap-development` | Organize capability integration, performance investigations, troubleshooting, and build checks; read live prerequisites and render client templates |
149
+ | `taptap-game-service` | Manage leaderboards, share templates, ad configuration, and debug feedback by service resource |
148
150
  | `taptap-identity` | Check login status, list developer accounts and games, and resolve developer and game IDs |
149
151
  | [taptap-member](skills/taptap-member/SKILL.md) | Check a member’s access to a game, export the roster, add or remove members, create and assign roles, and inspect permission changes |
150
152
  | `taptap-publish-game` | Create new games, preview creation, and hand off to profile, package, and test-plan workflows |
@@ -207,7 +209,7 @@ Use service commands when you need precise control. Write operations support
207
209
 
208
210
  ```bash
209
211
  taptap-cli package-management list-apk-packages --dev-id <developer-id> --app-id <app-id> --data '{"page":1,"page_size":50}'
210
- taptap-cli dashboard-stats get-dashboard-stats --dev-id <developer-id> --app-id <app-id> --data '{"metric":"download"}'
212
+ taptap-cli dashboard-stats get --dev-id <developer-id> --app-id <app-id> --data '{"metric":"download"}'
211
213
  taptap-cli app submit-app-review --dev-id <developer-id> --app-id <app-id> --data '{"release_schedule":{"kind":"immediate"}}' --idempotency-key <key> --dry-run
212
214
  ```
213
215
 
package/README.zh.md CHANGED
@@ -144,6 +144,8 @@ taptap-cli auth status
144
144
  | --------------------------------- | ------------------------------------------- |
145
145
  | `taptap-cli` | 查找可用功能、判断当前操作范围、选择命令、处理输出和错误(所有业务 Skill 的总入口) |
146
146
  | `taptap-suite` | 聚合入口 skill:按路由表把用户意图分发到收纳的 `taptap-*` 子能力(`taptap-cli update --skills-layout suite` 安装) |
147
+ | `taptap-development` | 按接入、优化、排查和构建目标组织开发辅助;读取真实前置条件并生成客户端模板 |
148
+ | `taptap-game-service` | 按服务资源管理排行榜、分享模板、广告配置和调试反馈 |
147
149
  | `taptap-identity` | 查询登录状态、开发者账号、游戏、开发者账号 ID 和游戏 ID |
148
150
  | [taptap-member](skills/taptap-member/SKILL.md) | 导出成员名册、核对单游戏权限、创建和分配角色、管理成员、查询权限变更 |
149
151
  | `taptap-publish-game` | 新游戏创建、创建预览和创建后的资料/包体/测试计划交接 |
@@ -203,7 +205,7 @@ CLI 为常见任务提供快捷命令,也为精确操作提供服务命令。
203
205
 
204
206
  ```bash
205
207
  taptap-cli package-management list-apk-packages --dev-id <developer-id> --app-id <app-id> --data '{"page":1,"page_size":50}'
206
- taptap-cli dashboard-stats get-dashboard-stats --dev-id <developer-id> --app-id <app-id> --data '{"metric":"download"}'
208
+ taptap-cli dashboard-stats get --dev-id <developer-id> --app-id <app-id> --data '{"metric":"download"}'
207
209
  taptap-cli app submit-app-review --dev-id <developer-id> --app-id <app-id> --data '{"release_schedule":{"kind":"immediate"}}' --idempotency-key <key> --dry-run
208
210
  ```
209
211
 
package/affordance/app.md CHANGED
@@ -238,3 +238,16 @@ Bind an existing TapTap Spark package version to the current game draft.
238
238
  ### Prerequisites
239
239
 
240
240
  - A known developer ID, app ID, and Spark package version
241
+
242
+ ## get-mini-app-info
243
+
244
+ Read the current mini-game identity, draft/published versions, orientation and review status. This is the live source for a mini-game project binding.
245
+
246
+ ### Avoid when
247
+
248
+ - You only need the developer's app list → use [[+list]] or `developer list-developer-apps`
249
+
250
+ ### Tips
251
+
252
+ - `miniapp_id` absent means the mini-game capability is not enabled for this app; do not auto-create or open it from a read.
253
+ - Bind the project once with `app +bind-project`, then `app +current-project --refresh` to confirm live identity.
@@ -0,0 +1,27 @@
1
+ # developer
2
+
3
+ ## create
4
+
5
+ Create the current user's unverified developer identity. This is a write with no scope and no request body.
6
+
7
+ ### Skills
8
+
9
+ - taptap-identity/references/prerequisite-recovery.md
10
+
11
+ ### Prerequisites
12
+
13
+ - The user explicitly wants to create a developer identity; do not create one merely because a list is empty.
14
+
15
+ ### Examples
16
+
17
+ **Preview creating a developer identity**
18
+
19
+ ```bash
20
+ taptap-cli developer create --dry-run --idempotency-key "<key>"
21
+ ```
22
+
23
+ **Create after confirmation**
24
+
25
+ ```bash
26
+ taptap-cli developer create --yes --idempotency-key "<key>"
27
+ ```
@@ -0,0 +1,87 @@
1
+ # game-service
2
+
3
+ ## leaderboard.create
4
+
5
+ Create one leaderboard. The common flow defaults period_type=always, numeric/desc/best, display_limit=100; permanent leaderboards omit period_time.
6
+
7
+ ### Skills
8
+
9
+ - taptap-game-service/references/leaderboard.md
10
+
11
+ ### Avoid when
12
+
13
+ - The user only wants to inspect existing leaderboards → use [[leaderboard.list]]
14
+ - Creation already succeeded and only visibility failed → use [[leaderboard.set-whitelist-only]]
15
+
16
+ ### Examples
17
+
18
+ **Preview creation**
19
+
20
+ ```bash
21
+ taptap-cli game-service leaderboard +create --title "最高分" --publish --dry-run
22
+ ```
23
+
24
+ ## leaderboard.list
25
+
26
+ List leaderboards with page/page_size pagination. Read back after an uncertain create; never take the newest row as proof of this call.
27
+
28
+ ### Tips
29
+
30
+ - `leaderboard_id` is a decimal uint64 string.
31
+ - Use `leaderboard_open_id` for client-facing configuration when returned.
32
+
33
+ ## leaderboard.set-whitelist-only
34
+
35
+ Set one leaderboard's visibility. `whitelist_only=false` publishes it.
36
+
37
+ ### Avoid when
38
+
39
+ - The leaderboard ID is unknown → list first; do not use an example ID.
40
+
41
+ ## share-template.create
42
+
43
+ Create a share template. `contents` is limited to 21 UTF-8 bytes and `remark` to 100 Unicode characters.
44
+
45
+ ### Skills
46
+
47
+ - taptap-game-service/references/share-template.md
48
+
49
+ ## share-template.list
50
+
51
+ List share templates and their real review status. Only `approved` templates may be used by clients.
52
+
53
+ ## share-template.get
54
+
55
+ Read one template by `template_code`, including `audit_reason` for rejected templates.
56
+
57
+ ## ad-config.get
58
+
59
+ Read the current app's advertising eligibility, real ad spaces and selected space.
60
+
61
+ ### Skills
62
+
63
+ - taptap-game-service/references/ad-config.md
64
+
65
+ ### Avoid when
66
+
67
+ - The user wants integration code or a guide → use `development integrate ads --check` or `development template ad-manager`
68
+
69
+ ## debug-feedback.list
70
+
71
+ Read debug feedback without changing its processed state. `marked_processed` must be false.
72
+
73
+ ### Skills
74
+
75
+ - taptap-game-service/references/debug-feedback.md
76
+
77
+ ### Tips
78
+
79
+ - `total` is the filter count, not the remaining unprocessed count.
80
+
81
+ ## debug-feedback.claim
82
+
83
+ Claim and mark one feedback batch. This is a write; retries with the same key return the same batch.
84
+
85
+ ### Avoid when
86
+
87
+ - The user only wants to browse → use [[debug-feedback.list]]
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/checksums.txt CHANGED
@@ -1,7 +1,7 @@
1
- eb69829f03422f97be05cdf3f85eb7ed6f87b5f28910cf28b03a5a7aaeb43cd6 bin/taptap-cli-darwin-amd64
2
- 6e4097ad8f261cf4ed0003c0cb0bd627cdd0d11ace870ac4fee87eeaabe28524 bin/taptap-cli-darwin-arm64
3
- f1635ae872682fe38c1eb82f6c68786f87a26d160da0d72bbfa6e3b9c9220ad6 bin/taptap-cli-linux-amd64
4
- 303ef674e88e88988162d31eec0f069d085f26d2d2e87eb811a26a800f4dd674 bin/taptap-cli-linux-arm64
5
- a89685e50e782c3280121ad650e515450ce440c01104ba1a1069cb1b2824eafb bin/taptap-cli-linux-riscv64
6
- 8c7fda6b0cd7b8593f542c9bdc7881b591734b37e1b4cd87c1447fef056daaf8 bin/taptap-cli-windows-amd64.exe
7
- fb93870446367acd8924f3136a99be66ff303d53c0c76a3b4952b9864c1aaa88 bin/taptap-cli-windows-arm64.exe
1
+ 2bade59b7d2c04b21aa3dc103816225ec5950ffa968bd7b1fa6a49b45d7b6dd5 bin/taptap-cli-darwin-amd64
2
+ 4deb9ff5c16134bb4d8114f03649db4bce0122a584085a8a1c4914f7e48502de bin/taptap-cli-darwin-arm64
3
+ c9235176ef1159bbe08047e994516e2345668f52e016787fe7a3fdaae5be95b1 bin/taptap-cli-linux-amd64
4
+ 79e49506449fc144b77a378ed630318cb0eab4e7a458f7722b8487caf1644292 bin/taptap-cli-linux-arm64
5
+ 970b607160dc4ba8f96b6c00e2158a1915fef7185dec9db7f9b188e4c360895b bin/taptap-cli-linux-riscv64
6
+ 831ce9c999d36ff8bc95d99a8512ce99b97775b86193e5d9b096fc3ee1693ea4 bin/taptap-cli-windows-amd64.exe
7
+ 5183e7f8b3dc34458264660ee88ed189abeda8d1df534a6c6a202e289786fa73 bin/taptap-cli-windows-arm64.exe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taptap/cli",
3
- "version": "2026.11.29-beta.1",
3
+ "version": "2026.11.30-beta.1",
4
4
  "description": "TapTap AI Agent CLI",
5
5
  "bin": {
6
6
  "taptap-cli": "scripts/run.js"
package/skills/index.json CHANGED
@@ -15,6 +15,12 @@
15
15
  {
16
16
  "name": "taptap-dashboard-stats"
17
17
  },
18
+ {
19
+ "name": "taptap-development"
20
+ },
21
+ {
22
+ "name": "taptap-game-service"
23
+ },
18
24
  {
19
25
  "name": "taptap-game-sign"
20
26
  },
@@ -42,6 +42,8 @@ TapTap CLI 总入口,同时承担 TapTap 业务 skill 的共享执行规范。
42
42
  | 检索、生成或收录游戏图片素材 | `taptap-asset-library` | 先本地素材后生图;上传执行转 `taptap-materials` |
43
43
  | 查包体库、线上/待处理包、自测入口 | `taptap-package-management` | 先读 overview |
44
44
  | 查下载、PV、转化、订单、评分统计等数据 | `taptap-dashboard-stats` | 先确认指标、维度和时间范围 |
45
+ | 榜单/分享/广告/调试反馈 | `taptap-game-service` | 先读状态再确认写入 |
46
+ | 接入/优化/排查/构建 | `taptap-development` | 先选场景再读证据 |
45
47
  | 查玩家评价正文、差评、官方回复 | `taptap-player-feedback` | 先确认时间范围和评分口径 |
46
48
  | 查论坛帖子、子版块、帖子正文、一级回复和子回复 | `taptap-community-management` | 先确认帖子意图、子版块和时间范围 |
47
49
  | 管理测试计划、资格批次、用户资格、激活码 | `taptap-test-plan` | 先区分状态层级 |
@@ -61,7 +63,7 @@ taptap-cli schema
61
63
  taptap-cli app --help
62
64
  taptap-cli player-feedback --help
63
65
  taptap-cli community-management --help
64
- taptap-cli schema <service> <method>
66
+ taptap-cli schema <service> [resource] <method>
65
67
  taptap-cli feedback '<用户原话摘要>' --trigger user-complaint
66
68
  ```
67
69
 
@@ -69,7 +71,7 @@ taptap-cli feedback '<用户原话摘要>' --trigger user-complaint
69
71
 
70
72
  - 判断请求是否属于 TapTap 开发者后台;不是就不要强行套 CLI。复杂流程和写操作先读 [shared execution](references/shared-execution.md),同一会话已读且内容未变化时直接沿用。
71
73
  - 先区分调用 scope 与目标资源 ID;跨论坛列表的目标 App 使用 `forum_app_id`,调用 scope 仍用已授权 `developer_id` / `app_id`,详见 [业务路由](references/business-routing.md)中的社区管理 skill。缺调用 scope 时转 `taptap-identity`;多候选让用户选择,不猜 ID,也不复用可能过期的历史 ID。交接命令显式带 `--dev-id` 和 `--app-id`。
72
- - 参数不确定时先判断命令类型:服务命令使用 `schema <service> <method>` 查看输入输出;其他命令使用完整命令路径加 `--help`;再按业务主文件和领域 reference 查证,不猜字段或枚举。`config command inspect --argv-json` 只判断命令是否识别、来源、风险和策略,不提供参数说明或完整 contract。
74
+ - 参数不确定时先判断命令类型:服务命令使用 `schema <service> [resource] <method>` 查看输入输出;其他命令使用完整命令路径加 `--help`;再按业务主文件和领域 reference 查证,不猜字段或枚举。`config command inspect --argv-json` 只判断命令是否识别、来源、风险和策略,不提供参数说明或完整 contract。
73
75
  - 优先使用已准入的 `taptap-cli <domain> <verb>`;当前能力缺失时说明 CLI 暂不支持,并给可执行替代路径。
74
76
  - 需要用户转到网页继续时,遵循 [shared execution](references/shared-execution.md) 的人工页面交接规范:已知可靠入口必须首轮提供,URL 单独占一行且只展示一次;不要使用 Markdown 链接包装、追加追踪参数或猜测页面路径。
75
77
  - 写操作先读取最新状态和 `expected`,再 dry-run 或展示影响;`confirmation_required` / exit code 10 是确认门禁,不是普通失败。
@@ -19,6 +19,7 @@ metadata:
19
19
  | 用户意图 | Reference | 起手命令 |
20
20
  | --- | --- | --- |
21
21
  | 帖子列表、排序、子版块或求助反馈筛选 | [read-moments](references/read-moments.md) | `list-community-moments` |
22
+ | 当前应用论坛 Feed | [forum feed](references/forum-feed.md) | `list-forum-contents` |
22
23
  | 看帖子正文和图片 | [read-moments](references/read-moments.md) | `get-community-moment` |
23
24
  | 查有哪些子版块 / 取 `group_label_id` | [read-moments](references/read-moments.md) | `list-community-group-labels` |
24
25
  | 看帖子的一级回复 | [read-replies](references/read-replies.md) | `list-community-moment-replies` |
@@ -32,6 +33,10 @@ metadata:
32
33
  | 玩家评价或经营数据 | 转 `taptap-player-feedback` / `taptap-dashboard-stats` | — |
33
34
  | 要置顶、加精、删除或处理内容 | 本 skill 不承接;说明边界 | — |
34
35
 
36
+ ## 论坛 Feed
37
+
38
+ `list-forum-contents` 保留 type/sort/子版块筛选并使用 cursor 分页;组合、子版块要求和正文展示规则见 [forum feed](references/forum-feed.md)。
39
+
35
40
  ## 执行规则
36
41
 
37
42
  **CRITICAL — 分页别贪全:`list-*` 三个列表命令 `page_size` 1–100、`page × page_size` ≤ 10000;`get-community-moment` / `list-community-group-labels` 不分页。要更多数据先加筛选,不要 `--page-all` 拉全量。**
@@ -0,0 +1,14 @@
1
+ # 论坛 Feed(list-forum-contents)
2
+
3
+ ```bash
4
+ taptap-cli community-management list-forum-contents \
5
+ --dev-id <id> --app-id <id> \
6
+ --data '{"type":"feed","sort":"default","limit":10}'
7
+ ```
8
+
9
+ - `type`:`feed`、`official`、`user_feedback`、`user_feedback_v2`、`group_label`、`elite`、`treasure`、`question`、`video`、`top_feed`、`activity_signup`。
10
+ - `sort`:`default`、`created`、`published`、`commented`、`hits`、`supports`、`qa_unsolved`、`qa_accepted`。
11
+ - `user_feedback` / `user_feedback_v2` 必须带真实 `group_label_id`;不支持的组合返回错误,不静默换成默认类型。
12
+ - 首请求省略 `cursor`,后续原样传 `next_cursor`;`has_more=false` 时不再传 cursor,空页但 `has_more=true` 仍有后续。
13
+ - 正文可能包含 BBCode;按纯文本/转义展示,不当作可执行 HTML。未知作者省略。
14
+ - `total` 可能包含过滤前条目,不能用 list 长度或 total 推断结束。
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: taptap-dashboard-stats
3
3
  version: 1.0.0
4
- description: "TapTap 开发者后台数据表现查询 runbook。用于下载、PV、曝光、转化、预约、订单、评分、关注、收藏,以及论坛访问量、活跃用户、内容发布/删除/移动、回复等指标查询和趋势解释;不负责评价正文、论坛帖子正文或业务写操作。"
4
+ description: "TapTap 开发者后台数据表现查询 runbook。用于下载、PV、曝光、转化、预约、订单、评分、关注、收藏、论坛指标,以及商店/评价/社区总览与商店快照;不负责评价正文、论坛帖子正文、榜单参与人数或业务写操作。"
5
5
  metadata:
6
6
  requires:
7
7
  bins: ["taptap-cli"]
8
- cliHelp: "taptap-cli dashboard-stats --help;taptap-cli schema dashboard-stats get-dashboard-stats;taptap-cli schema dashboard-stats get-forum-stats"
8
+ cliHelp: "taptap-cli dashboard-stats --help;taptap-cli schema dashboard-stats get;taptap-cli schema dashboard-stats get-forum-stats"
9
9
  ---
10
10
 
11
11
  # dashboard-stats
@@ -22,22 +22,26 @@ dashboard-stats 是只读数据查询 skill。核心风险不是写入,而是
22
22
  | --- | --- |
23
23
  | 下载量、PV、曝光、转化、预约、订单、评分、关注、收藏 | 用本 skill 查询指标 |
24
24
  | 论坛访问量、活跃、内容发布/回复、关注与内容总数 | 用 `get-forum-stats`,见 [forum stats](references/forum-stats-cheatsheet.md) |
25
- | 不确定 metric key | 先查 `schema dashboard-stats get-dashboard-stats` / [metrics cheatsheet](references/dashboard-metrics-cheatsheet.md),不要猜 |
25
+ | 不确定 metric key | 先查 `schema dashboard-stats get` / [metrics cheatsheet](references/dashboard-metrics-cheatsheet.md),不要猜 |
26
26
  | 查询某个推荐位 / 展示位转化 | 先 `get-dashboard-position-options` 取合法 value,再查 `metric=position` |
27
27
  | 用户没给时间范围 | 追问;若上下文有“昨天/上周/最近 7 天”,转成具体日期 |
28
28
  | 用户问“表现怎么样” | 先按游戏形态选核心指标,再补趋势/异常 |
29
29
  | 对比两个时间段/平台/渠道 | 分别查询后汇总差异,不混用口径 |
30
30
  | 无数据或指标不适用 | 解释可能原因:时间范围、形态不适用、权限、统计延迟 |
31
31
  | 评价正文、论坛帖子正文 | 转 `taptap-player-feedback` / `taptap-community-management`;跨社区舆情检索不在 CLI 覆盖范围 |
32
+ | 商店/评价/社区总览、商店快照 | `get-store-overview` / `get-review-overview` / `get-community-overview` / `get-store-snapshot`;口径见 [overviews](references/instant-game-overviews.md) |
33
+ | 榜单参与人数 | 当前协议没有该指标;说明未开放,不从配置或样本推算 |
34
+ | 评价正文、论坛帖子正文 | 转 `taptap-player-feedback` / `taptap-community-management`;跨社区舆情检索不在 CLI 覆盖范围 |
32
35
 
33
36
  ## 常用命令
34
37
 
35
38
  ```bash
36
39
  taptap-cli dashboard-stats --help
37
- taptap-cli schema dashboard-stats get-dashboard-stats
40
+ taptap-cli schema dashboard-stats get
41
+
38
42
  taptap-cli dashboard-stats get-dashboard-position-options --app-id <appId> --dev-id <developerId>
39
- taptap-cli schema dashboard-stats get-dashboard-stats
40
- taptap-cli dashboard-stats get-dashboard-stats \
43
+ taptap-cli schema dashboard-stats get
44
+ taptap-cli dashboard-stats get \
41
45
  --app-id <appId> --dev-id <developerId> \
42
46
  --data '{"metric":"<metricKey>","start_date":"YYYY-MM-DD","end_date":"YYYY-MM-DD"}'
43
47
  ```
@@ -45,13 +49,13 @@ taptap-cli dashboard-stats get-dashboard-stats \
45
49
  ## 执行规则
46
50
 
47
51
  - 缺 `developerId` / `appId` 时转 `taptap-identity`,不要猜 ID。
48
- - 先确认业务问题,再从 [metrics cheatsheet](references/dashboard-metrics-cheatsheet.md) 和 `schema <service> <method>` 选择 metric 与维度。
52
+ - 先确认业务问题,再从 [metrics cheatsheet](references/dashboard-metrics-cheatsheet.md) 和 `schema <service> [resource] <method>` 选择 metric 与维度。
49
53
  - `metric=position` 查询整体拆分时可不传 `position`;用户指定单个推荐位时必须先用 `get-dashboard-position-options` 取本 scope 的合法 value,不能猜 `home_top` 等 key。
50
54
  - 自然语言日期转成具体 `YYYY-MM-DD`;回复写清时间范围。用户没有给范围且上下文也无相对日期时先追问。
51
55
  - 预约游戏优先看预约、预约转化、曝光到预约。
52
56
  - APK 可下载游戏优先看下载、商店页 PV、下载转化。Windows / PC 当前没有稳定的专属下载或转化指标;用户询问 Windows 下载、PC 转化或独立承接时明确说明“目前暂无 Windows 相关数据”,不得用 `download`、`mini_device` 或 `cloud_start` 替代。
53
57
  - 买断/付费游戏看订单、收入、支付转化时必须说明统计口径。
54
- - 评价相关指标只覆盖数据表现页可查的评分/评价统计,不等于评价正文检索;要评价正文转 `taptap-player-feedback`。
58
+ - 评价相关指标只覆盖评分/评价统计,不等于评价正文检索;要评价正文转 `taptap-player-feedback`。
55
59
  - 社区关注、收藏等是聚合指标,不等于帖子内容分析。
56
60
  - 论坛数据指标用 `get-forum-stats`,口径与无数据判读见 [forum stats](references/forum-stats-cheatsheet.md)。
57
61
  - 查询后先给口径、时间范围、汇总值、趋势和异常解释。
@@ -1,6 +1,6 @@
1
1
  # 论坛数据指标速查(get-forum-stats)
2
2
 
3
- `get-forum-stats` 是 `dashboard-stats` 服务下与 `get-dashboard-stats` 相互独立的只读接口,查的是**论坛数据**:论坛访问量、活跃用户、内容发布/删除/移动、回复数,以及论坛关注总数和内容总数。它不是商店/游戏/销售/评价看板指标,也不返回帖子或回复的正文(正文转 `taptap-community-management`)。
3
+ `get-forum-stats` 是 `dashboard-stats` 服务下与 `get` 相互独立的只读接口,查的是**论坛数据**:论坛访问量、活跃用户、内容发布/删除/移动、回复数,以及论坛关注总数和内容总数。它不是商店/游戏/销售/评价看板指标,也不返回帖子或回复的正文(正文转 `taptap-community-management`)。
4
4
 
5
5
  ## 命令
6
6
 
@@ -0,0 +1,17 @@
1
+ # 商店 / 评价 / 社区总览
2
+
3
+ ```bash
4
+ taptap-cli dashboard-stats get-store-overview --dev-id <id> --app-id <id> \
5
+ --data '{"start_date":"2026-11-25","end_date":"2026-11-25"}'
6
+ taptap-cli dashboard-stats get-review-overview --dev-id <id> --app-id <id> \
7
+ --data '{"start_date":"2026-11-25","end_date":"2026-11-25"}'
8
+ taptap-cli dashboard-stats get-community-overview --dev-id <id> --app-id <id> \
9
+ --data '{"start_date":"2026-11-25","end_date":"2026-11-25"}'
10
+ taptap-cli dashboard-stats get-store-snapshot --dev-id <id> --app-id <id>
11
+ ```
12
+
13
+ - `totals` 是当前累计值,不受区间过滤;`trend` 才是所选区间序列;商店 `interval` 是区间下载请求汇总。
14
+ - 日期为 Asia/Shanghai,起止日均包含;省略时使用最近 30 天,只给一端时补齐另一端;`end_date` 早于 `start_date` 是错误。输出实际范围。
15
+ - 单条评价 score 是 1–5 星;商店 `rating_score` 是 0–10 分,不能混用。
16
+ - 未知/未接入指标出现在 `unavailable_metrics`;不要补 0,也不要把 0 解释成“没有数据”。关键读取失败保留错误,不生成空趋势。
17
+ - 榜单参与人数等指标当前协议未提供;明确说明未开放,不从榜单配置或样本推算。
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: taptap-development
3
+ version: 1.0.0
4
+ description: "TapTap 游戏开发辅助:按开发目标组织生态能力接入、性能优化、问题排查、工程与构建检查。用户问排行榜/分享/广告/联机/云存档/振动怎么接入,启动慢、掉帧、内存或包体怎么优化,联机代码怎么检查,或需要接入模板与诊断步骤时使用;不负责直接修改业务配置或记录。"
5
+ metadata:
6
+ requires:
7
+ bins: ["taptap-cli"]
8
+ cliHelp: "taptap-cli development --help;taptap-cli development docs --help;taptap-cli development template --help"
9
+ ---
10
+
11
+ # development
12
+
13
+ 开始前先读 [`../taptap-cli/references/shared-execution.md`](../taptap-cli/references/shared-execution.md)(身份、JSON 输出外壳、错误处理)。
14
+
15
+ development 按开发目标组织知识、指导、检查和联调流程。它不拥有业务配置或记录:
16
+
17
+ - 查/改排行榜、分享模板、广告配置、调试反馈 → `taptap-game-service`
18
+ - 身份、应用、资料、包体、资质、发布 → 对应已有 Skill
19
+ - 业务指标、聚合统计 → `taptap-dashboard-stats`
20
+
21
+ **CRITICAL — 教程不等于接口。** 没有实际开放的服务端操作时,明确说明缺口,不注册空壳命令、不伪造测量结果、不生成不存在的客户端 API。
22
+
23
+ **CRITICAL — 小游戏/H5 是首批适用场景。** 其他引擎按同一场景流程扩展适配;不要把小游戏专属模板直接套到其他运行时。
24
+
25
+ ## 四个场景
26
+
27
+ | 用户目标 | 入口 | 结果 |
28
+ | --- | --- | --- |
29
+ | 接入排行榜/分享/广告/联机/云存档/振动 | `development integrate <capability>` | 流程、前置条件、真实配置检查、接入检查 |
30
+ | 启动/加载/帧率/内存/包体优化 | `development optimize <problem>` | 证据要求、可用数据路由、分析步骤、缺失能力 |
31
+ | 联机/反馈/包体/环境问题 | `development troubleshoot <subject>` | 诊断清单或本地报告 |
32
+ | 项目、依赖、构建与产物 | `development build inspect|check` | 工程检查和交接 |
33
+
34
+ ## 常用命令
35
+
36
+ ```bash
37
+ taptap-cli development docs multiplayer
38
+ taptap-cli development docs --query 限流
39
+ taptap-cli development docs --api showShareboard
40
+ taptap-cli development docs --sources
41
+ taptap-cli development docs --sources leaderboard
42
+ taptap-cli development template multiplayer-manager
43
+ taptap-cli development optimize startup
44
+ taptap-cli development build check
45
+ ```
46
+
47
+ 接入检查、广告代码、联机检查和反馈报告需要真实配置或文件,示例见 references 和 `--help`。
48
+
49
+ ## 官方文档
50
+
51
+ `development docs --sources` 是当前适用官方文档的入口清单,按能力给出教程、API 入口、适用运行时和核对日期。
52
+
53
+ - 本地指南负责流程、前置条件和检查;参数、回调、错误码以 `--sources` 指向的官方页面为准。
54
+ - `docs --api` / `--query` 未命中只表示随包参考没有收录,不代表 API 不存在;继续查官方入口。
55
+ - 小游戏入口来自 minigameapidoc;H5 运行时是否复用同一 tap API,按 `--sources` 的说明确认。
56
+
57
+ ## 执行规则
58
+
59
+ - 接入前先用 `--check` 读取真实配置;缺能力、未开通、未审核时停下并说明下一步。
60
+ - 广告代码只能由当前应用真实 `selected_space_id` 生成;禁止手填或跨应用复用广告位。
61
+ - 性能分析先要证据;没有测量数据时只给方法和采集要求,不输出趋势或“已优化”。
62
+ - 调试反馈 GET 永远只读;`--claim` 是写操作,必须已有用户确认并带 `--yes`。
63
+ - 联机静态检查通过不等于联机实测通过;结果里保留这条边界。
64
+ - 模板默认返回内容;只有显式 `--out` 才落盘,且不无声覆盖已有文件。
65
+ - 文档检索无匹配时明确说明,并按 `development docs --sources` 的官方入口继续查,不编造 API。
66
+
67
+ ## References
68
+
69
+ | Reference | 什么时候读 |
70
+ | --- | --- |
71
+ | [performance checklist](references/performance-checklist.md) | 设计性能证据采集和复测时。 |
72
+ | [multiplayer diagnosis](references/multiplayer-diagnosis.md) | 排查联机问题或解释静态检查规则时。 |
@@ -0,0 +1,28 @@
1
+ # 联机诊断
2
+
3
+ ## 官方文档
4
+
5
+ 模板和本清单只是接入骨架;`tap.getOnlineBattleManager`、`registerListener`、`sendCustomMessage` 等方法的参数、事件名和返回结构,以 `taptap-cli development docs --sources multiplayer` 指向的官方页面为准。生成模板已使用 `registerListener(listener)`、`sendCustomMessage({ data })` 和 `matchRoom({ data })`;如与官方页面不一致,以官方页面为准。
6
+
7
+ ## 调用顺序
8
+
9
+ 1. `tap.getOnlineBattleManager()`
10
+ 2. `registerListener({ onPlayerEntered, onPlayerLeft, onCustomMessageReceived, ... })`(必须在 `connect` 前)
11
+ 3. `connect()` 拿到并保存 `playerId`
12
+ 4. `matchRoom()` 进房
13
+ 5. 属性同步 / 自定义消息
14
+ 6. 事件回调
15
+ 7. `leaveRoom()`
16
+
17
+ ## 症状对照
18
+
19
+ | 症状 | 优先检查 |
20
+ | --- | --- |
21
+ | 看不到别人 | listener 注册时机、房间匹配、远端玩家初始化 |
22
+ | 位置不同步 | 发送限流、字段名、序号、远端插值 |
23
+ | 连不上 | 登录态、网络、房间状态、错误回调 |
24
+ | 收不到消息 | 消息类型、协议字段、注册/注销监听是否成对 |
25
+
26
+ ## 静态检查边界
27
+
28
+ `development check-multiplayer` 只检查确定性规则:注册顺序、限流、playerId 保存、远端初始化、协议一致性。它不运行代码,也不验证真实连通性。
@@ -0,0 +1,31 @@
1
+ # 性能证据清单
2
+
3
+ 先记录测试条件:设备型号、系统版本、运行时版本、画质设置、冷/热启动、网络环境。缺少条件的数据不能横向比较。
4
+
5
+ ## 启动与加载
6
+
7
+ - 冷启动总耗时、首帧时间、首屏完成时间。
8
+ - 首包大小、首屏资源大小、首屏前请求数与失败数。
9
+ - 串行请求、重复下载、未压缩资源。
10
+
11
+ ## 帧率
12
+
13
+ - 采样方式与采样时长。
14
+ - 卡顿场景、平均 fps、低帧率时段。
15
+ - 每帧分配、重绘、同步 IO、粒子数量。
16
+
17
+ ## 内存
18
+
19
+ - 峰值与增长曲线,测试时长。
20
+ - 纹理、音频、监听、缓存数量。
21
+ - 泄漏复现步骤。
22
+
23
+ ## 包体
24
+
25
+ - 构建产物清单、压缩后大小、最大文件。
26
+ - 未使用资源、重复依赖、调试文件。
27
+
28
+ ## 数据来源
29
+
30
+ - 调试反馈里的 `fps`、`memory_usage_mb` 只代表该条反馈。
31
+ - CLI 当前没有启动/帧率/内存聚合诊断接口;缺失时保留“未开放”,不生成空趋势或 0。
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: taptap-game-service
3
+ version: 1.0.0
4
+ description: "TapTap 游戏生态服务资源管理:排行榜、分享模板、广告配置、调试反馈的配置、业务记录、状态查询与修改。用户要查/建/发布排行榜,创建或查询分享模板审核,查看广告资格与真实广告位,浏览或领取调试反馈时使用;不负责接入教程、模板生成或经营统计。"
5
+ metadata:
6
+ requires:
7
+ bins: ["taptap-cli"]
8
+ cliHelp: "taptap-cli game-service --help;taptap-cli schema game-service leaderboard --names;taptap-cli schema game-service share-template --names"
9
+ ---
10
+
11
+ # game-service
12
+
13
+ 开始前先读 [`../taptap-cli/references/shared-execution.md`](../taptap-cli/references/shared-execution.md)(身份、JSON 输出外壳、错误处理)。
14
+
15
+ game-service 按服务资源组织查询和修改;同一个资源的读写在同一个入口下,不按读写拆域。缺少 `developerId` / `appId` 时按“显式参数 → 当前项目绑定 → profile scope”解析;仍缺失时转 `taptap-identity`,不要猜。
16
+
17
+ **CRITICAL — 真实 ID。** 榜单、模板、评价、反馈、版本 ID 都使用接口返回的真实值;不能用列表第一条、示例值或手填 ID 代替本次创建结果。
18
+
19
+ **CRITICAL — 部分成功。** 创建成功但发布失败时保留“创建成功、发布失败”和真实 `leaderboard_id`,只重试发布;创建结果未知时先读回,不重建。
20
+
21
+ ## 资源
22
+
23
+ | 资源 | 查询 | 修改 |
24
+ | --- | --- | --- |
25
+ | leaderboard | `game-service leaderboard list` | `+create`、`+publish`、`set-whitelist-only` |
26
+ | share-template | `share-template list` / `get` | `share-template create` |
27
+ | ad-config | `ad-config get` | 本期只读;开通按 `activation_url` 办理 |
28
+ | debug-feedback | `debug-feedback list` | `debug-feedback claim`(标记已处理,需稳定 key) |
29
+
30
+ ## 常用入口
31
+
32
+ 创建并发布榜单用 `game-service leaderboard +create`,单独发布用 `+publish`;资源查询与分享、广告、反馈命令以 `schema game-service <resource> --names` 的实际命令树为准。资源操作细节见 references。
33
+
34
+ ## 执行规则
35
+
36
+ - 排行榜默认 `always/numeric/desc/best/100`;永久榜拒绝 `period_time`,非永久榜省略时使用 08:00:00。
37
+ - `+create --publish` 是创建后发布;发布失败只重试发布。创建结果未知时先 list 读回,不猜 ID。
38
+ - 分享模板 `contents` ≤ 21 个 UTF-8 字节,`remark` 必填且 ≤ 100 个 Unicode 字符;未 `approved` 的模板不能给客户端使用。
39
+ - 广告只有 `active` 且 `selected_space_id` 非空才可生成代码;接入流程和代码生成转 `taptap-development`。
40
+ - 调试反馈 GET 永远只读;只有明确领取处理时才用 POST,并带独立稳定幂等键。领取重试是同一批,不因附件下载失败再次领取。
41
+ - 反馈 `total` 是查询过滤集合的统计,不是未处理剩余数;不要据此无限领取。
42
+ - 写操作需要用户确认;`--dry-run` 只预览,不落任何业务状态。
43
+
44
+ ## References
45
+
46
+ | Reference | 什么时候读 |
47
+ | --- | --- |
48
+ | [leaderboard](references/leaderboard.md) | 创建、发布、可见性与恢复。 |
49
+ | [share-template](references/share-template.md) | 模板长度、审核状态与使用条件。 |
50
+ | [ad-config](references/ad-config.md) | 广告状态、方向与广告位来源。 |
51
+ | [debug-feedback](references/debug-feedback.md) | 浏览、领取与附件边界。 |
@@ -0,0 +1,13 @@
1
+ # 广告配置资源
2
+
3
+ 可使用对应的 game-service 资源命令(以 `taptap-cli schema game-service <resource> --names` 为准):
4
+
5
+ - `taptap-cli game-service ad-config get --dev-id <id> --app-id <id>`
6
+
7
+ - `inactive`:展示 `activation_url`,停止生成代码。
8
+ - `banned`:停止后续操作。
9
+ - `active`:只有 `selected_space_id` 非空才能生成接入代码。
10
+ - 方向不匹配时先修正方向并重新查询;查询不会静默修改方向。
11
+ - 广告位唯一来源是当前应用最近一次配置;禁止手填或跨应用复用。
12
+ - 接入流程、真实广告位代码生成转 `taptap-cli development integrate ads --check` 和 `taptap-cli development template ad-manager`。
13
+ - 官方文档入口:`taptap-cli development docs --sources ads`(激励视频、插屏、Banner)。
@@ -0,0 +1,12 @@
1
+ # 调试反馈资源
2
+
3
+ 可使用对应的 game-service 资源命令(以 `taptap-cli schema game-service <resource> --names` 为准):
4
+
5
+ - `taptap-cli game-service debug-feedback list --data '{"limit":3,"status":"unprocessed"}'`
6
+ - `taptap-cli game-service debug-feedback claim --data '{"limit":3}' --idempotency-key "<key>" --yes`
7
+
8
+ - GET `list` 永远只读,`marked_processed` 必须为 false。
9
+ - POST `claim` 领取并标记,`marked_processed` 必须为 true;重试同键返回同一批。
10
+ - `total` 是查询过滤集合的统计,不是未处理剩余数。
11
+ - `--moment` 只支持读路径;先本地解析链接为真实 moment ID。
12
+ - 附件下载和本地报告由 `development troubleshoot debug-feedback` 完成;下载失败只补下载,不再次领取。
@@ -0,0 +1,24 @@
1
+ # 排行榜资源
2
+
3
+ ## 创建
4
+
5
+ ```bash
6
+ taptap-cli game-service leaderboard +create --title "最高分" --publish --yes --idempotency-key "<create-key>"
7
+ ```
8
+
9
+ - 默认:`period_type=always`、`score_type=numeric`、`score_order=desc`、`calc_type=best`、`display_limit=100`。
10
+ - 非永久榜省略 `period_time` 时使用 08:00:00;永久榜必须省略。
11
+ - 创建与发布使用不同步骤幂等键;发布失败只重试发布。
12
+
13
+ ## 失败恢复
14
+
15
+ - 创建结果未知:先 `leaderboard list` 读回,不把最新一条当作本次创建结果。
16
+ - 发布失败:保留真实 `leaderboard_id` / `leaderboard_open_id`,用 `+publish --leaderboard-id --idempotency-key <publish-key>` 重试。
17
+ - 409 `stale_state`:重新读取当前状态,不强制覆盖。
18
+ - 409 `idempotency_conflict`:同一 key 已用于不同正文;重试复用原正文/key,新意图才换 key。
19
+
20
+ ## 当前边界
21
+
22
+ 协议未提供玩家排名/分数记录查询或任意字段更新;不能用配置列表代替排名。
23
+
24
+ 客户端接入与官方文档入口:`taptap-cli development docs --sources leaderboard`。