@thinkingai/ae-cli 6.0.60 → 6.0.62

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 (221) hide show
  1. package/README.md +6 -1
  2. package/README.zh.md +8 -1
  3. package/bin/runtime-capabilities.json +1 -1
  4. package/dist/{ai-monitor-FCXSLHAP.js → ai-monitor-X5GL44JT.js} +10 -9
  5. package/dist/ai-monitor.js +14 -13
  6. package/dist/{auth-ATK2SLEV.js → auth-SPQ46XQ3.js} +18 -10
  7. package/dist/{automation-FLCPFMN4.js → automation-7XC3VBZI.js} +87 -12
  8. package/dist/{capability-6KTSOI7L.js → capability-JZP4KXZC.js} +10 -9
  9. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  10. package/dist/{chunk-VRMGHQKE.js → chunk-2VKMHNUU.js} +11 -11
  11. package/dist/{chunk-2ETRY2CU.js → chunk-6HOM2FOJ.js} +19 -9
  12. package/dist/{chunk-KTJXD27G.js → chunk-AAN6KBUK.js} +3 -3
  13. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  14. package/dist/{chunk-6M7ZEDT2.js → chunk-BQFLABJQ.js} +11 -7
  15. package/dist/{chunk-BEYLCUZX.js → chunk-E457FREE.js} +3 -3
  16. package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
  17. package/dist/{chunk-5M5LBRR3.js → chunk-ETQXIZFP.js} +15 -8
  18. package/dist/{chunk-72NJKS7O.js → chunk-F36ORPI6.js} +7 -32
  19. package/dist/{chunk-5E7MTTFN.js → chunk-F7TCQPQX.js} +23 -9
  20. package/dist/{chunk-AXTO4FTM.js → chunk-FGGEF7MI.js} +3 -3
  21. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  22. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  23. package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
  24. package/dist/chunk-N2MAYIRU.js +32 -0
  25. package/dist/chunk-NNK3JBH4.js +60 -0
  26. package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
  27. package/dist/{chunk-HSZAIPUX.js → chunk-PRCHMOWT.js} +7 -5
  28. package/dist/chunk-PUSFEC6B.js +29 -0
  29. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  30. package/dist/{chunk-SDKW6LYE.js → chunk-RYY5NJK3.js} +3 -3
  31. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  32. package/dist/{chunk-VJUXKVRE.js → chunk-VR2D54AA.js} +2 -2
  33. package/dist/{chunk-HVMCPKOZ.js → chunk-YIG3L4RC.js} +1 -1
  34. package/dist/{chunk-LOR4IA26.js → chunk-YJYC5PLL.js} +166 -188
  35. package/dist/{chunk-F2VFZUGG.js → chunk-ZVUXAHEV.js} +2 -2
  36. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  37. package/dist/{compat-check-XD2U7PZ2.js → compat-check-JD5D77ET.js} +5 -4
  38. package/dist/{config-U3GDWU6E.js → config-IIMRATTP.js} +7 -6
  39. package/dist/{context-YAQG6YQC.js → context-BXHIPIIX.js} +8 -6
  40. package/dist/{data-integration-QE37EQ3A.js → data-integration-VRJQ3HVK.js} +7 -6
  41. package/dist/{evaluation-2JSF4V47.js → evaluation-Q3AIGFOG.js} +5 -5
  42. package/dist/index.js +49 -43
  43. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  44. package/dist/{memory-WEB27VI6.js → memory-B44LY27L.js} +6 -7
  45. package/dist/{metadata-7FYE4234.js → metadata-ZVPG2MIA.js} +10 -9
  46. package/dist/{model-T7H7Q6BG.js → model-ANZBYVST.js} +4 -5
  47. package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-YNCV4QG3.js} +45 -14
  48. package/dist/{project-semantic-2GGFJWW6.js → project-semantic-E7ZAQL5S.js} +9 -8
  49. package/dist/{sync-ULBB7WO5.js → sync-Y4OZRQAY.js} +9 -9
  50. package/dist/{te-agent-6RMF7LUV.js → te-agent-RKAUTYJZ.js} +303 -17
  51. package/dist/{te-analysis-HSYC7GNV.js → te-analysis-7N5VC4JB.js} +25 -20
  52. package/dist/{te-community-FLKZGQKB.js → te-community-SIA2UHTS.js} +13 -11
  53. package/dist/{te-dataops-OQQGTCUA.js → te-dataops-5MJQCODU.js} +13 -11
  54. package/dist/{te-engage-RIEBHL5T.js → te-engage-ZTLOMKO3.js} +73 -20
  55. package/dist/{te-kb-4HG2FMHJ.js → te-kb-LDL3MF2Y.js} +107 -25
  56. package/dist/{te-system-AL4B4XZL.js → te-system-473I5O53.js} +6 -7
  57. package/dist/{te-team-5O4UVUWE.js → te-team-JOWHCMZA.js} +92 -10
  58. package/dist/{things-TSJ64GBT.js → things-DOQ2L3O2.js} +9 -8
  59. package/dist/{update-Q5LURAWV.js → update-KUS6TCPB.js} +8 -6
  60. package/dist/{workspace-FF2HXJGR.js → workspace-MJFPIV7C.js} +6 -7
  61. package/package.json +6 -3
  62. package/skills/ae-agent/SKILL.md +19 -5
  63. package/skills/ae-agent/references/a2a.md +103 -0
  64. package/skills/ae-agent/references/command_index.md +11 -0
  65. package/skills/ae-analysis/SKILL.md +35 -23
  66. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  67. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  68. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  69. package/skills/ae-analysis/references/bad_case_review.md +4 -4
  70. package/skills/ae-analysis/references/command_index.md +7 -7
  71. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  72. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  73. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  74. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  75. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  76. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  77. package/skills/ae-analysis/references/project_owner_update.md +5 -1
  78. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  79. package/skills/ae-analysis/references/scenario_list.md +5 -6
  80. package/skills/ae-automation/SKILL.md +6 -2
  81. package/skills/ae-automation/references/cli.md +9 -3
  82. package/skills/ae-capability/SKILL.md +8 -4
  83. package/skills/ae-engage/SKILL.md +6 -1
  84. package/skills/ae-engage/references/common-metric.md +47 -1
  85. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  86. package/skills/ae-engage/references/task-metric-update.md +1 -1
  87. package/skills/ae-kb/SKILL.md +11 -7
  88. package/skills/ae-kb/references/publication.md +45 -0
  89. package/skills/ae-kb/references/query-workflow.md +5 -1
  90. package/skills/ae-team/SKILL.md +7 -3
  91. package/skills/ae-team/references/copy-to-personal.md +7 -0
  92. package/skills/ae-team/references/promote.md +7 -0
  93. package/skills/ae-team/references/update.md +3 -3
  94. package/dist/chunk-Y74WTIKJ.js +0 -10
  95. package/skills/ae-tracking-matrix/SKILL.md +0 -170
  96. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  97. package/skills/ae-tracking-matrix/i18n.yaml +0 -12
  98. package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
  99. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
  100. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
  101. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
  102. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
  103. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
  104. package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
  105. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
  106. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
  107. package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
  108. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
  109. package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
  110. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
  111. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
  112. package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
  113. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
  114. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
  115. package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
  116. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
  117. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
  118. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
  119. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
  120. package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
  121. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
  122. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
  123. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
  124. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
  125. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
  126. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
  127. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
  128. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
  129. package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
  130. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
  131. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
  132. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
  133. package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
  134. package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
  135. package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
  136. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
  137. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
  138. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
  139. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
  140. package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
  141. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
  142. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
  143. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
  144. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
  145. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
  146. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
  147. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
  148. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
  149. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
  150. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
  151. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
  152. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
  153. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
  154. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
  155. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
  156. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
  157. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
  158. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
  159. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
  160. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
  161. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
  162. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
  163. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
  164. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
  165. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
  166. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
  167. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
  168. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
  169. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
  170. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
  171. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
  172. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
  173. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
  174. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
  175. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
  176. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
  177. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
  178. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
  179. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
  180. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
  181. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
  182. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
  183. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
  184. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
  185. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
  186. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
  187. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
  188. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
  189. package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
  190. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
  191. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
  192. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
  193. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
  194. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
  195. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
  196. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
  197. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
  198. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
  199. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
  200. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
  201. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
  202. package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
  203. package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
  204. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
  205. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
  206. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
  207. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
  208. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
  209. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
  210. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
  211. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
  212. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
  213. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
  214. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
  215. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
  216. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
  217. package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
  218. package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
  219. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
  220. package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
  221. package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
