[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MAC04M6NCRHWV8983H6MV":3,"skill-same:01M75MAC04M6NCRHWV8983H6MV":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75MAC04M6NCRHWV8983H6MV","outlit-sdk",null,"Integrate Outlit SDK for customer context for agents. Triggers when users need to add Outlit to any web framework (React, Next.js, Vue, Nuxt, Svelte, Angular, Astro), server runtime (Node.js, Express, Fastify), desktop app (Tauri, Electron), or need help with Outlit event tracking, user identity, consent management, analytics migration, activation events, billing lifecycle, or troubleshooting existing Outlit installations.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fleo-paz\u002Foutlit-sdk\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: outlit-sdk\ndescription: Integrate Outlit SDK for customer context for agents. Triggers when users need to add Outlit to any web framework (React, Next.js, Vue, Nuxt, Svelte, Angular, Astro), server runtime (Node.js, Express, Fastify), desktop app (Tauri, Electron), or need help with Outlit event tracking, user identity, consent management, analytics migration, activation events, billing lifecycle, or troubleshooting existing Outlit installations.\n---\n\n# Outlit SDK Integration\n\nDecision-tree-driven guide for integrating Outlit customer journey tracking. Detects what it can from the codebase, asks only what it must, and links to official docs for implementation details.\n\n## Branching Check\n\nBefore anything else, check if Outlit is already installed:\n\n1. Look for `@outlit\u002Fbrowser`, `@outlit\u002Fnode`, or `outlit` (Rust crate) in `package.json` or `Cargo.toml`\n2. If **not installed** -> go to [Phase 1: Quick Connect](#phase-1-quick-connect)\n3. If **already installed** -> go to [Already Installed](#already-installed)\n\n## Already Installed\n\nAsk the user what they need help with:\n\n- **Add event tracking** -> Run detection, then go to [Decision 7: Event Tracking](#decision-7-event-tracking). Fetch the relevant framework doc from the [Doc URL Map](#doc-url-map) for implementation patterns.\n- **Add\u002Fchange auth integration** -> Run detection, then go to [Decision 3: Auth & Identity](#decision-3-auth--identity). Fetch the framework doc and [identity resolution](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fidentity-resolution) doc.\n- **Add consent management** -> Go to [Decision 2: Consent Stance](#decision-2-consent-stance). Fetch the framework doc's consent section.\n- **Add server-side tracking** -> Go to [Decision 1: App Type & SDK](#decision-1-app-type--sdk-package) for the server package, then fetch the [Node.js](https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Fnodejs) or [Rust](https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Frust) doc.\n- **Add billing\u002FStripe integration** -> Go to [Decision 6: Billing Integration](#decision-6-billing-integration). Fetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc.\n- **Add activation tracking** -> Go to [Decision 5: Activation Event](#decision-5-activation-event). Fetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc.\n- **Migrate from other analytics** -> Run detection, then go to [Decision 4: Existing Analytics](#decision-4-existing-analytics-strategy).\n- **Debug\u002Ftroubleshoot** -> Go to [Troubleshooting](#troubleshooting).\n\n## Phase 1: Quick Connect\n\nGoal: get events flowing in ~2 minutes so the user sees \"Connected\" on their Outlit onboarding screen. Zero user decisions required.\n\n### Step 1: Detect Framework & Package Manager\n\nUse glob\u002Fgrep to check:\n\n- **Framework:** Check `package.json` dependencies for `next`, `vue`, `nuxt`, `react`, `svelte`, `@sveltejs\u002Fkit`, `@angular\u002Fcore`, `astro`, `express`, `fastify`. Check for `Cargo.toml` with `tauri` or `outlit`.\n- **Package manager:** Check for `bun.lockb` (bun), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `package-lock.json` (npm). Use the first match found.\n\n### Step 2: Install SDK\n\nBased on detected framework:\n\n- Browser app (React, Next.js, Vue, Nuxt, Svelte, Angular, Astro) -> `@outlit\u002Fbrowser`\n- Server app (Express, Fastify, Node.js) -> `@outlit\u002Fnode`\n- Tauri -> `outlit` Rust crate via `cargo add outlit`\n- Electron -> `@outlit\u002Fbrowser`\n\nInstall using the detected package manager.\n\n### Step 3: Add Public Key\n\nAsk the user for their Outlit public key. They get it from **Outlit dashboard -> Settings -> Website Tracking** or from the onboarding screen.\n\nAdd to environment variables with the correct framework prefix:\n\n| Framework | Env var |\n|-----------|---------|\n| Next.js | `NEXT_PUBLIC_OUTLIT_KEY` |\n| Vite (Vue, Svelte, React+Vite) | `VITE_OUTLIT_KEY` |\n| Create React App | `REACT_APP_OUTLIT_KEY` |\n| Nuxt | `NUXT_PUBLIC_OUTLIT_KEY` |\n| Angular | Add to `environment.ts` |\n| Astro | `PUBLIC_OUTLIT_KEY` |\n| Server apps | `OUTLIT_KEY` |\n\n### Step 4: Minimal Setup\n\nFetch the framework-specific doc from the [Doc URL Map](#doc-url-map) and implement only the minimal setup — provider\u002Finit with just the `publicKey`, no auth, no consent, no custom events.\n\nFor React-based frameworks this means wrapping the app with `OutlitProvider`. For Vue it means installing the `OutlitPlugin`. For server apps it means creating an Outlit instance.\n\n### Step 5: Verify Connection\n\nTell the user to:\n\n1. Run their dev server\n2. Open the app in a browser\n3. Check the Outlit onboarding screen for the **\"Connected\"** badge\n4. Or check DevTools -> Network for requests to `app.outlit.ai\u002Fapi\u002Fi\u002Fv1\u002F...` returning 200\n\nOnce connected, ask: **\"Events are flowing. Ready to set up the full integration?\"**\n\nIf yes -> continue to Phase 2. If no -> they can come back later (the skill will detect the existing install).\n\n## Phase 2: Full Integration\n\nRun the full detection first, then walk through each decision.\n\n### Full Detection\n\nUse grep\u002Fglob to detect all of the following before starting the decision tree:\n\n| Signal | How to detect |\n|--------|--------------|\n| Auth provider | Deps: `@clerk\u002Fnextjs`, `@clerk\u002Fclerk-react`, `next-auth`, `@auth\u002Fcore`, `@supabase\u002Fauth-helpers-nextjs`, `@supabase\u002Fssr`, `@auth0\u002Fauth0-react`, `@auth0\u002Fnextjs-auth0`, `firebase`, `@firebase\u002Fauth` |\n| Billing provider | Deps: `stripe`, `@stripe\u002Fstripe-js`, `@paddle\u002Fpaddle-js`, `chargebee` |\n| Existing analytics | Deps: `posthog-js`, `@posthog\u002Fnode`, `@amplitude\u002Fanalytics-browser`, `@amplitude\u002Fanalytics-node`, `mixpanel-browser`, `@segment\u002Fanalytics-next`, `@segment\u002Fanalytics-node` |\n| Analytics abstraction | Grep for files named `analytics.ts`, `analytics.js`, `tracking.ts`, `tracking.js` in `lib\u002F`, `utils\u002F`, `helpers\u002F`, `services\u002F` that import 2+ analytics libraries |\n| EU\u002Fconsent signals | Deps: `cookiebot`, `@onetrust\u002F*`, `cookie-consent`, or grep for existing consent\u002Fcookie banner components |\n| App type | Deps: `@tauri-apps\u002Fapi`, `electron`, `react-native` |\n| Activation patterns | Grep for onboarding routes\u002Fcomponents, \"first\" resource creation handlers, invite flows |\n\nPresent a summary of what was detected to the user before proceeding.\n\n### Decision 1: App Type & SDK Package\n\nAuto-resolved from Phase 1 detection. If hybrid (e.g., Next.js with API routes that need server tracking), install both `@outlit\u002Fbrowser` and `@outlit\u002Fnode`.\n\n- Electron -> `@outlit\u002Fbrowser`\n- Tauri -> `outlit` Rust crate\n- React Native -> `@outlit\u002Fbrowser` (uses fingerprint instead of cookies)\n\n### Decision 2: Consent Stance\n\n| Detection | Recommendation |\n|-----------|---------------|\n| Existing CMP\u002Fcookie banner library | `autoTrack: false`, integrate with their existing CMP's consent callback to call `enableTracking()` |\n| EU signals but no CMP | `autoTrack: false`, mention they need a consent solution but don't build one unless asked |\n| No EU signals | `autoTrack: true` — simpler, uses cookies immediately |\n\n**Always explain the tradeoff:** `autoTrack: true` starts tracking with cookies immediately. `autoTrack: false` waits until `enableTracking()` is called after user consent.\n\nFetch the relevant framework doc for consent implementation patterns.\n\n### Decision 3: Auth & Identity\n\n| Detection | Recommendation |\n|-----------|---------------|\n| React\u002FVue with OutlitProvider\u002FOutlitPlugin | Pass `user` prop with `{ email, userId }` after auth resolves. No manual `identify()` needed. |\n| Vanilla JS \u002F script tag | Call `outlit.identify({ email, userId })` client-side right after auth completes |\n| Server-only (Node\u002FRust) | Call `outlit.identify()` server-side for event attribution |\n\n**Critical:** Client-side `identify()` (or the `user` prop) links the anonymous cookie\u002FvisitorId to a real person. This must happen after the auth flow completes. Server-side `identify()` is for attributing server events to a known user, but doesn't link browsing history.\n\nIf an auth provider was detected, fetch the framework doc and the [identity resolution](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fidentity-resolution) doc for the specific auth provider pattern.\n\n### Decision 4: Existing Analytics Strategy\n\n| Detection | Recommendation |\n|-----------|---------------|\n| Existing analytics abstraction (e.g., `lib\u002Fanalytics.ts` wrapping PostHog + Amplitude) | Add Outlit as another provider inside the existing abstraction |\n| Scattered direct calls (e.g., `posthog.capture()` in 15 files) | Tell the user: \"I found [N] direct [PostHog\u002FAmplitude] calls across [N] files. Want me to create an analytics wrapper that calls both, or add Outlit calls alongside the existing ones?\" |\n| No existing analytics | Add Outlit directly, no wrapper needed |\n\nThe goal is minimal code changes. Don't reorganize their project.\n\n### Decision 5: Activation Event\n\nThe activation event marks when a user first gets real value from the product. This is NOT just completing onboarding.\n\n1. Scan the codebase for value-moment patterns:\n   - First resource\u002Fproject\u002Fitem created\n   - First core feature used (e.g., first message sent, first report generated)\n   - First invite to a teammate\n   - First successful integration\u002Fconnection\n2. If a clear value moment is found -> suggest it: \"It looks like creating their first [X] could be your activation event — is that where users first get value?\"\n3. If only an onboarding flow is found -> mention it as a fallback: \"I see an onboarding flow, but activation usually maps to when users get real value, not just completing setup. What action means a user has truly gotten value from your product?\"\n4. If nothing obvious -> ask: \"What action means a user has gotten real value from your product? That's where `user.activate()` should go.\"\n\nFetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc for `user.activate()` implementation.\n\n### Decision 6: Billing Integration\n\n| Detection | Recommendation |\n|-----------|---------------|\n| Stripe in dependencies | Recommend the Stripe webhook integration — it automatically handles `customer.paid()`, `customer.trialing()`, `customer.churned()` based on Stripe events. Fetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc for webhook setup. |\n| Other billing provider (Paddle, Chargebee) | Guide manual `customer.paid()` \u002F `customer.trialing()` \u002F `customer.churned()` calls in their existing webhook handlers |\n| No billing provider detected | Skip. Mention it's available when they add billing. |\n\n### Decision 7: Event Tracking\n\nPageviews are tracked automatically by default. For custom events:\n\n1. Scan the codebase for existing analytics calls, user action handlers, form submissions, key button clicks\n2. Suggest a list of events based on what the codebase reveals (e.g., `form_submitted`, `feature_used`, `item_created`, `search_performed`)\n3. Ask the user to confirm, modify, or add to the list before implementing\n4. Use `snake_case` for all event names\n\nFetch the framework doc for the `track()` API pattern.\n\n## Doc URL Map\n\nFetch these docs as needed for implementation details. Always prefer linking to docs over hardcoding patterns.\n\n| Topic | URL |\n|-------|-----|\n| Quickstart | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fquickstart` |\n| How tracking works | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fhow-it-works` |\n| NPM package | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fnpm` |\n| React | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Freact` |\n| Next.js | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fnextjs` |\n| Vue 3 | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fvue` |\n| Nuxt | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fnuxt` |\n| SvelteKit | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fsveltekit` |\n| Angular | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fangular` |\n| Astro | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fastro` |\n| Script tag | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fscript` |\n| Calendar embeds | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fcalendar-embeds` |\n| Node.js | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Fnodejs` |\n| Rust \u002F Tauri | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Frust` |\n| Identity resolution | `https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fidentity-resolution` |\n| Anonymous tracking | `https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fanonymous-tracking` |\n| Customer journey | `https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey` |\n| MCP integration | `https:\u002F\u002Fdocs.outlit.ai\u002Fai-integrations\u002Fmcp` |\n| Ingest API | `https:\u002F\u002Fdocs.outlit.ai\u002Fapi-reference\u002Fingest` |\n| API introduction | `https:\u002F\u002Fdocs.outlit.ai\u002Fapi-reference\u002Fintroduction` |\n| Full docs index | `https:\u002F\u002Fdocs.outlit.ai\u002Fllms.txt` |\n\n## Troubleshooting\n\n### No events in dashboard\n\n1. Verify the public key env var has the correct framework prefix (`NEXT_PUBLIC_`, `VITE_`, `REACT_APP_`, etc.)\n2. Confirm the provider\u002Finit wraps the entire app or runs at startup\n3. Check `autoTrack` setting — if `false`, `enableTracking()` must be called after consent\n4. Check DevTools -> Network for requests to `app.outlit.ai\u002Fapi\u002Fi\u002Fv1\u002F...` — look for 200 responses\n5. If requests are missing entirely, the SDK isn't initializing — check for errors in the console\n\n### Events not linked to users\n\n- `identify()` or the `user` prop must be called\u002Fset after the auth flow resolves\n- Include both `email` and `userId` for reliable identity resolution\n- Client-side identify links browsing history; server-side identify attributes server events\n\n### Server-side events missing\n\n- Always `await outlit.flush()` before the function returns, especially in serverless environments\n- Verify `OUTLIT_KEY` env var is set in the server environment\n\n### Race condition with async auth\n\nAuth providers like Clerk and Auth0 load asynchronously. If `user.activate()` or `identify()` is called before the auth provider resolves, events get silently dropped. Ensure auth state is fully loaded before calling identity or stage methods.\n\n## Key Principles\n\n- **Minimal changes** — touch as few files as possible, add alongside existing code\n- **Detect first, ask second** — auto-resolve what you can, only prompt for genuine decisions\n- **Recommendations have reasoning** — when presenting a choice, lead with the recommendation and explain why\n- **Client-side identify is critical** — this links anonymous browsing to a real user\n- **Flush in serverless** — always `await outlit.flush()` before function exits\n- **snake_case events** — `subscription_created` not `SubscriptionCreated`\n- **Both IDs** — always provide both `email` and `userId` for identity resolution\n\n## Installation\n\nTo add this skill to your Claude Code environment:\n\n```sh\nnpx add-skill outlitai\u002Foutlit-agent-skills\n# or\nbunx add-skill outlitai\u002Foutlit-agent-skills\n```\n","# Outlit SDK Integration\n\nDecision-tree-driven guide for integrating Outlit customer journey tracking. Detects what it can from the codebase, asks only what it must, and links to official docs for implementation details.\n\n## Branching Check\n\nBefore anything else, check if Outlit is already installed:\n\n1. Look for `@outlit\u002Fbrowser`, `@outlit\u002Fnode`, or `outlit` (Rust crate) in `package.json` or `Cargo.toml`\n2. If **not installed** -> go to [Phase 1: Quick Connect](#phase-1-quick-connect)\n3. If **already installed** -> go to [Already Installed](#already-installed)\n\n## Already Installed\n\nAsk the user what they need help with:\n\n- **Add event tracking** -> Run detection, then go to [Decision 7: Event Tracking](#decision-7-event-tracking). Fetch the relevant framework doc from the [Doc URL Map](#doc-url-map) for implementation patterns.\n- **Add\u002Fchange auth integration** -> Run detection, then go to [Decision 3: Auth & Identity](#decision-3-auth--identity). Fetch the framework doc and [identity resolution](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fidentity-resolution) doc.\n- **Add consent management** -> Go to [Decision 2: Consent Stance](#decision-2-consent-stance). Fetch the framework doc's consent section.\n- **Add server-side tracking** -> Go to [Decision 1: App Type & SDK](#decision-1-app-type--sdk-package) for the server package, then fetch the [Node.js](https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Fnodejs) or [Rust](https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Frust) doc.\n- **Add billing\u002FStripe integration** -> Go to [Decision 6: Billing Integration](#decision-6-billing-integration). Fetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc.\n- **Add activation tracking** -> Go to [Decision 5: Activation Event](#decision-5-activation-event). Fetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc.\n- **Migrate from other analytics** -> Run detection, then go to [Decision 4: Existing Analytics](#decision-4-existing-analytics-strategy).\n- **Debug\u002Ftroubleshoot** -> Go to [Troubleshooting](#troubleshooting).\n\n## Phase 1: Quick Connect\n\nGoal: get events flowing in ~2 minutes so the user sees \"Connected\" on their Outlit onboarding screen. Zero user decisions required.\n\n### Step 1: Detect Framework & Package Manager\n\nUse glob\u002Fgrep to check:\n\n- **Framework:** Check `package.json` dependencies for `next`, `vue`, `nuxt`, `react`, `svelte`, `@sveltejs\u002Fkit`, `@angular\u002Fcore`, `astro`, `express`, `fastify`. Check for `Cargo.toml` with `tauri` or `outlit`.\n- **Package manager:** Check for `bun.lockb` (bun), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `package-lock.json` (npm). Use the first match found.\n\n### Step 2: Install SDK\n\nBased on detected framework:\n\n- Browser app (React, Next.js, Vue, Nuxt, Svelte, Angular, Astro) -> `@outlit\u002Fbrowser`\n- Server app (Express, Fastify, Node.js) -> `@outlit\u002Fnode`\n- Tauri -> `outlit` Rust crate via `cargo add outlit`\n- Electron -> `@outlit\u002Fbrowser`\n\nInstall using the detected package manager.\n\n### Step 3: Add Public Key\n\nAsk the user for their Outlit public key. They get it from **Outlit dashboard -> Settings -> Website Tracking** or from the onboarding screen.\n\nAdd to environment variables with the correct framework prefix:\n\n| Framework | Env var |\n|-----------|---------|\n| Next.js | `NEXT_PUBLIC_OUTLIT_KEY` |\n| Vite (Vue, Svelte, React+Vite) | `VITE_OUTLIT_KEY` |\n| Create React App | `REACT_APP_OUTLIT_KEY` |\n| Nuxt | `NUXT_PUBLIC_OUTLIT_KEY` |\n| Angular | Add to `environment.ts` |\n| Astro | `PUBLIC_OUTLIT_KEY` |\n| Server apps | `OUTLIT_KEY` |\n\n### Step 4: Minimal Setup\n\nFetch the framework-specific doc from the [Doc URL Map](#doc-url-map) and implement only the minimal setup — provider\u002Finit with just the `publicKey`, no auth, no consent, no custom events.\n\nFor React-based frameworks this means wrapping the app with `OutlitProvider`. For Vue it means installing the `OutlitPlugin`. For server apps it means creating an Outlit instance.\n\n### Step 5: Verify Connection\n\nTell the user to:\n\n1. Run their dev server\n2. Open the app in a browser\n3. Check the Outlit onboarding screen for the **\"Connected\"** badge\n4. Or check DevTools -> Network for requests to `app.outlit.ai\u002Fapi\u002Fi\u002Fv1\u002F...` returning 200\n\nOnce connected, ask: **\"Events are flowing. Ready to set up the full integration?\"**\n\nIf yes -> continue to Phase 2. If no -> they can come back later (the skill will detect the existing install).\n\n## Phase 2: Full Integration\n\nRun the full detection first, then walk through each decision.\n\n### Full Detection\n\nUse grep\u002Fglob to detect all of the following before starting the decision tree:\n\n| Signal | How to detect |\n|--------|--------------|\n| Auth provider | Deps: `@clerk\u002Fnextjs`, `@clerk\u002Fclerk-react`, `next-auth`, `@auth\u002Fcore`, `@supabase\u002Fauth-helpers-nextjs`, `@supabase\u002Fssr`, `@auth0\u002Fauth0-react`, `@auth0\u002Fnextjs-auth0`, `firebase`, `@firebase\u002Fauth` |\n| Billing provider | Deps: `stripe`, `@stripe\u002Fstripe-js`, `@paddle\u002Fpaddle-js`, `chargebee` |\n| Existing analytics | Deps: `posthog-js`, `@posthog\u002Fnode`, `@amplitude\u002Fanalytics-browser`, `@amplitude\u002Fanalytics-node`, `mixpanel-browser`, `@segment\u002Fanalytics-next`, `@segment\u002Fanalytics-node` |\n| Analytics abstraction | Grep for files named `analytics.ts`, `analytics.js`, `tracking.ts`, `tracking.js` in `lib\u002F`, `utils\u002F`, `helpers\u002F`, `services\u002F` that import 2+ analytics libraries |\n| EU\u002Fconsent signals | Deps: `cookiebot`, `@onetrust\u002F*`, `cookie-consent`, or grep for existing consent\u002Fcookie banner components |\n| App type | Deps: `@tauri-apps\u002Fapi`, `electron`, `react-native` |\n| Activation patterns | Grep for onboarding routes\u002Fcomponents, \"first\" resource creation handlers, invite flows |\n\nPresent a summary of what was detected to the user before proceeding.\n\n### Decision 1: App Type & SDK Package\n\nAuto-resolved from Phase 1 detection. If hybrid (e.g., Next.js with API routes that need server tracking), install both `@outlit\u002Fbrowser` and `@outlit\u002Fnode`.\n\n- Electron -> `@outlit\u002Fbrowser`\n- Tauri -> `outlit` Rust crate\n- React Native -> `@outlit\u002Fbrowser` (uses fingerprint instead of cookies)\n\n### Decision 2: Consent Stance\n\n| Detection | Recommendation |\n|-----------|---------------|\n| Existing CMP\u002Fcookie banner library | `autoTrack: false`, integrate with their existing CMP's consent callback to call `enableTracking()` |\n| EU signals but no CMP | `autoTrack: false`, mention they need a consent solution but don't build one unless asked |\n| No EU signals | `autoTrack: true` — simpler, uses cookies immediately |\n\n**Always explain the tradeoff:** `autoTrack: true` starts tracking with cookies immediately. `autoTrack: false` waits until `enableTracking()` is called after user consent.\n\nFetch the relevant framework doc for consent implementation patterns.\n\n### Decision 3: Auth & Identity\n\n| Detection | Recommendation |\n|-----------|---------------|\n| React\u002FVue with OutlitProvider\u002FOutlitPlugin | Pass `user` prop with `{ email, userId }` after auth resolves. No manual `identify()` needed. |\n| Vanilla JS \u002F script tag | Call `outlit.identify({ email, userId })` client-side right after auth completes |\n| Server-only (Node\u002FRust) | Call `outlit.identify()` server-side for event attribution |\n\n**Critical:** Client-side `identify()` (or the `user` prop) links the anonymous cookie\u002FvisitorId to a real person. This must happen after the auth flow completes. Server-side `identify()` is for attributing server events to a known user, but doesn't link browsing history.\n\nIf an auth provider was detected, fetch the framework doc and the [identity resolution](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fidentity-resolution) doc for the specific auth provider pattern.\n\n### Decision 4: Existing Analytics Strategy\n\n| Detection | Recommendation |\n|-----------|---------------|\n| Existing analytics abstraction (e.g., `lib\u002Fanalytics.ts` wrapping PostHog + Amplitude) | Add Outlit as another provider inside the existing abstraction |\n| Scattered direct calls (e.g., `posthog.capture()` in 15 files) | Tell the user: \"I found [N] direct [PostHog\u002FAmplitude] calls across [N] files. Want me to create an analytics wrapper that calls both, or add Outlit calls alongside the existing ones?\" |\n| No existing analytics | Add Outlit directly, no wrapper needed |\n\nThe goal is minimal code changes. Don't reorganize their project.\n\n### Decision 5: Activation Event\n\nThe activation event marks when a user first gets real value from the product. This is NOT just completing onboarding.\n\n1. Scan the codebase for value-moment patterns:\n   - First resource\u002Fproject\u002Fitem created\n   - First core feature used (e.g., first message sent, first report generated)\n   - First invite to a teammate\n   - First successful integration\u002Fconnection\n2. If a clear value moment is found -> suggest it: \"It looks like creating their first [X] could be your activation event — is that where users first get value?\"\n3. If only an onboarding flow is found -> mention it as a fallback: \"I see an onboarding flow, but activation usually maps to when users get real value, not just completing setup. What action means a user has truly gotten value from your product?\"\n4. If nothing obvious -> ask: \"What action means a user has gotten real value from your product? That's where `user.activate()` should go.\"\n\nFetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc for `user.activate()` implementation.\n\n### Decision 6: Billing Integration\n\n| Detection | Recommendation |\n|-----------|---------------|\n| Stripe in dependencies | Recommend the Stripe webhook integration — it automatically handles `customer.paid()`, `customer.trialing()`, `customer.churned()` based on Stripe events. Fetch the [customer journey](https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey) doc for webhook setup. |\n| Other billing provider (Paddle, Chargebee) | Guide manual `customer.paid()` \u002F `customer.trialing()` \u002F `customer.churned()` calls in their existing webhook handlers |\n| No billing provider detected | Skip. Mention it's available when they add billing. |\n\n### Decision 7: Event Tracking\n\nPageviews are tracked automatically by default. For custom events:\n\n1. Scan the codebase for existing analytics calls, user action handlers, form submissions, key button clicks\n2. Suggest a list of events based on what the codebase reveals (e.g., `form_submitted`, `feature_used`, `item_created`, `search_performed`)\n3. Ask the user to confirm, modify, or add to the list before implementing\n4. Use `snake_case` for all event names\n\nFetch the framework doc for the `track()` API pattern.\n\n## Doc URL Map\n\nFetch these docs as needed for implementation details. Always prefer linking to docs over hardcoding patterns.\n\n| Topic | URL |\n|-------|-----|\n| Quickstart | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fquickstart` |\n| How tracking works | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fhow-it-works` |\n| NPM package | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fnpm` |\n| React | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Freact` |\n| Next.js | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fnextjs` |\n| Vue 3 | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fvue` |\n| Nuxt | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fnuxt` |\n| SvelteKit | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fsveltekit` |\n| Angular | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fangular` |\n| Astro | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fastro` |\n| Script tag | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fscript` |\n| Calendar embeds | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fbrowser\u002Fcalendar-embeds` |\n| Node.js | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Fnodejs` |\n| Rust \u002F Tauri | `https:\u002F\u002Fdocs.outlit.ai\u002Ftracking\u002Fserver\u002Frust` |\n| Identity resolution | `https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fidentity-resolution` |\n| Anonymous tracking | `https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fanonymous-tracking` |\n| Customer journey | `https:\u002F\u002Fdocs.outlit.ai\u002Fconcepts\u002Fcustomer-journey` |\n| MCP integration | `https:\u002F\u002Fdocs.outlit.ai\u002Fai-integrations\u002Fmcp` |\n| Ingest API | `https:\u002F\u002Fdocs.outlit.ai\u002Fapi-reference\u002Fingest` |\n| API introduction | `https:\u002F\u002Fdocs.outlit.ai\u002Fapi-reference\u002Fintroduction` |\n| Full docs index | `https:\u002F\u002Fdocs.outlit.ai\u002Fllms.txt` |\n\n## Troubleshooting\n\n### No events in dashboard\n\n1. Verify the public key env var has the correct framework prefix (`NEXT_PUBLIC_`, `VITE_`, `REACT_APP_`, etc.)\n2. Confirm the provider\u002Finit wraps the entire app or runs at startup\n3. Check `autoTrack` setting — if `false`, `enableTracking()` must be called after consent\n4. Check DevTools -> Network for requests to `app.outlit.ai\u002Fapi\u002Fi\u002Fv1\u002F...` — look for 200 responses\n5. If requests are missing entirely, the SDK isn't initializing — check for errors in the console\n\n### Events not linked to users\n\n- `identify()` or the `user` prop must be called\u002Fset after the auth flow resolves\n- Include both `email` and `userId` for reliable identity resolution\n- Client-side identify links browsing history; server-side identify attributes server events\n\n### Server-side events missing\n\n- Always `await outlit.flush()` before the function returns, especially in serverless environments\n- Verify `OUTLIT_KEY` env var is set in the server environment\n\n### Race condition with async auth\n\nAuth providers like Clerk and Auth0 load asynchronously. If `user.activate()` or `identify()` is called before the auth provider resolves, events get silently dropped. Ensure auth state is fully loaded before calling identity or stage methods.\n\n## Key Principles\n\n- **Minimal changes** — touch as few files as possible, add alongside existing code\n- **Detect first, ask second** — auto-resolve what you can, only prompt for genuine decisions\n- **Recommendations have reasoning** — when presenting a choice, lead with the recommendation and explain why\n- **Client-side identify is critical** — this links anonymous browsing to a real user\n- **Flush in serverless** — always `await outlit.flush()` before function exits\n- **snake_case events** — `subscription_created` not `SubscriptionCreated`\n- **Both IDs** — always provide both `email` and `userId` for identity resolution\n\n## Installation\n\nTo add this skill to your Claude Code environment:\n\n```sh\nnpx add-skill outlitai\u002Foutlit-agent-skills\n# or\nbunx add-skill outlitai\u002Foutlit-agent-skills\n```\n",{"name":5,"description":7},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fleo-paz\u002Foutlit-sdk",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill outlit-sdk",{"tool":39,"command":40},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill outlit-sdk",{"tool":42,"command":43},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill outlit-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fleo-paz\u002Foutlit-sdk\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":55},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":55},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":55},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":55},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":55},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]