@thinkingai/ae-cli 6.1.37 → 6.1.39
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.
- package/README.md +3 -1
- package/README.zh.md +3 -1
- package/cli-installation-guide.md +1 -2
- package/dist/{ai-monitor-YKNYBHN2.js → ai-monitor-DST4NDOK.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-FXRGFG37.js → auth-BD3NIY3T.js} +3 -3
- package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
- package/dist/{capability-GM7CH2LZ.js → capability-3NJOQHZQ.js} +3 -3
- package/dist/{chunk-46V4ZF7E.js → chunk-24DCOJBJ.js} +2 -2
- package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
- package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
- package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
- package/dist/{chunk-EFGZFFSO.js → chunk-FRJUB66C.js} +1 -1
- package/dist/{chunk-OFOPYKYM.js → chunk-IY5G42YY.js} +2 -2
- package/dist/{chunk-NBXQSPXL.js → chunk-KBJHBVO7.js} +1 -1
- package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/{chunk-IL2O4KDP.js → chunk-SQEK6S4X.js} +20 -21
- package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
- package/dist/{chunk-OTV5EBR5.js → chunk-TVSGS5QB.js} +5 -5
- package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
- package/dist/{chunk-JFXDUX6U.js → chunk-VXKKTUU2.js} +2 -2
- package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
- package/dist/{compat-check-ZMJWF6QG.js → compat-check-7VBBE7KO.js} +1 -1
- package/dist/{config-6G2LAH5D.js → config-LFRZBPH5.js} +4 -7
- package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
- package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
- package/dist/index.js +34 -32
- package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
- package/dist/{metadata-6S3Z67JC.js → metadata-AR64J76Z.js} +5 -5
- package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
- package/dist/{personal-semantic-preference-PKYS73D6.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
- package/dist/{project-semantic-B5PG4JJB.js → project-semantic-DJLXAXLD.js} +4 -4
- package/dist/{sync-GB3IKG2D.js → sync-4TUIQ2PZ.js} +3 -3
- package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
- package/dist/{te-analysis-ZYL4AF34.js → te-analysis-XHAMRMTQ.js} +6 -6
- package/dist/{te-community-R63WXF6D.js → te-community-JSUSZEYH.js} +4 -4
- package/dist/{te-dataops-VHTPW433.js → te-dataops-I264BUTI.js} +2 -2
- package/dist/{te-engage-ZE7ROR3Z.js → te-engage-XNMQYO5N.js} +68 -16
- package/dist/{te-experiment-ZDR2JZTN.js → te-experiment-5SCHMYVO.js} +4 -4
- package/dist/{te-kb-6NXLBHE3.js → te-kb-QQ53TNRZ.js} +44 -13
- package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
- package/dist/{te-team-KOSX43ZP.js → te-team-V6BBI52R.js} +87 -6
- package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
- package/dist/{update-XPNNE7UF.js → update-53ZUXWV5.js} +2 -2
- package/dist/{web-runtime-7DPC4HYJ.js → web-runtime-ZJHOIPKX.js} +4 -4
- package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.js} +3 -3
- package/package.json +3 -3
- package/skills/ae-automation/SKILL.md +6 -2
- package/skills/ae-automation/references/cli.md +9 -3
- package/skills/ae-engage/SKILL.md +6 -1
- package/skills/ae-engage/references/common-metric.md +47 -1
- package/skills/ae-engage/references/flow-metric-update.md +1 -1
- package/skills/ae-engage/references/task-metric-update.md +1 -1
- package/skills/ae-experiment/SKILL.md +1 -1
- package/skills/ae-experiment/references/save_experiment.md +1 -1
- package/skills/ae-kb/SKILL.md +8 -6
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-onboarding/SKILL.md +2 -2
- package/skills/ae-onboarding/references/onboarding_run.md +1 -1
- package/skills/ae-team/SKILL.md +7 -3
- package/skills/ae-team/references/copy-to-personal.md +7 -0
- package/skills/ae-team/references/promote.md +7 -0
- package/skills/ae-team/references/update.md +3 -3
- package/skills/ae-tracking-matrix/SKILL.md +0 -170
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +0 -12
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
- package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
- package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
- package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
- package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
- package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
- package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
- package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
- package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
- package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
- package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
- package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
- package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
- 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`
|