@@ -1,355 +0,0 @@
1
- # TE Data Integration Assistant
2
-
3
- A quick reference guide to help customers solve ThinkingData data integration related issues.
4
-
5
- ## Trigger Conditions
6
-
7
- TRIGGER when:
8
-
9
- - User asks about ThinkingData SDK integration methods, configuration, usage issues
10
- - User asks about data reporting, tracking, event tracking related questions
11
- - User consults about LogBus, DataX, Restful API and other data integration tools
12
- - User encounters data format errors, reporting failures and other issues needing troubleshooting
13
- - User needs data integration solution design or tool selection suggestions
14
- - Code involves ThinkingData SDK (e.g. `TDAnalytics`, `ThinkingData`, `ta.track`, etc.)
15
-
16
- SKIP:
17
-
18
- - General programming issues not related to ThinkingData
19
- - Other analytics platforms (e.g. Google Analytics, Mixpanel, etc.)
20
-
21
- ---
22
-
23
- ## Answer Accuracy Principles
24
-
25
- **Important**: Follow these principles when answering questions:
26
-
27
- 1. **Use only information explicitly stated in documents**: All answers must be based on this document or content in the reference directory
28
- 2. **No speculation or inference**: If the document does not explicitly explain a mechanism, behavior, or reason, do not speculate
29
- 3. **For issues not covered in documentation**: Directly suggest users check official documentation or contact technical support
30
- 4. **Answer directly**: Do not reference document section names in answers, just give the answer
31
- 5. **Append official documentation URLs**: At the end of the answer, append the corresponding official documentation URL based on the SDK or tool involved
32
-
33
- ## Language Adaptation for Official Documentation URLs
34
-
35
- **Important**: When providing official documentation URLs, adapt the `lan` parameter based on the user's language:
36
-
37
- | User's Language | URL Parameter | Example |
38
- | --------------- | ------------- | -------------------------------------------------------------------------------------- |
39
- | Chinese | `lan=zh-CN` | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=android_sdk_installation` |
40
- | Other languages | `lan=en-US` | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=en-US&code=android_sdk_installation` |
41
-
42
- **Detection rule**:
43
-
44
- - If the user's question contains Chinese characters, use `lan=zh-CN`
45
- - For all other languages (English, Japanese, Korean, etc.), use `lan=en-US`
46
-
47
- ---
48
-
49
- ## Official Documentation Resources
50
-
51
- **Data Integration Documentation Overview**:
52
-
53
- - Chinese: `https://docs-v2.thinkingdata.cn/?code=installation_menu&lan=zh-CN`
54
- - English: `https://docs-v2.thinkingdata.cn/?code=installation_menu&lan=en-US`
55
-
56
- > **Note**: All URLs below use `lan=zh-CN` as example. Replace with `lan=en-US` for non-Chinese users.
57
-
58
- ### Client SDK
59
-
60
- | SDK | Official Documentation URL (replace `lan` parameter as needed) |
61
- | ------------------------ | ------------------------------------------------------------------------------------------- |
62
- | Android | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=android_sdk_installation` |
63
- | iOS | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=ios_sdk_installation` |
64
- | JavaScript | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=javascript_sdk_installation` |
65
- | Mini Program & Mini Game | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=mp_sdk_installation` |
66
- | Unity | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=unity_sdk_installation` |
67
- | Unreal | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=unreal_sdk_installation` |
68
- | CocosCreator | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=cocoscreator_sdk_installation` |
69
- | Flutter | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=flutter_sdk_installation` |
70
- | React Native | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=rn_sdk_support` |
71
- | uni-app | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=uniapp_sdk_installation` |
72
- | Client SDK FAQ | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=client_sdk_faq` |
73
-
74
- ### Server SDK
75
-
76
- | SDK | Official Documentation URL (replace `lan` parameter as needed) |
77
- | ------- | ------------------------------------------------------------------------------------- |
78
- | Java | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=java_sdk_installation` |
79
- | Python | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=python_sdk_installation` |
80
- | Node.js | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=nodejs_sdk_installation` |
81
- | Golang | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=golang_sdk_installation` |
82
- | PHP | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=php_sdk_installation` |
83
-
84
- ### Data Integration Tools
85
-
86
- | Tool | Official Documentation URL (replace `lan` parameter as needed) |
87
- | ----------- | ---------------------------------------------------------------------------------- |
88
- | LogBus2 | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=logbus2_installation` |
89
- | DataX | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=ta-datax-writer` |
90
- | Restful API | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=restful_api` |
91
-
92
- ### Basic Knowledge
93
-
94
- | Document | Official Documentation URL (replace `lan` parameter as needed) |
95
- | ------------------------- | ------------------------------------------------------------------------------- |
96
- | Data Rules | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=data_format` |
97
- | User Identification Rules | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=user_identify` |
98
- | Preset Properties | `https://docs-v2.thinkingdata.cn/?version=6.0&lan=zh-CN&code=preset_properties` |
99
-
100
- ---
101
-
102
- # 1. Core API Quick Reference
103
-
104
- ## Client SDK Basic APIs
105
-
106
- | Function | Method | Description |
107
- | ----------------- | ------------------------------ | ------------------------------------- |
108
- | Track Event | `track(eventName, properties)` | Report custom event |
109
- | Set Account ID | `login(accountId)` | Call after user login |
110
- | Set Visitor ID | `identify(distinctId)` | Manually set visitor ID (optional) |
111
- | Flush Immediately | `flush()` | Trigger data reporting immediately |
112
- | User Properties | `userSet(properties)` | Set user properties (overwrite) |
113
- | User Properties | `userSetOnce(properties)` | Set user properties (only first time) |
114
- | User Properties | `userAdd(properties)` | Accumulate numeric properties |
115
- | Time Calibration | `calibrateTime()` | Calibrate device time |
116
-
117
- ## Server SDK Consumer Selection
118
-
119
- | Consumer | Use Case | Notes |
120
- | ----------------------- | -------------------------- | -------------------------------- |
121
- | LoggerConsumer + LogBus | Recommended for production | Data persistence, safest |
122
- | BatchConsumer | Small-medium traffic | Memory buffer, risk of data loss |
123
- | DebugConsumer | Only for debugging | Prohibited in production |
124
-
125
- ---
126
-
127
- # 2. Data Format Key Points
128
-
129
- ## Event Naming Rules
130
-
131
- - Only contain letters, numbers, underscores `_`
132
- - Start with a letter, max 50 characters
133
- - **Event names are case-sensitive**, `Payment` and `payment` are two different events
134
- - **Property names are case-insensitive**
135
-
136
- ## Property Data Types
137
-
138
- | Type | Description |
139
- | ------- | ----------------------------------------------------- |
140
- | Number | Range -9E15 to 9E15 |
141
- | Text | Default max 2KB |
142
- | Time | Format yyyy-MM-dd HH:mm:ss or yyyy-MM-dd HH:mm:ss.SSS |
143
- | Boolean | true/false |
144
- | List | JSON array, max 500 elements |
145
- | Object | JSON object, max 100 sub-properties |
146
-
147
- > **Type cannot be changed once determined**. The first data record determines the property type.
148
-
149
- ---
150
-
151
- # 3. User Identification Rules
152
-
153
- | ID | Field Name | Source | Description |
154
- | ---------- | -------------- | ---------------------------------- | ----------------------------------- |
155
- | Visitor ID | `#distinct_id` | SDK auto-generated or manually set | Device-level identifier, must exist |
156
- | Account ID | `#account_id` | Set via `login()` after user login | Account-level identifier, optional |
157
-
158
- **Multi-platform reporting note**: Must keep `#distinct_id` and `#account_id` consistent, otherwise will cause user fragmentation.
159
-
160
- ---
161
-
162
- # 4. Debug Mode Quick Reference
163
-
164
- ## Enable Logging
165
-
166
- | Platform | Method |
167
- | ----------- | ------------------------------ |
168
- | iOS 3.x | `[TDAnalytics enableLog:YES];` |
169
- | Android 3.x | `TDAnalytics.enableLog(true);` |
170
- | Unity | `TDAnalytics.EnableLog(true);` |
171
- | Java Server | `TDAnalytics.enableLog(true);` |
172
-
173
- ## Network Connectivity Check
174
-
175
- ```bash
176
- # Check reporting URL
177
- curl https://RECEIVER_URL/health-check
178
-
179
- # Check APPID
180
- curl "https://RECEIVER_URL/check_appid?appid=YOUR_APPID"
181
- ```
182
-
183
- ---
184
-
185
- # 5. Common Issues Quick Reference
186
-
187
- ## Data not reporting?
188
-
189
- | Reason | Check Method |
190
- | --------------------------------- | ------------------------------------------------------------------------------- |
191
- | Network unreachable | Execute health-check |
192
- | APPID error | Execute check_appid |
193
- | Data volume not triggering report | Call `flush()` or wait 30 seconds |
194
- | Time out of range | Client: 10 days before to 3 days after; Server: 3 years before to 3 years after |
195
-
196
- ## Properties lost?
197
-
198
- - Type mismatch → discarded
199
- - Property value is `null` → discarded
200
- - Property name contains special characters → discarded
201
-
202
- ---
203
-
204
- # 6. Production Environment Red Lines
205
-
206
- ## Prohibited Actions
207
-
208
- | Prohibition | Reason |
209
- | ---------------------------------------- | -------------------------------- |
210
- | Debug mode in production | Only for debugging |
211
- | DebugConsumer in production | Single send, very low throughput |
212
- | Multiple processes writing same log file | Data corruption |
213
- | SDK not properly closed | Cached data lost |
214
-
215
- ## Required Actions
216
-
217
- | Requirement | Description |
218
- | ----------------------------------- | ---------------------------- |
219
- | Client use Normal mode | Debug only for testing phase |
220
- | Server use LoggerConsumer + LogBus2 | Safest solution |
221
- | Call `close()` before program exit | Avoid cache loss |
222
-
223
- ---
224
-
225
- # 7. Reporting URLs
226
-
227
- | Environment | URL |
228
- | ------------------ | -------------------------------------------- |
229
- | China SAAS | `https://receiver-ta.thinkingdata.cn` |
230
- | International SAAS | `https://global-receiver-ta.thinkingdata.cn` |
231
- | Private deployment | `https://YOUR_RECEIVER_URL` |
232
-
233
- ---
234
-
235
- # 8. Detailed Reference Document Index
236
-
237
- > Only core document paths are listed below. See `references/sdk/` directory for complete documents.
238
-
239
- ## FAQ Documents
240
-
241
- | SDK/Tool | Document Path |
242
- | --------------------- | ---------------------------------------------------- |
243
- | Android FAQ | references/sdk/faq/android_sdk_faq.md |
244
- | iOS FAQ | references/sdk/faq/ios_sdk_faq.md |
245
- | JavaScript FAQ | references/sdk/faq/javascript_sdk_faq.md |
246
- | Mini Program FAQ | references/sdk/faq/miniprogram_sdk_faq.md |
247
- | Mini Game FAQ | references/sdk/faq/minigame_sdk_faq.md |
248
- | Unity FAQ | references/sdk/faq/unity_sdk_faq.md |
249
- | Java Server FAQ | references/sdk/faq/java_sdk_faq.md |
250
- | Python FAQ | references/sdk/faq/python_sdk_faq.md |
251
- | LogBus2 Guide | references/sdk/integration-tools/logbus2_guide.md |
252
- | LogBus2 Parser Plugin | references/sdk/integration-tools/logbus2_parser_plugin.md |
253
- | Restful API Notes | references/sdk/integration-tools/restful_api_notes.md |
254
- | SDK Log Viewing Guide | references/sdk/faq/sdk_log_guide.md |
255
- | SDK Usage Notes | references/sdk/faq/sdk_usage_notes.md |
256
-
257
- ## Official Documentation
258
-
259
- ### Client SDK
260
-
261
- **Native Platforms**
262
-
263
- | SDK | Document Path |
264
- | ------------------------ | ---------------------------------------------- |
265
- | Android | references/sdk/client-sdk/android.md |
266
- | iOS | references/sdk/client-sdk/ios.md |
267
- | JavaScript | references/sdk/client-sdk/javascript.md |
268
- | macOS | references/sdk/client-sdk/macos.md |
269
- | OpenHarmony | references/sdk/client-sdk/openharmony.md |
270
- | C (Client) | references/sdk/client-sdk/c.md |
271
- | Mini Program & Mini Game | references/sdk/client-sdk/mini-program-mini-game.md |
272
-
273
- **Game Engines**
274
-
275
- | SDK | Document Path |
276
- | ------------ | ------------------------------------ |
277
- | Unity | references/sdk/client-sdk/unity.md |
278
- | Unreal | references/sdk/client-sdk/unreal.md |
279
- | CocosCreator | references/sdk/client-sdk/cocoscreator.md |
280
- | Cocos2d-x | references/sdk/client-sdk/cocos2d-x.md |
281
- | Cocos2d-Lua | references/sdk/client-sdk/cocos2d-lua.md |
282
- | LayaAir | references/sdk/client-sdk/layaair.md |
283
- | Egret | references/sdk/client-sdk/egret.md |
284
- | Corona | references/sdk/client-sdk/corona.md |
285
-
286
- **Cross-platform Frameworks**
287
-
288
- | SDK | Document Path |
289
- | ------------ | ------------------------------------ |
290
- | Flutter | references/sdk/client-sdk/flutter.md |
291
- | React Native | references/sdk/client-sdk/react-native.md |
292
- | uni-app | references/sdk/client-sdk/uni-app.md |
293
-
294
- **Other**
295
-
296
- | Document | Path |
297
- | ------------------------ | ---------------------------------------------- |
298
- | Client SDK FAQ | references/sdk/faq/ (per-SDK FAQ files) |
299
- | H5 & APP SDK Integration | references/sdk/client-sdk/h5-and-app-sdk-integration.md |
300
-
301
- ### Server SDK
302
-
303
- | SDK | Document Path |
304
- | ------- | ------------------------------ |
305
- | Java | references/sdk/server-sdk/java.md |
306
- | Python | references/sdk/server-sdk/python.md |
307
- | Node.js | references/sdk/server-sdk/nodejs.md |
308
- | Golang | references/sdk/server-sdk/golang.md |
309
- | PHP | references/sdk/server-sdk/php.md |
310
- | C | references/sdk/server-sdk/c.md |
311
- | Lua | references/sdk/server-sdk/lua.md |
312
- | Ruby | references/sdk/server-sdk/ruby.md |
313
- | Erlang | references/sdk/server-sdk/erlang.md |
314
-
315
- ### Data Integration Tools
316
-
317
- | Tool | Document Path |
318
- | ----------------- | ------------------------------------------------------ |
319
- | LogBus2 | references/sdk/integration-tools/logbus2_guide.md |
320
- | DataX | references/sdk/integration-tools/ta-datax-writer-guide.md |
321
- | Filebeat+Logstash | references/sdk/integration-tools/filebeat-logstash-guide.md |
322
- | Restful API | references/sdk/integration-tools/restful_api_notes.md |
323
-
324
- ### Basic Knowledge
325
-
326
- | Document | Document Path |
327
- | --------------------------------- | ---------------------------------------------------------- |
328
- | Data Rules | references/sdk/te-data-rules/data-rules.md |
329
- | User Identification Rules | references/sdk/te-data-rules/user-identification-rules.md |
330
- | Preset Properties & System Fields | references/sdk/te-data-rules/preset-properties-system-fields.md |
331
- | First Event Validation | references/sdk/te-data-rules/first-event-validation.md |
332
- | Updatable Events | references/sdk/te-data-rules/updatable-events.md |
333
-
334
- ---
335
-
336
- # 9. Configuration Example Standards
337
-
338
- When providing configuration examples, **must use placeholders**:
339
-
340
- | Parameter | Placeholder Example |
341
- | ------------------------ | ---------------------------------------- |
342
- | push_url / reporting URL | `YOUR_PUSH_URL` or `http://RECEIVER_URL` |
343
- | app_id | `YOUR_APP_ID` |
344
- | Kafka brokers | `localhost:9092` |
345
- | Username/Password | `YOUR_USERNAME` / `YOUR_PASSWORD` |
346
-
347
- ---
348
-
349
- # 10. Supported Products List
350
-
351
- | Type | Products |
352
- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
353
- | Client SDK | iOS, Android, JavaScript, Mini Program, macOS, OpenHarmony, C, Unity, Unreal, Cocos Creator, Cocos2d-x, Cocos2d-Lua, LayaAir, Egret, Corona, Flutter, React Native, uni-app |
354
- | Server SDK | Java, Python, PHP, Node.js, Go, C, Lua, Ruby, Erlang |
355
- | Data Integration Tools | LogBus v2, DataX, Restful API, Filebeat+Logstash |
@@ -1,283 +0,0 @@
1
- # Tracking Plan Generator
2
-
3
- ## Use This Skill When
4
-
5
- - The user wants to create a new tracking plan, add tracking, refactor tracking, unify naming, or fill in common properties / user properties.
6
- - The user mentions tracking plan, tracking design, tracking plan, event tracking, behavior analysis plan, or the 11-sheet template.
7
- - The user wants to reference internal industry templates, but still produce a unified, standard, importable, and analyzable plan.
8
-
9
- ## Directory Guide
10
-
11
- - Main workflow and hard rules: `references/plan-generation/reference.md`
12
- - Authoritative source for naming and property mapping: `references/naming-dict.md`
13
- - Internal industry template index: `references/plan-generation/template-catalog.md`
14
- - Baseline of universal game base modules: `references/plan-generation/module-baseline.md`
15
- - Excel export input format: `references/plan-generation/export-schema.md`
16
- - Internal experience template assets: `references/categories/*.md`
17
- - Template index generation script: `scripts/build_template_catalog.py`
18
- - Primary Excel path: `scripts/finalize_plan.py`; synchronized delivery: `scripts/prepare_delivery.py`; compatibility alias: `scripts/export_tracking_plan.py`
19
-
20
- ## Non-Negotiable Rules
21
-
22
- 1. Any final decision on event name, property name, display name, or type must follow `references/naming-dict.md`.
23
- 2. `references/categories/*.md` are internal experience assets, not hard standards. When a template conflicts with the naming dictionary or hard rules, the naming dictionary and hard rules take precedence.
24
- 3. DO NOT guess when key business information is missing, especially the revenue model, account system, platform carrier, core gameplay loop, main entry points, and currency system.
25
- 4. Present the plan online in the conversation first, so the user can review it in-session. Render it with `scripts/prepare_delivery.py --conversation-only` from the canonical JSON; Markdown is a real conversational deliverable. At this stage do not create an XLSX, an Excel lint log, or a hidden temporary workbook.
26
- 5. After the overview review, ask the user to choose exactly one delivery branch: **sync directly to Tracking Management** or **generate a local Excel file**. Do not generate both by default.
27
- 6. For the Excel branch only, generate the complete **11-sheet** xlsx from that same JSON using the repaired v2.0.1 `assets/埋点模版.xlsx`: `#用户ID体系`, `#公共事件属性`, `#事件数据`, `#用户数据` plus seven unchanged instruction sheets. Use `scripts/finalize_plan.py --plan <plan.json> --template assets/埋点模版.xlsx --output <NEW.xlsx>` and strict read-only lint. Keep Chinese sheet names, headers and type labels; replies and authored business descriptions follow the user's language.
28
- 7. For the direct-sync branch, keep the conversation-only delivery and use `scripts/sync_plan.py` through [Validated Upload](validated-upload.md): inspected `tracking.plan.save_items`, read-only baseline, dry-run, semantic/conflict review and one explicit target/scope confirmation. Never create an Excel intermediate. The [15 manual/model semantic checks](../business-semantic-checks.md) apply to both branches; fixes require confirmation and originals stay unchanged.
29
-
30
- ## Workflow
31
-
32
- ### 1. First Determine the Task Type
33
-
34
- - New plan: generate a complete 11-sheet plan from scratch.
35
- - Iterate an existing plan: first obtain the current state, then decide whether to add, correct, or rename.
36
-
37
- ### 2. Information to Complete When Creating a New Plan
38
-
39
- If any of the following items is missing, a complete plan cannot be generated directly. **First determine the category, then confirm each item against the corresponding checklist.**
40
-
41
- ---
42
-
43
- #### Games
44
-
45
- - **Development carrier / SDK type**: Android, iOS, Unity, Cocos, WeChat mini game, Douyin mini game, etc. (determines the auto-collected event mapping)
46
- - **Account system**: whether it is "single account with multiple roles"; whether `#account_id` uses the role ID or the account ID;
47
- - **Revenue model**: IAA / IAP / hybrid / subscription (determines the mandatory event set)
48
- - **Core gameplay loop**: one sentence on "what the player repeatedly does and what they gain" (determines whether battle / resource / quest modules are mandatory)
49
- - **Currency / resource system**: which soft/hard currencies and key items exist, how each is obtained and consumed, and the change-reason enum
50
- - **Core system entry list**: enumerate the product's main functional modules (e.g. stages, gacha, shop, quests, guild, etc.; list as many as exist)
51
-
52
- If the user cannot provide a complete path, at minimum require:
53
-
54
- - 1 to 3 analysis scenarios
55
- - The core metric for each scenario
56
-
57
- Then break it down as "scenario -> metric -> event/property -> common property" and ask the user to confirm.
58
-
59
- > If the user provides too few entries (fewer than 3), proactively ask: "What other core feature entries are there?"
60
-
61
- ---
62
-
63
- #### Non-game Products
64
-
65
- - **Development carrier / SDK type**: Android, iOS, WeChat mini program, Web / H5, etc. (determines the auto-collected event mapping)
66
- - **Account system**: no account / single account; the account definition of `#account_id`;
67
- - **Revenue model**: ads (IAA) / subscription / in-app purchase / transaction commission / hybrid (determines the mandatory event set)
68
- - **Core business loop**: one sentence on "the user's path from entry to completing the core value" (e.g. search -> browse -> add to cart -> pay)
69
- - **Main interface key entries**: enumerate the product's main feature pages or entries (e.g. home / search / detail / list / profile, etc.; list as many as exist)
70
-
71
- If the user cannot provide a complete path, at minimum require:
72
-
73
- - 1 to 3 analysis scenarios
74
- - The core metric for each scenario
75
-
76
- Then break it down as "scenario -> metric -> event/property -> common property" and ask the user to confirm.
77
-
78
- > If the user provides too few entries (fewer than 3), proactively ask: "What other main feature pages or entries are there?"
79
-
80
- ### 3. How to Supplement Information for Launched Products
81
-
82
- Information priority is:
83
-
84
- 1. Directly provided by the user
85
- 2. Search official sites, app stores, TapTap, Wiki, and other public materials, then relay back to the user for confirmation
86
- 3. Reference internal templates to propose candidate modules
87
- 4. Industry-general inference
88
-
89
- ### 4. First Confirm SDK Auto-Collected Events
90
-
91
- Using the SDK platform mapping table in `references/plan-generation/reference.md`, first determine the platform group, then list the auto-collected events supported by that platform for the user to confirm. The confirmed auto events:
92
-
93
- - Are written out separately in `#事件数据`
94
- - Set `platform` to `client` in the official Chinese `采集端` column E
95
- - By default do not add custom properties, unless the user explicitly requests additional descriptions
96
-
97
- ### 5. Select Business Modules
98
-
99
- First read the category modules, mandatory revenue-model events, and add/remove rules in `references/plan-generation/reference.md`, then decide the module set.
100
-
101
- If the user's category is clear:
102
-
103
- - First read `references/plan-generation/template-catalog.md`
104
- - Open only the 1 to 2 closest `references/categories/*.md`
105
- - Extract modules, common properties, and representative events
106
- - Then return to `references/naming-dict.md` to normalize naming and types
107
-
108
- If the user's category is unclear but it can be judged as a game:
109
-
110
- - First use `references/plan-generation/module-baseline.md` to build the base modules
111
- - Then add or remove modules according to the closest industry template
112
-
113
- If the user provides a historical plan:
114
-
115
- - First reuse existing stable fields
116
- - Then correct obvious conflicts using this skill's conventions
117
-
118
- Notes:
119
- 1. Even after the user provides content directly, still supplement the user-provided information via method 2; when information conflicts, the user-uploaded content takes precedence.
120
- 2. Method 4 must be explicitly marked as "inferred, pending confirmation".
121
- 3. DO NOT infer and add module content that the user did not provide based on the product type.
122
-
123
- ### 6. Extract User Properties
124
-
125
- Reference the user-property generation module in `references/plan-generation/reference.md`, and summarize and generate user-property content from the already-generated events and properties.
126
-
127
- ### 7. How to Handle Iterating an Existing Plan
128
-
129
- First obtain the current plan, then classify into three types:
130
-
131
- - New event: add a new business action
132
- - New property: add fields to an existing event
133
- - New value: add values to an existing enum property
134
-
135
- For these three "extension actions", first output a change-confirmation list and make changes only after confirmation.
136
-
137
- The following "non-extension actions" also require an explained change list and explicit confirmation before save-as, accompanied by:
138
-
139
- - A before/after mapping of the change
140
- - A compatibility strategy
141
- - Risk warnings
142
-
143
- Non-extension actions include:
144
-
145
- - Renaming
146
- - Type correction
147
- - Merging or splitting events
148
- - Unifying synonymous properties
149
-
150
- ### 8. Conversation Review and Delivery Choice
151
-
152
- 1. Organize the canonical JSON using `references/plan-generation/export-schema.md`; keep confirmed facts distinct from TBC, record Notes/Timezone, metric mapping and provenance.
153
- 2. Run `python3 scripts/prepare_delivery.py --plan plan.json --output-dir NEWDIR --language zh --conversation-only` (or `en`) and **show the complete conversation overview**. It writes normalized JSON, conversation Markdown, validation and a pending semantic-review template—no `plan.xlsx` and no `lint.txt`.
154
- 3. After the user reviews the overview, ask: “直接同步至数数埋点管理页面,还是生成本地 Excel 文件?” Use equivalent wording in the user's language. Do not assume a default and do not produce both.
155
- 4. **Direct sync:** keep the same conversation-only directory and enter `references/workflows/validated-upload.md` with `scripts/sync_plan.py`. Build the structured payload from canonical JSON, inspect the deployed contract, read the baseline and dry-run before semantic/conflict review. No Excel is generated at any step.
156
- 5. **Local Excel:** only after this choice, generate the full 11-sheet workbook with `scripts/finalize_plan.py --plan <plan.json> --template assets/埋点模版.xlsx --output <NEW.xlsx>` and run strict read-only lint. A machine pass is not a semantic pass.
157
- 6. If repair is needed, show a before/after diff and await confirmation. Propagate approved corrections to canonical JSON and regenerate the conversation plus the selected branch artifacts to prevent drift. Return actual counts, first/final validation results and remaining TBC. Remote writes always require the later explicit target/scope confirmation.
158
-
159
- ## Design Rules
160
-
161
- ### Event And Property Naming
162
-
163
- - Event names and property names are uniformly `snake_case`
164
- - Event names are globally unique; do not create multiple synonymous names for the same business action
165
- - Event names start with a letter and may contain only: letters (case-sensitive), digits, and underscores "_", with a maximum length of 50 characters
166
- - Properties must start with a letter and may contain only: letters (case-insensitive), digits, and underscores "_", with a maximum length of 50 characters
167
- - Properties reused across events must reuse the same property name
168
- - Check `references/naming-dict.md` first; if an existing mapping exists, reuse it directly
169
-
170
- ### Type And Object Rules
171
-
172
- - Property name, display name, and type must correspond one-to-one
173
- - Amounts and durations must state their unit
174
-
175
- **When to use an object group (all three conditions must be met; otherwise use a list or a plain property)**
176
-
177
- 1. An event property / user property needs to record multiple entities of the same kind
178
- 2. Each entity needs to record >= 2 properties (otherwise a list suffices)
179
- 3. The number of entities is not fixed (when it is fixed at 1, use a plain property)
180
-
181
- > For the sub-property type restrictions of object groups, the writing format (parent row / child row / dot separation), reporting constraints (empty-value handling, prefix rules, ID as Value), and TE system quantity limits, see `references/plan-generation/reference.md §6 Object Group Rules`, and follow them when generating.
182
-
183
- **When the three conditions are met, an object group must be used; it cannot be replaced by the following:**
184
-
185
- - DO NOT concatenate multiple entities into a text string (e.g. `"hero_ids": "001,002,003"`)
186
- - DO NOT split multiple detail rows into multiple events (e.g. `item_get_1` / `item_get_2`)
187
-
188
- **Paired events require correlation, not forced isomorphism:**
189
-
190
- - Start/result events share a stable correlation key (e.g. `stage_attempt_id`) and relevant context. They do not need identical object-group structures or every property copied to both events.
191
- - Reuse the same parent name only when its meaning and child schema genuinely match. Different business structures use different parent names; never invent filler fields to force reuse.
192
-
193
- ### Collection Side Rules
194
-
195
- Use `platform` in canonical JSON and the existing official `采集端` column E, with `client` / `server` / `client,server`. Never append an English Collection Platform column. Preserve remarks in existing description/assignment fields.
196
-
197
- - SDK auto-collection, device activation and pure UI behavior: normally `client`.
198
- - Payment/economy/settlement: the confirmed authoritative source, normally `server` when a server exists. Do not invent a server for a client-only game.
199
- - Dual-side collection is exceptional: confirm one authoritative business fact plus `#uuid`/request-ID dedup and retry semantics. Related but different start/result facts need correlation, not duplicate reporting.
200
-
201
- ## Output Contract
202
-
203
- ### Final Deliverable
204
-
205
- - Always provide the reviewable conversation overview first. `python3 scripts/prepare_delivery.py --plan plan.json --output-dir NEWDIR --language en --conversation-only` (or `zh`) produces normalized JSON, conversation Markdown, validation and a pending semantic-review template, with no workbook or Excel lint.
206
- - After overview Q&A, deliver **only the user's selected branch**: direct structured sync with no Excel, or a complete local 11-sheet workbook from the same JSON. The renderer supports zh/en interface labels; authored business text is preserved, not automatically translated.
207
- - Recommended Excel name: `{product or project name}_tracking_plan_{YYYYMMDD}.xlsx`; `scripts/finalize_plan.py` is the direct template-fill path and `scripts/export_tracking_plan.py` is its compatibility alias. `scripts/sync_plan.py` owns the no-Excel structured branch.
208
- - Review actual conversation content in-session, not merely a download link. Keep Notes/Timezone, actual counts, change log and TBC visible. Pending semantic review is not remote-write ready.
209
-
210
- ### 1. `#用户ID体系`
211
-
212
- - Provide the account-system choice
213
- - Clarify the assignment logic for `#account_id` and `#distinct_id`
214
- - For multi-role game scenarios, prefer "role ID as `#account_id`"
215
-
216
- ### 2. `#公共事件属性`
217
-
218
- - Keep only fields carried by most events
219
- - Align with the common property dictionary in `references/naming-dict.md`
220
- - For scenario fields such as ad attribution, level, server, and balance, note when they are mandatory
221
-
222
- ### 3. `#事件数据`
223
-
224
- Each event must at least clearly state:
225
-
226
- - Event name
227
- - Event display name
228
- - Precise trigger timing
229
- - Owning module (event tag column)
230
- - Collection-side responsibility (`platform`: `client` / `server` / `client,server`; Chinese `采集端` column E)
231
- - Custom properties and types
232
-
233
- When there are 10 or fewer enum values, write the enum directly in the description; when there are more than 10, suggest attaching a dimension table.
234
-
235
- ### 4. `#用户数据`
236
-
237
- - `user_setOnce`: first registration, first payment, first channel, etc.
238
- - `user_set`: current level, current balance, last login time, etc.
239
- - `user_add` or `user_set`: cumulative values must state the update rule
240
-
241
- ## Template Usage Rules
242
-
243
- Template assets are positioned as "industry knowledge" and "ready-made experience samples", not standard answers. Usage:
244
-
245
- 1. First read `references/plan-generation/template-catalog.md` to pick a template; do not blindly open all Excel files.
246
- 2. Only extract modules, common properties, and event families highly relevant to the current product.
247
- 3. Legacy field names, legacy types, and legacy collection-side labels in templates must be re-validated against `references/naming-dict.md` and `references/plan-generation/reference.md`.
248
- 4. If multiple templates are close, prefer the one closest to the revenue model and core loop; use the other template only to fill missing modules.
249
- 5. When outputting, distinguish "template borrowing" from "user-confirmed requirements"; do not disguise template content as confirmed facts.
250
-
251
- Recommended priority:
252
-
253
- - User-confirmed facts
254
- - User's existing historical plan
255
- - `references/naming-dict.md`
256
- - `references/plan-generation/reference.md`
257
- - `references/plan-generation/module-baseline.md`
258
- - `references/categories/*.md`
259
-
260
- ## Final Self-Check
261
-
262
- Before delivery, at least check:
263
-
264
- - Whether any event name or property name still contains Chinese, spaces, or a non-letter leading character
265
- - Whether duplicate event names or synonymous events coexist
266
- - Whether the same property name maps to multiple display names or multiple types
267
- - Whether the mandatory IAA and IAP events are complete
268
- - Whether paired events have stable correlation keys without forced business-schema isomorphism
269
- - E1: explicit `ad_fail` and ad revenue marked requires ad-platform callback / TBC if unavailable
270
- - E2: `first_media_source` / `first_campaign` use first-touch semantics, distinct from current/campaign snapshots
271
- - Actual event counts agree between JSON, Excel and report; replies/business explanations follow the user's language
272
- - Whether amount, duration, and balance fields state their unit
273
- - Whether enum values, abnormal values, and empty-value fallbacks are clearly written
274
- - Whether the user-property update methods are executable
275
-
276
- ## When To Open Which File
277
-
278
- - When SDK auto-collection, types, object groups, or revenue-model rules are needed: `references/plan-generation/reference.md`
279
- - When unifying event names, property names, display names, and types: `references/naming-dict.md`
280
- - When picking an industry template: `references/plan-generation/template-catalog.md`
281
- - When a starting point of "games get a base first, then expand by category" is needed: `references/plan-generation/module-baseline.md`
282
- - For conversation and delivery choice: `references/plan-generation/export-schema.md` + `scripts/prepare_delivery.py --conversation-only`; then `scripts/sync_plan.py` for direct sync or `scripts/finalize_plan.py` for the selected Excel branch
283
- - Only after a template has been selected, open the corresponding `references/categories/*.md`