ae-migrate-tracking-code
БесплатноБез исполняемых скриптовНе проверенMigrate existing tracking from Firebase, Amplitude, Sensors Data, Mixpanel, GA4, gtag, or another analytics SDK to the ThinkingAI AE SDK. Use when replacing a…
от ThinkingAIAgenticEngine★ 24 звезды на GitHubОб этом скилле
ae-migrate-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, prompts, code comments, etc. ⚠️ CRITICAL: Many provider adapter docs contain Chinese glossary notes. When reading them to answer an English/Japanese user, translate headings and comments to the user's language. Do NOT copy Chinese text verbatim from this document into English/Japanese replies.
Terminology Glossary
| 中文 | English | Notes |
|---|---|---|
| 埋点迁移 | Tracking Migration | Convert existing third-party SDK tracking calls to AE SDK |
| 源 SDK | Source SDK / Provider | The third-party SDK already in the project (Firebase, Amplitude, ...) |
| 调用点 | Call Site | A source-SDK invocation (logEvent / setUserId / setUserProperty / Identify) |
| 归一化中间表示 | IR (Intermediate Representation) | Provider-neutral dump of extracted call sites |
| 映射 | Mapping | Source event/property → AE event/property translation |
| 切换 | Switch | Replace source calls with AE track() and remove source SDK |
| 双写 / 新增 | Add / Dual-write | Keep source SDK and add AE track() alongside |
| 依赖标识 | Dependency Identifier | Package/module name used to remove the source SDK in switch mode |
| 自动采集事件 | Auto-track Event | Events the source SDK collects automatically (e.g. session_start) |
| 公共属性 | Super Property | Property 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 Property | Property set on the user profile |
| 用户体系 | User Identity System | distinct_id / account_id strategy in AE |
When to Trigger
Trigger when user says: "migrate Firebase tracking to AE / replace Amplitude with ThinkingAI / my project already has Firebase/Amplitude tracking, switch it to AE SDK / add AE tracking alongside existing analytics" etc. — e.g. 把当前工程里的 xx SDK 切换到数数、把已有埋点用数数实现一遍、用数数替换 xx SDK、集成数数并参考已有的 xx SDK 埋点.
The target AE SDK may be referred to by any of: 数数 / 数数 SDK / ThinkingAI / ThinkingAI SDK / Agentic Engine / Agentic Engine SDK / AE / AE SDK — they are one SDK. The trigger signal is "an existing third-party source SDK + 迁移/切换/替换/实现一遍", or "集成/接入数数 并参考已有的 xx SDK 埋点". A bare 接入数数 SDK / 加数数埋点 with no source SDK is greenfield — it belongs to ae-generate-tracking-code, not this skill.
Scope: this skill is codebase-only — it scans existing third-party tracking calls (Phase 0/1). If there is no source code with third-party tracking (only product docs / descriptions), do NOT use this skill; route to ae-generate-tracking-plan + ae-generate-tracking-code instead. Historical data import into AE is offline data-migration work, out of scope — this skill only switches the live client/server SDK, preserving user IDs and event/property names so new data joins the imported data.
This skill orchestrates the migration end-to-end but does not duplicate the two existing skills:
- Plan generation/upload → hand off to
ae-generate-tracking-plan(codebase path). - AE SDK code insertion → hand off to
ae-generate-tracking-code(insert mode), with insertion sites supplied from the migration mapping instead of grep-discovered business triggers.
Provider Registry (extensible)
The core is provider-agnostic. Each third-party platform is one adapter file. To support a new provider, add one adapter under references/providers/ and one row below — do not modify this SKILL.md.
| Provider | Adapter | Platforms covered | Detect pattern (summary) |
|---|---|---|---|
| Firebase Analytics | references/providers/firebase.md |
Web v8/v9, Android, iOS, Flutter, React Native, Unity, C++ | firebase/analytics, firebase.analytics(), FirebaseAnalytics, FIRAnalytics, Analytics.logEvent (iOS Swift), FirebaseAnalytics.instance |
| Amplitude | references/providers/amplitude.md |
Web legacy (amplitude-js), Browser 2.x, Node, Python, Go, Java, Android, iOS, React Native, Flutter, Unity |
amplitude-js, @amplitude/analytics-browser, @amplitude/analytics-node, amplitude.init, amplitude.getInstance(), amplitude.logEvent, amplitude.track, Identify, server imports (from amplitude import, analytics-go, com.amplitude:java-sdk) |
| Sensors Data (神策) | references/providers/sensors-data.md |
Web, Android, iOS, Harmony, macOS/tvOS, C++, React Native, Flutter, Unity, Unreal, Cocos2d-x, mini-programs (WeChat/other), QuickApp, APICloud, uni-app, Weex, Egret, LayaAir + server SDKs (Java/Python/Go/Node/PHP/Ruby/C/.NET/Lua) | sensorsdata.min.js, sensors.init, sensors.track, SensorsDataAPI, SensorsAnalyticsSDK, profileSet, setProfile (legacy), server sa-sdk-* (Python/Go/Node/PHP/Ruby/C/.NET/Lua) |
Установить ae-migrate-tracking-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ae-migrate-tracking-code?
Migrate existing tracking from Firebase, Amplitude, Sensors Data, Mixpanel, GA4, gtag, or another analytics SDK to the ThinkingAI AE SDK. Use when replacing a provider, converting calls such as logEvent to track, reimplementing existing tracking in AE, or dual-writing alongside the source SDK. Uses provider-specific adapters and reuses ae-generate-tracking-plan and ae-generate-tracking-code.
Как установить скилл ae-migrate-tracking-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ae-migrate-tracking-code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic