thinkingaiagenticengine/ae-cli5 files

Ae Generate Tracking Plan

Interactive generation of an AE tracking plan and upload. Trigger words: 埋点方案、埋点模板、tracking plan、AE 方案生成、create tracking plan、トラッキングプラン、트래킹 플랜. Follows anchor → draft → refine → token → upload five-phase workflow. Deliverable is a real tracking plan created in the AE platform.

Specification
Skill ID
thinkingaiagenticengine/ae-cli/ae-generate-tracking-plan
Publisher
thinkingaiagenticengine
Repository
ae-cli
Installs
0
Files
5
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

thinkingaiagenticengine/ae-cli/ae-generate-tracking-planInstalls these files
  • SKILL.md
  • references/autotrack-events.md
  • references/business-dimension-mapping.md
  • references/te-api.md
  • references/xlsx-schema.md

What this skill tells the agent

ae-generate-tracking-plan

Conversation language: This skill document is in English, but all output to the user MUST be in the user's input language. English input → English reply; Chinese input → Chinese reply; Japanese input → Japanese reply. If uncertain, default to English. This applies to all output: section titles, phase names, template prompts, example text, option lists, etc. ⚠️ CRITICAL: Template localization is CLI-owned. Do NOT manually translate imported template content with the model. Use the `src/tracking/i18n` module as the source of truth by setting `AE_LANG=<user_lang>`, writing `draft.meta.lang`, and regenerating through `ae-cli tracking code import-template` / `ae-cli tracking plan draft`. *Before changing any template-owned localized label, first look up the corresponding translation in `src/tracking/i18n` (for example `resources/xlsx/sheets.ts`, `resources/xlsx/headers.ts`, `resources/xlsx/types.ts`, and `resources/cli/.json`). If no matching translation exists there, preserve the imported text and ask before rewriting business semantics.** Do NOT copy Chinese text verbatim from this document into English/Japanese replies unless it is an identifier, template name needed for CLI import, or original source material quoted for traceability.

Terminology Glossary

中文EnglishNotes
埋点方案Tracking PlanAE project-level event & property definitions
埋点模板Tracking Plan TemplatePre-built industry/genre xlsx templates
方案名称Plan NameUser-facing plan identifier
应用场景Application ScenarioOne-sentence description of what the app does
素材来源Source Material Typeprd / chat / codebase / template / data
数据样本 / 文件画像Data Sample / File ProfileColumn→property mapping source from an ae-data-integration inspect profile (source_type: data)
业务维度Business DimensionRevenue model, core loop, functional entries, currency system
收入模型Revenue ModelIAA / IAP / mixed / subscription / commission
核心循环Core LoopCore gameplay loop (e.g. "grind stages → earn coins → gacha for heroes")
功能入口Functional EntryStage, shop, guild, leaderboard, task, achievement, etc.
货币体系Currency SystemHard currency (diamonds), soft currency (gold), etc.
事件EventNamed user action or system occurrence (event_name)
事件属性Event PropertyData attached to an event (prop_names)
公共事件属性Common/Super PropertyProperty attached to every event automatically. ⚠️ The correct Chinese AE term is "公共事件属性" or "公共属性". Never translate "Super Property" as "超级属性" — that is NOT a valid AE term.
用户属性User PropertyProperty on the user profile (persistent state)
预置属性Preset PropertySystem property prefixed with # (#device_id, #time, etc.)
自动采集事件Auto-track EventSDK auto-collected events (ta_app_start, ta_page_show, etc.)
系统事件System Eventevent_tag value reserved for SDK auto-track events (ta_*). One of two non-module tags (together with 基础事件).
基础事件Basicevent_tag value for account-level lifecycle/progression events (register, login, level_up, create_role, etc.). Not tied to any functional module.
功能模块Functional Moduleevent_tag value for feature-specific business events; identifies which module the event belongs to (e.g. Battle, Shop, Ads, Payment, Basic)
SDK 集成模式SDK Integration Modeclient_only / server_only / both / none
客户端平台Client PlatformAndroid, iOS, Web, Unity, Mini-program, etc.
服务端语言Server LanguageJava, Python, Go, Node.js, PHP, etc.
用户体系User Identity Systemdistinct_id strategy + account_id source
访客 IDVisitor ID / Distinct IDAnonymous identity before login
账号 IDAccount IDIdentified user after login
插入InsertDirect code injection into project
片段SnippetCode delivered as standalone files
对象组Object Array (array_row)[{...}] — variable-length list of related entities
对象Object (object){...} — fixed-structure single entity
校验ValidationDraft rule checking before xlsx generation
上传UploadPushing the xlsx tracking plan to AE
追加AppendAdding new events/properties to an existing plan
替换ReplaceDeleting existing plan and uploading a new one
冲突检测Conflict DetectionDetecting type mismatches and duplicate events before upload
归档ArchiveCopying final draft.xlsx to plans/ directory
xlsx 格式契约xlsx Format ContractColumn rules for AE-compatible Excel generation
draft.jsondraft.jsonInternal intermediate representation (JSON) of the tracking plan
display_nameDisplay NameHuman-readable name in the user's language
event_tagEvent TagFunctional module the event belongs to (e.g. Battle, Shop, Ads, Payment). Auto-track events use "System Event".
snake_casesnake_caseCanonical naming format: lowercase_with_underscores

When to Trigger

Trigger when user mentions: "tracking plan / tracking template / AE plan / help me create tracking" etc. App types covered: H5 / Web / iOS / Android / Mini-program / Unity. Follow strictly Phase 0 → 1 → 2 → 3 → 4, do not skip steps.

Phase 1 / 3 / 4 are executed via ae-cli tracking CLI (ae-cli tracking plan draft / ae-cli auth login / ae-cli tracking plan upload / ae-cli tracking plan delete). All CLI commands must be prefixed with `AE_LANG=<user_lang>` (e.g. AE_LANG=en ae-cli tracking plan draft ...), ensuring CLI output messages and generated xlsx headers match the user's language. Upload commands MUST also pass --lang <user_lang> so the server parses the uploaded xlsx with the same sheet/header language. Language rules: For newly generated content, user-facing fields in draft.json (display_name, event_desc, event_tag, property display_name, property desc, etc.) should be generated in the user's input language. Every event, event property, common event property, and user property must have a non-empty display_name. A canonical snake_case identifier is not a substitute for a user-facing display name. For imported templates, do NOT translate those fields manually. Template sheet names, headers, property type display values, CLI messages, and auto-track/i18n-owned labels must come from src/tracking/i18n via AE_LANG=<user_lang> and draft.meta.lang. When a localized label is needed, inspect src/tracking/i18n and use the existing resource key/value; do not invent translations from the model. If template business text needs localization and the CLI/i18n resources do not provide it, preserve the imported text and ask the user before rewriting business semantics. Only identifier fields like event_name, prop_name remain in English. Property names are snake_case; event names are lowercase by default, uppercase only when the user asks to preserve it. This skill only cares about command behavior, not internal implementation.

Phase 0 — Anchor (one question per message)

Step 1: Language initialization Determine <user_lang> from user's input language: Chinese→zh, English→en, Japanese→ja, Korean→ko. Other languages default to en. All subsequent CLI commands must be prefixed with AE_LANG=<user_lang> to ensure CLI output and generated xlsx headers match the user's language. When uploading the xlsx, pass --lang <user_lang> as well; it must match draft.meta.lang / the generated xlsx language.

Collect the following 5 items sequentially, do NOT ask all at once:

Item 1 — Application Scenario

Ask: "What is your application's business scenario? One sentence summary, e.g.: An e-commerce website where users browse products and place orders"

After user responds, record to meta.scenario and generate meta.plan_name.

Item 2 — Source Material + Business Dimension (combined)

More from thinkingaiagenticengine

Use this skill in a project

Open any RiverX project, search the Skills panel for thinkingaiagenticengine/ae-cli/ae-generate-tracking-plan, and install it in one click.

Use this skill