# ae-generate-tracking-code

Generates AE event tracking code, LogBus2 configuration, and debug scripts from your tracking plan. Works across client and server stacks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 789 installs · ★ 21
- Author: ThinkingAIAgenticEngine
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ThinkingAIAgenticEngine/ae-cli/tree/HEAD/skills/ae-generate-tracking-code/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/ae-generate-tracking-code

## What it does

This skill guides you through implementing event tracking for ThinkingEngine / AE. It creates SDK initialization routines, super property helpers, and event calls directly from a tracking plan. For backend reporting, it relies by default on the `LoggerConsumer` setup coupled with LogBus2 to flush local log files.

Configuration resolves values from `.ae-cli/draft.json` or through `ae-cli` commands. Mind the identity settings: `project_id` differs from `APP_ID`, and the reporting endpoint `SERVER_URL` is separate from the dashboard host. Both values must be confirmed before generation proceeds.

Output can be written directly to existing codebase files via insertion mode or saved as snippets under `.ae-cli/output/`. Each target platform gets its own output mode, whether you target mobile platforms like Android and iOS or backend services in Go, Python, or Java.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-generate-tracking-code -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/ae-generate-tracking-code/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/ae-generate-tracking-code/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-generate-tracking-code -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ae-generate-tracking-code/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-generate-tracking-code -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/ae-generate-tracking-code/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ThinkingAIAgenticEngine/ae-cli ae-generate-tracking-code
```

2. **Manually: put the files in place**
- File: `.github/skills/ae-generate-tracking-code/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-generate-tracking-code -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ThinkingAIAgenticEngine/ae-cli --path skills/ae-generate-tracking-code
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ae-generate-tracking-code/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ThinkingAIAgenticEngine/ae-cli --skill ae-generate-tracking-code -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ThinkingAIAgenticEngine/ae-cli/tree/HEAD/skills/ae-generate-tracking-code/SKILL.md

## When to use it
- Generate AE tracking code and initialization calls across platforms
- Build daemon.json configuration for LogBus2 log synchronization
- Produce debug and validation scripts to verify analytics events
- Separate tracking output between direct insertion and isolated snippets

## Example prompts
- Generate AE tracking code for our Android and iOS apps from the plan
- Set up server-side reporting with a LogBus2 daemon.json configuration
- Create a debug validation script to test AE event ingestion

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [thinkingaiagenticengine/ae-cli](https://affpapa.org/en/nevibecode/by/thinkingaiagenticengine/ae-cli.md) — 17 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
