Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ae-generate-tracking-code

БесплатноБез исполняемых скриптовНе проверен

Interactive generation of AE tracking code, LogBus2 configuration, and debug scripts from a tracking plan. Trigger words: 代码埋点、埋点代码、tracking code、埋点落地、logbus…

infometaот infometa★ 475 звёзд на GitHub

Об этом скилле

ae-generate-tracking-code

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, code comments, etc. ⚠️ CRITICAL: Many reference documents (wiki SDK docs, code examples) contain Chinese text. When reading Chinese source material to answer an English/Japanese user, you MUST translate headings, descriptions, and comments to the user's language. The source document's language is NOT the user's language. Use the Terminology Glossary above to map terms accurately. Do NOT copy Chinese text verbatim from this document into English/Japanese replies.

Document link language: When providing official documentation URLs, use lan=zh-CN for Chinese users, lan=en-US for all others.

Terminology Glossary

中文 English Notes
埋点方案 Tracking Plan AE project-level event/property definitions
代码埋点 Tracking Code Generation Generating SDK/LogBus code from a plan
埋点代码 Tracking Code The generated SDK init + track() calls + helpers
输出方式 Output Mode insert (inject) or snippet (file delivery)
插入 Insert Direct code injection into the user's project
片段 / 代码片段 Snippet Code delivered as files under .ae-cli/output/
采集端 Collection Platform / Platform Where events are sent from: client, server, or both
客户端 Client Client-side SDK (Android/iOS/Web/etc.)
服务端 Server Server-side SDK (Java/Python/Go/etc.)
两端都采集 Both Events collected from both client and server
SDK 集成模式 SDK Integration Mode client_only / server_only / both
用户体系 User Identity System distinct_id / account_id strategy
校验脚本 Validation / Debug Script Test code to verify tracking works
LogBus2 配置 LogBus2 Configuration daemon.json for LogBus2 log sync tool
LoggerConsumer LoggerConsumer Server SDK consumer that writes events to local log files
BatchConsumer BatchConsumer Server SDK consumer that uploads events in batches
公共属性 Super Property Properties attached to all events automatically. ⚠️ The correct Chinese AE term is "公共属性" or "公共事件属性". Never translate "Super Property" as "超级属性" — that is NOT a valid AE term.
预置属性 Preset Property System properties prefixed with # (e.g. #device_id, #time)
事件属性 Event Property Custom properties on specific events
用户属性 User Property Properties set on the user profile
上报地址 SERVER_URL Data ingestion endpoint (different from web URL!)
APP_ID APP_ID Application ID from AE Admin → "Integration Config"
project_id Project ID AE project identifier (≠ APP_ID)
自动采集 Auto-track Auto-collected events (app install, start, view, click)
埋点方案上传 Plan Upload Upload tracking plan xlsx to AE

When to Trigger

Trigger when user says: "generate tracking code / help me add web tracking / generate logbus config / server-side reporting code" etc. Supports multiple platforms with independent output mode selection per platform.

Phase 0 — Anchor (one question per message)

Pre-check: Read existing configuration from draft.json

First, check if .ae-cli/draft.json exists and read existing configuration:

Config Item draft.json Field Handling
AE projectId meta.project_id Has value → confirm; missing → ask
AE web address meta.host Has value → confirm; missing → ask
SERVER_URL meta.server_url Has value → confirm; missing → try lookup from project config, then ask if unavailable
APP_ID meta.app_id Has value → confirm; missing → try lookup from accessible project list, then ask if unavailable
SDK integration mode meta.sdk_integration_mode Has value → use directly
Client SDK type meta.client_platforms (preferred) or meta.client_sdk_type Has value → use directly
Server language meta.server_language Has value → use directly
User identity system meta.user_identity Has value → use directly

Important: project_id ≠ APP_ID, and host ≠ SERVER_URL. Even if project_id and host are already set, SERVER_URL and APP_ID must still be resolved and confirmed separately. Prefer lookup first; ask the user only when lookup is unavailable or ambiguous.

Multi-platform support:

  • If client_platforms exists (array): multi-platform scenario — generate code for each platform
  • If only client_sdk_type exists: single platform (backward compatible)
  • Example: client_platforms: ["android", "openharmony"] → generate code for Android + OpenHarmony

Language support:

  • Android SDK: supports Java / Kotlin (can generate both)
  • iOS SDK: supports Objective-C / Swift (can generate both)
  • Other SDKs: fixed language, no selection
Полный SKILL.md на GitHub

Установить ae-generate-tracking-code в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/autotrack-enum.mdreferences/client-sdk-insert.mdreferences/datax-config.mdreferences/debug-script.mdreferences/logbus-config.mdreferences/modes.mdreferences/restful-call.mdreferences/sdk-index.mdreferences/server-sdk-insert.mdreferences/snippet-delivery.mdreferences/te-api.md

FAQ

Что делает скилл ae-generate-tracking-code?

Interactive generation of AE tracking code, LogBus2 configuration, and debug scripts from a tracking plan. Trigger words: 代码埋点、埋点代码、tracking code、埋点落地、logbus 配置、AE 上报代码、generate tracking code、insert tracking、トラッキングコード、트래킹 코드. Supports independent output mode selection per platform (insert/snippet). Server-side defaults to LoggerConsumer + LogBus2 architecture.

Как установить скилл ae-generate-tracking-code?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ae-generate-tracking-code запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ae-generate-tracking-code с