[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-posthog-omnibus-instrument-product-analytics":3,"mdc--ppfal-key":31,"related-repo-posthog-omnibus-instrument-product-analytics":935,"related-org-posthog-omnibus-instrument-product-analytics":1048},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":26,"sourceUrl":29,"mdContent":30},"omnibus-instrument-product-analytics","instrument applications with PostHog product analytics","Add PostHog product analytics events to track user behavior. Use after implementing new features or reviewing PRs to ensure meaningful user actions are captured. Also handles initial PostHog SDK setup if not yet installed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"posthog","PostHog","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fposthog.png",[12,14,17],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Integrations","integrations",{"name":18,"slug":19,"type":13},"Analytics","analytics",56,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fskills","2026-04-06T18:45:03.199011",null,4,[],{"repoUrl":21,"stars":20,"forks":24,"topics":27,"description":28},[],"PostHog skills (under construction)","https:\u002F\u002Fgithub.com\u002FPostHog\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fposthog\u002Fintegration\u002Fskills\u002Fall","---\nname: omnibus-instrument-product-analytics\ndescription: >-\n  Add PostHog product analytics events to track user behavior. Use after\n  implementing new features or reviewing PRs to ensure meaningful user actions\n  are captured. Also handles initial PostHog SDK setup if not yet installed.\nmetadata:\n  author: PostHog\n  version: 1.9.4\n---\n\n# Add PostHog product analytics events\n\nUse this skill to add product analytics events (capture calls) that track meaningful user actions in new or changed code. Use it after implementing features or reviewing PRs to ensure key user behaviors are captured. If PostHog is not yet installed, this skill also covers initial SDK setup. Supports any framework or language.\n\nSupported frameworks: Next.js, React Router, Nuxt, Vue, TanStack Start, SvelteKit, Astro, Angular, Django, Flask, FastAPI, Laravel, Ruby on Rails, Android, iOS, React Native, Expo, and more.\n\n## Instructions\n\nFollow these steps IN ORDER:\n\nSTEP 1: Analyze the codebase and detect the platform.\n  - Look for dependency files (package.json, requirements.txt, Gemfile, composer.json, go.mod, etc.) to determine the framework and language.\n  - Look for lockfiles (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lockb) to determine the package manager.\n  - Check for existing PostHog setup. If PostHog is already installed and initialized, skip to STEP 5.\n\nSTEP 2: Research integration. (Skip if PostHog is already set up.)\n  2.1. Find the reference file below that matches the detected framework — it is the source of truth for SDK initialization, provider setup, and event capture patterns. Read it now.\n  2.2. If no reference matches, fall back to your general knowledge and web search. Use posthog.com\u002Fdocs as the primary search source.\n\nSTEP 3: Install the PostHog SDK. (Skip if PostHog is already set up.)\n  - Add the PostHog SDK package for the detected platform. Do not manually edit package.json — use the package manager's install command.\n  - Always install packages as a background task. Don't await completion; proceed with other work immediately after starting the installation.\n\nSTEP 4: Initialize PostHog. (Skip if PostHog is already set up.)\n  - Follow the framework reference for where and how to initialize. This varies significantly by framework (e.g., instrumentation-client.ts for Next.js 15.3+, AppConfig.ready() for Django, create_app() for Flask).\n\nSTEP 5: Plan event tracking.\n  - From the project's file list, select between 10 and 15 files that might have interesting business value for event tracking, especially conversion and churn events.\n  - Also look for files related to login that could be used for identifying users, along with error handling.\n  - Find any existing `posthog.capture()` code. Make note of event name formatting. Don't duplicate existing events; supplement them.\n  - Track actions only, not pageviews (those can be captured automatically). Exceptions can be made for \"viewed\"-type events at the top of a conversion funnel.\n  - **Server-side events are REQUIRED** if the project includes any instrumentable server-side code (API routes, server actions, webhook handlers, payment\u002Fcheckout completion, authentication endpoints).\n\nSTEP 6: Implement event capture.\n  - For each planned event, add `posthog.capture()` calls with useful properties.\n  - If a file already has existing integration code for other tools or services, don't overwrite or remove that code. Place PostHog code below it.\n  - Do not alter the fundamental architecture of existing files. Make additions minimal and targeted.\n  - You must read a file immediately before attempting to write it.\n\nSTEP 7: Identify users.\n  - Add PostHog `identify()` calls on the client side during login and signup events. Use the contents of login and signup forms to identify users on submit.\n  - If both frontend and backend exist, pass the client-side session and distinct ID using `X-POSTHOG-DISTINCT-ID` and `X-POSTHOG-SESSION-ID` headers to the server-side code. On the server side, make sure events have a matching distinct ID.\n\nSTEP 8: Add error tracking.\n  - Add PostHog exception capture error tracking to relevant files, particularly around critical user flows and API boundaries.\n\nSTEP 9: Set up environment variables.\n  - If an env-file-tools MCP server is connected, use check_env_keys to see which keys already exist, then use set_env_values to create or update the PostHog API key and host.\n  - Reference these environment variables in code instead of hardcoding them.\n\nSTEP 10: Verify and clean up.\n  - Check the project for errors. Look for type checking or build scripts in package.json.\n  - Ensure any components created were actually used.\n  - Run any linter or prettier-like scripts found in the package.json.\n\n## Reference files\n\n- `references\u002FEXAMPLE-next-app-router.md` - next-app-router example project code\n- `references\u002FEXAMPLE-next-pages-router.md` - next-pages-router example project code\n- `references\u002FEXAMPLE-react-react-router-6.md` - react-react-router-6 example project code\n- `references\u002FEXAMPLE-react-react-router-7-framework.md` - react-react-router-7-framework example project code\n- `references\u002FEXAMPLE-react-react-router-7-data.md` - react-react-router-7-data example project code\n- `references\u002FEXAMPLE-react-react-router-7-declarative.md` - react-react-router-7-declarative example project code\n- `references\u002FEXAMPLE-nuxt-3.6.md` - nuxt-3.6 example project code\n- `references\u002FEXAMPLE-nuxt-4.md` - nuxt-4 example project code\n- `references\u002FEXAMPLE-vue-3.md` - vue-3 example project code\n- `references\u002FEXAMPLE-react-tanstack-router-file-based.md` - react-tanstack-router-file-based example project code\n- `references\u002FEXAMPLE-react-tanstack-router-code-based.md` - react-tanstack-router-code-based example project code\n- `references\u002FEXAMPLE-tanstack-start.md` - tanstack-start example project code\n- `references\u002FEXAMPLE-sveltekit.md` - sveltekit example project code\n- `references\u002FEXAMPLE-astro-static.md` - astro-static example project code\n- `references\u002FEXAMPLE-astro-view-transitions.md` - astro-view-transitions example project code\n- `references\u002FEXAMPLE-astro-ssr.md` - astro-ssr example project code\n- `references\u002FEXAMPLE-astro-hybrid.md` - astro-hybrid example project code\n- `references\u002FEXAMPLE-angular.md` - angular example project code\n- `references\u002FEXAMPLE-django.md` - django example project code\n- `references\u002FEXAMPLE-flask.md` - flask example project code\n- `references\u002FEXAMPLE-fastapi.md` - fastapi example project code\n- `references\u002FEXAMPLE-python.md` - python example project code\n- `references\u002FEXAMPLE-laravel.md` - laravel example project code\n- `references\u002FEXAMPLE-ruby-on-rails.md` - ruby-on-rails example project code\n- `references\u002FEXAMPLE-ruby.md` - ruby example project code\n- `references\u002FEXAMPLE-android.md` - android example project code\n- `references\u002FEXAMPLE-swift.md` - swift example project code\n- `references\u002FEXAMPLE-react-native.md` - react-native example project code\n- `references\u002FEXAMPLE-expo.md` - expo example project code\n- `references\u002Fnext-js.md` - Next.js - docs\n- `references\u002Freact-router-v6.md` - React router v6 - docs\n- `references\u002Freact-router-v7-framework-mode.md` - React router v7 framework mode (remix v3) - docs\n- `references\u002Freact-router-v7-data-mode.md` - React router v7 data mode - docs\n- `references\u002Freact-router-v7-declarative-mode.md` - React router v7 declarative mode - docs\n- `references\u002Fnuxt-js-3-6.md` - Nuxt.js (v3.0 to v3.6) - docs\n- `references\u002Fnuxt-js.md` - Nuxt.js - docs\n- `references\u002Fvue-js.md` - Vue.js - docs\n- `references\u002Ftanstack-start.md` - Tanstack start - docs\n- `references\u002Fsvelte.md` - Svelte - docs\n- `references\u002Fastro.md` - Astro - docs\n- `references\u002Fangular.md` - Angular - docs\n- `references\u002Fdjango.md` - Django - docs\n- `references\u002Fflask.md` - Flask - docs\n- `references\u002Fpython.md` - Python - docs\n- `references\u002Fposthog-python.md` - PostHog python SDK\n- `references\u002Flaravel.md` - Laravel - docs\n- `references\u002Fruby-on-rails.md` - Ruby on rails - docs\n- `references\u002Fruby.md` - Ruby - docs\n- `references\u002Fandroid.md` - Android - docs\n- `references\u002Fios.md` - Ios - docs\n- `references\u002Freact-native.md` - React native - docs\n- `references\u002Fidentify-users.md` - Identify users - docs\n\nEach framework reference contains SDK-specific installation, initialization, and usage patterns. Find the one matching the user's stack.\n\n## Key principles\n\n- **Environment variables**: Always use environment variables for PostHog keys. Never hardcode them.\n- **Minimal changes**: Add PostHog code alongside existing integrations. Don't replace or restructure existing code.\n- **Match the docs**: Follow the framework reference's initialization and capture patterns exactly.",{"data":32,"body":35},{"name":4,"description":6,"metadata":33},{"author":9,"version":34},"1.9.4",{"type":36,"children":37},"root",[38,47,53,58,65,70,75,95,100,105,118,123,131,136,179,184,214,219,256,261,269,274,287,292,310,316,891,896,902],{"type":39,"tag":40,"props":41,"children":43},"element","h1",{"id":42},"add-posthog-product-analytics-events",[44],{"type":45,"value":46},"text","Add PostHog product analytics events",{"type":39,"tag":48,"props":49,"children":50},"p",{},[51],{"type":45,"value":52},"Use this skill to add product analytics events (capture calls) that track meaningful user actions in new or changed code. Use it after implementing features or reviewing PRs to ensure key user behaviors are captured. If PostHog is not yet installed, this skill also covers initial SDK setup. Supports any framework or language.",{"type":39,"tag":48,"props":54,"children":55},{},[56],{"type":45,"value":57},"Supported frameworks: Next.js, React Router, Nuxt, Vue, TanStack Start, SvelteKit, Astro, Angular, Django, Flask, FastAPI, Laravel, Ruby on Rails, Android, iOS, React Native, Expo, and more.",{"type":39,"tag":59,"props":60,"children":62},"h2",{"id":61},"instructions",[63],{"type":45,"value":64},"Instructions",{"type":39,"tag":48,"props":66,"children":67},{},[68],{"type":45,"value":69},"Follow these steps IN ORDER:",{"type":39,"tag":48,"props":71,"children":72},{},[73],{"type":45,"value":74},"STEP 1: Analyze the codebase and detect the platform.",{"type":39,"tag":76,"props":77,"children":78},"ul",{},[79,85,90],{"type":39,"tag":80,"props":81,"children":82},"li",{},[83],{"type":45,"value":84},"Look for dependency files (package.json, requirements.txt, Gemfile, composer.json, go.mod, etc.) to determine the framework and language.",{"type":39,"tag":80,"props":86,"children":87},{},[88],{"type":45,"value":89},"Look for lockfiles (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lockb) to determine the package manager.",{"type":39,"tag":80,"props":91,"children":92},{},[93],{"type":45,"value":94},"Check for existing PostHog setup. If PostHog is already installed and initialized, skip to STEP 5.",{"type":39,"tag":48,"props":96,"children":97},{},[98],{"type":45,"value":99},"STEP 2: Research integration. (Skip if PostHog is already set up.)\n2.1. Find the reference file below that matches the detected framework — it is the source of truth for SDK initialization, provider setup, and event capture patterns. Read it now.\n2.2. If no reference matches, fall back to your general knowledge and web search. Use posthog.com\u002Fdocs as the primary search source.",{"type":39,"tag":48,"props":101,"children":102},{},[103],{"type":45,"value":104},"STEP 3: Install the PostHog SDK. (Skip if PostHog is already set up.)",{"type":39,"tag":76,"props":106,"children":107},{},[108,113],{"type":39,"tag":80,"props":109,"children":110},{},[111],{"type":45,"value":112},"Add the PostHog SDK package for the detected platform. Do not manually edit package.json — use the package manager's install command.",{"type":39,"tag":80,"props":114,"children":115},{},[116],{"type":45,"value":117},"Always install packages as a background task. Don't await completion; proceed with other work immediately after starting the installation.",{"type":39,"tag":48,"props":119,"children":120},{},[121],{"type":45,"value":122},"STEP 4: Initialize PostHog. (Skip if PostHog is already set up.)",{"type":39,"tag":76,"props":124,"children":125},{},[126],{"type":39,"tag":80,"props":127,"children":128},{},[129],{"type":45,"value":130},"Follow the framework reference for where and how to initialize. This varies significantly by framework (e.g., instrumentation-client.ts for Next.js 15.3+, AppConfig.ready() for Django, create_app() for Flask).",{"type":39,"tag":48,"props":132,"children":133},{},[134],{"type":45,"value":135},"STEP 5: Plan event tracking.",{"type":39,"tag":76,"props":137,"children":138},{},[139,144,149,163,168],{"type":39,"tag":80,"props":140,"children":141},{},[142],{"type":45,"value":143},"From the project's file list, select between 10 and 15 files that might have interesting business value for event tracking, especially conversion and churn events.",{"type":39,"tag":80,"props":145,"children":146},{},[147],{"type":45,"value":148},"Also look for files related to login that could be used for identifying users, along with error handling.",{"type":39,"tag":80,"props":150,"children":151},{},[152,154,161],{"type":45,"value":153},"Find any existing ",{"type":39,"tag":155,"props":156,"children":158},"code",{"className":157},[],[159],{"type":45,"value":160},"posthog.capture()",{"type":45,"value":162}," code. Make note of event name formatting. Don't duplicate existing events; supplement them.",{"type":39,"tag":80,"props":164,"children":165},{},[166],{"type":45,"value":167},"Track actions only, not pageviews (those can be captured automatically). Exceptions can be made for \"viewed\"-type events at the top of a conversion funnel.",{"type":39,"tag":80,"props":169,"children":170},{},[171,177],{"type":39,"tag":172,"props":173,"children":174},"strong",{},[175],{"type":45,"value":176},"Server-side events are REQUIRED",{"type":45,"value":178}," if the project includes any instrumentable server-side code (API routes, server actions, webhook handlers, payment\u002Fcheckout completion, authentication endpoints).",{"type":39,"tag":48,"props":180,"children":181},{},[182],{"type":45,"value":183},"STEP 6: Implement event capture.",{"type":39,"tag":76,"props":185,"children":186},{},[187,199,204,209],{"type":39,"tag":80,"props":188,"children":189},{},[190,192,197],{"type":45,"value":191},"For each planned event, add ",{"type":39,"tag":155,"props":193,"children":195},{"className":194},[],[196],{"type":45,"value":160},{"type":45,"value":198}," calls with useful properties.",{"type":39,"tag":80,"props":200,"children":201},{},[202],{"type":45,"value":203},"If a file already has existing integration code for other tools or services, don't overwrite or remove that code. Place PostHog code below it.",{"type":39,"tag":80,"props":205,"children":206},{},[207],{"type":45,"value":208},"Do not alter the fundamental architecture of existing files. Make additions minimal and targeted.",{"type":39,"tag":80,"props":210,"children":211},{},[212],{"type":45,"value":213},"You must read a file immediately before attempting to write it.",{"type":39,"tag":48,"props":215,"children":216},{},[217],{"type":45,"value":218},"STEP 7: Identify users.",{"type":39,"tag":76,"props":220,"children":221},{},[222,235],{"type":39,"tag":80,"props":223,"children":224},{},[225,227,233],{"type":45,"value":226},"Add PostHog ",{"type":39,"tag":155,"props":228,"children":230},{"className":229},[],[231],{"type":45,"value":232},"identify()",{"type":45,"value":234}," calls on the client side during login and signup events. Use the contents of login and signup forms to identify users on submit.",{"type":39,"tag":80,"props":236,"children":237},{},[238,240,246,248,254],{"type":45,"value":239},"If both frontend and backend exist, pass the client-side session and distinct ID using ",{"type":39,"tag":155,"props":241,"children":243},{"className":242},[],[244],{"type":45,"value":245},"X-POSTHOG-DISTINCT-ID",{"type":45,"value":247}," and ",{"type":39,"tag":155,"props":249,"children":251},{"className":250},[],[252],{"type":45,"value":253},"X-POSTHOG-SESSION-ID",{"type":45,"value":255}," headers to the server-side code. On the server side, make sure events have a matching distinct ID.",{"type":39,"tag":48,"props":257,"children":258},{},[259],{"type":45,"value":260},"STEP 8: Add error tracking.",{"type":39,"tag":76,"props":262,"children":263},{},[264],{"type":39,"tag":80,"props":265,"children":266},{},[267],{"type":45,"value":268},"Add PostHog exception capture error tracking to relevant files, particularly around critical user flows and API boundaries.",{"type":39,"tag":48,"props":270,"children":271},{},[272],{"type":45,"value":273},"STEP 9: Set up environment variables.",{"type":39,"tag":76,"props":275,"children":276},{},[277,282],{"type":39,"tag":80,"props":278,"children":279},{},[280],{"type":45,"value":281},"If an env-file-tools MCP server is connected, use check_env_keys to see which keys already exist, then use set_env_values to create or update the PostHog API key and host.",{"type":39,"tag":80,"props":283,"children":284},{},[285],{"type":45,"value":286},"Reference these environment variables in code instead of hardcoding them.",{"type":39,"tag":48,"props":288,"children":289},{},[290],{"type":45,"value":291},"STEP 10: Verify and clean up.",{"type":39,"tag":76,"props":293,"children":294},{},[295,300,305],{"type":39,"tag":80,"props":296,"children":297},{},[298],{"type":45,"value":299},"Check the project for errors. Look for type checking or build scripts in package.json.",{"type":39,"tag":80,"props":301,"children":302},{},[303],{"type":45,"value":304},"Ensure any components created were actually used.",{"type":39,"tag":80,"props":306,"children":307},{},[308],{"type":45,"value":309},"Run any linter or prettier-like scripts found in the package.json.",{"type":39,"tag":59,"props":311,"children":313},{"id":312},"reference-files",[314],{"type":45,"value":315},"Reference files",{"type":39,"tag":76,"props":317,"children":318},{},[319,330,341,352,363,374,385,396,407,418,429,440,451,462,473,484,495,506,517,528,539,550,561,572,583,594,605,616,627,638,649,660,671,682,693,704,715,726,737,748,759,770,781,792,803,814,825,836,847,858,869,880],{"type":39,"tag":80,"props":320,"children":321},{},[322,328],{"type":39,"tag":155,"props":323,"children":325},{"className":324},[],[326],{"type":45,"value":327},"references\u002FEXAMPLE-next-app-router.md",{"type":45,"value":329}," - next-app-router example project code",{"type":39,"tag":80,"props":331,"children":332},{},[333,339],{"type":39,"tag":155,"props":334,"children":336},{"className":335},[],[337],{"type":45,"value":338},"references\u002FEXAMPLE-next-pages-router.md",{"type":45,"value":340}," - next-pages-router example project code",{"type":39,"tag":80,"props":342,"children":343},{},[344,350],{"type":39,"tag":155,"props":345,"children":347},{"className":346},[],[348],{"type":45,"value":349},"references\u002FEXAMPLE-react-react-router-6.md",{"type":45,"value":351}," - react-react-router-6 example project code",{"type":39,"tag":80,"props":353,"children":354},{},[355,361],{"type":39,"tag":155,"props":356,"children":358},{"className":357},[],[359],{"type":45,"value":360},"references\u002FEXAMPLE-react-react-router-7-framework.md",{"type":45,"value":362}," - react-react-router-7-framework example project code",{"type":39,"tag":80,"props":364,"children":365},{},[366,372],{"type":39,"tag":155,"props":367,"children":369},{"className":368},[],[370],{"type":45,"value":371},"references\u002FEXAMPLE-react-react-router-7-data.md",{"type":45,"value":373}," - react-react-router-7-data example project code",{"type":39,"tag":80,"props":375,"children":376},{},[377,383],{"type":39,"tag":155,"props":378,"children":380},{"className":379},[],[381],{"type":45,"value":382},"references\u002FEXAMPLE-react-react-router-7-declarative.md",{"type":45,"value":384}," - react-react-router-7-declarative example project code",{"type":39,"tag":80,"props":386,"children":387},{},[388,394],{"type":39,"tag":155,"props":389,"children":391},{"className":390},[],[392],{"type":45,"value":393},"references\u002FEXAMPLE-nuxt-3.6.md",{"type":45,"value":395}," - nuxt-3.6 example project code",{"type":39,"tag":80,"props":397,"children":398},{},[399,405],{"type":39,"tag":155,"props":400,"children":402},{"className":401},[],[403],{"type":45,"value":404},"references\u002FEXAMPLE-nuxt-4.md",{"type":45,"value":406}," - nuxt-4 example project code",{"type":39,"tag":80,"props":408,"children":409},{},[410,416],{"type":39,"tag":155,"props":411,"children":413},{"className":412},[],[414],{"type":45,"value":415},"references\u002FEXAMPLE-vue-3.md",{"type":45,"value":417}," - vue-3 example project code",{"type":39,"tag":80,"props":419,"children":420},{},[421,427],{"type":39,"tag":155,"props":422,"children":424},{"className":423},[],[425],{"type":45,"value":426},"references\u002FEXAMPLE-react-tanstack-router-file-based.md",{"type":45,"value":428}," - react-tanstack-router-file-based example project code",{"type":39,"tag":80,"props":430,"children":431},{},[432,438],{"type":39,"tag":155,"props":433,"children":435},{"className":434},[],[436],{"type":45,"value":437},"references\u002FEXAMPLE-react-tanstack-router-code-based.md",{"type":45,"value":439}," - react-tanstack-router-code-based example project code",{"type":39,"tag":80,"props":441,"children":442},{},[443,449],{"type":39,"tag":155,"props":444,"children":446},{"className":445},[],[447],{"type":45,"value":448},"references\u002FEXAMPLE-tanstack-start.md",{"type":45,"value":450}," - tanstack-start example project code",{"type":39,"tag":80,"props":452,"children":453},{},[454,460],{"type":39,"tag":155,"props":455,"children":457},{"className":456},[],[458],{"type":45,"value":459},"references\u002FEXAMPLE-sveltekit.md",{"type":45,"value":461}," - sveltekit example project code",{"type":39,"tag":80,"props":463,"children":464},{},[465,471],{"type":39,"tag":155,"props":466,"children":468},{"className":467},[],[469],{"type":45,"value":470},"references\u002FEXAMPLE-astro-static.md",{"type":45,"value":472}," - astro-static example project code",{"type":39,"tag":80,"props":474,"children":475},{},[476,482],{"type":39,"tag":155,"props":477,"children":479},{"className":478},[],[480],{"type":45,"value":481},"references\u002FEXAMPLE-astro-view-transitions.md",{"type":45,"value":483}," - astro-view-transitions example project code",{"type":39,"tag":80,"props":485,"children":486},{},[487,493],{"type":39,"tag":155,"props":488,"children":490},{"className":489},[],[491],{"type":45,"value":492},"references\u002FEXAMPLE-astro-ssr.md",{"type":45,"value":494}," - astro-ssr example project code",{"type":39,"tag":80,"props":496,"children":497},{},[498,504],{"type":39,"tag":155,"props":499,"children":501},{"className":500},[],[502],{"type":45,"value":503},"references\u002FEXAMPLE-astro-hybrid.md",{"type":45,"value":505}," - astro-hybrid example project code",{"type":39,"tag":80,"props":507,"children":508},{},[509,515],{"type":39,"tag":155,"props":510,"children":512},{"className":511},[],[513],{"type":45,"value":514},"references\u002FEXAMPLE-angular.md",{"type":45,"value":516}," - angular example project code",{"type":39,"tag":80,"props":518,"children":519},{},[520,526],{"type":39,"tag":155,"props":521,"children":523},{"className":522},[],[524],{"type":45,"value":525},"references\u002FEXAMPLE-django.md",{"type":45,"value":527}," - django example project code",{"type":39,"tag":80,"props":529,"children":530},{},[531,537],{"type":39,"tag":155,"props":532,"children":534},{"className":533},[],[535],{"type":45,"value":536},"references\u002FEXAMPLE-flask.md",{"type":45,"value":538}," - flask example project code",{"type":39,"tag":80,"props":540,"children":541},{},[542,548],{"type":39,"tag":155,"props":543,"children":545},{"className":544},[],[546],{"type":45,"value":547},"references\u002FEXAMPLE-fastapi.md",{"type":45,"value":549}," - fastapi example project code",{"type":39,"tag":80,"props":551,"children":552},{},[553,559],{"type":39,"tag":155,"props":554,"children":556},{"className":555},[],[557],{"type":45,"value":558},"references\u002FEXAMPLE-python.md",{"type":45,"value":560}," - python example project code",{"type":39,"tag":80,"props":562,"children":563},{},[564,570],{"type":39,"tag":155,"props":565,"children":567},{"className":566},[],[568],{"type":45,"value":569},"references\u002FEXAMPLE-laravel.md",{"type":45,"value":571}," - laravel example project code",{"type":39,"tag":80,"props":573,"children":574},{},[575,581],{"type":39,"tag":155,"props":576,"children":578},{"className":577},[],[579],{"type":45,"value":580},"references\u002FEXAMPLE-ruby-on-rails.md",{"type":45,"value":582}," - ruby-on-rails example project code",{"type":39,"tag":80,"props":584,"children":585},{},[586,592],{"type":39,"tag":155,"props":587,"children":589},{"className":588},[],[590],{"type":45,"value":591},"references\u002FEXAMPLE-ruby.md",{"type":45,"value":593}," - ruby example project code",{"type":39,"tag":80,"props":595,"children":596},{},[597,603],{"type":39,"tag":155,"props":598,"children":600},{"className":599},[],[601],{"type":45,"value":602},"references\u002FEXAMPLE-android.md",{"type":45,"value":604}," - android example project code",{"type":39,"tag":80,"props":606,"children":607},{},[608,614],{"type":39,"tag":155,"props":609,"children":611},{"className":610},[],[612],{"type":45,"value":613},"references\u002FEXAMPLE-swift.md",{"type":45,"value":615}," - swift example project code",{"type":39,"tag":80,"props":617,"children":618},{},[619,625],{"type":39,"tag":155,"props":620,"children":622},{"className":621},[],[623],{"type":45,"value":624},"references\u002FEXAMPLE-react-native.md",{"type":45,"value":626}," - react-native example project code",{"type":39,"tag":80,"props":628,"children":629},{},[630,636],{"type":39,"tag":155,"props":631,"children":633},{"className":632},[],[634],{"type":45,"value":635},"references\u002FEXAMPLE-expo.md",{"type":45,"value":637}," - expo example project code",{"type":39,"tag":80,"props":639,"children":640},{},[641,647],{"type":39,"tag":155,"props":642,"children":644},{"className":643},[],[645],{"type":45,"value":646},"references\u002Fnext-js.md",{"type":45,"value":648}," - Next.js - docs",{"type":39,"tag":80,"props":650,"children":651},{},[652,658],{"type":39,"tag":155,"props":653,"children":655},{"className":654},[],[656],{"type":45,"value":657},"references\u002Freact-router-v6.md",{"type":45,"value":659}," - React router v6 - docs",{"type":39,"tag":80,"props":661,"children":662},{},[663,669],{"type":39,"tag":155,"props":664,"children":666},{"className":665},[],[667],{"type":45,"value":668},"references\u002Freact-router-v7-framework-mode.md",{"type":45,"value":670}," - React router v7 framework mode (remix v3) - docs",{"type":39,"tag":80,"props":672,"children":673},{},[674,680],{"type":39,"tag":155,"props":675,"children":677},{"className":676},[],[678],{"type":45,"value":679},"references\u002Freact-router-v7-data-mode.md",{"type":45,"value":681}," - React router v7 data mode - docs",{"type":39,"tag":80,"props":683,"children":684},{},[685,691],{"type":39,"tag":155,"props":686,"children":688},{"className":687},[],[689],{"type":45,"value":690},"references\u002Freact-router-v7-declarative-mode.md",{"type":45,"value":692}," - React router v7 declarative mode - docs",{"type":39,"tag":80,"props":694,"children":695},{},[696,702],{"type":39,"tag":155,"props":697,"children":699},{"className":698},[],[700],{"type":45,"value":701},"references\u002Fnuxt-js-3-6.md",{"type":45,"value":703}," - Nuxt.js (v3.0 to v3.6) - docs",{"type":39,"tag":80,"props":705,"children":706},{},[707,713],{"type":39,"tag":155,"props":708,"children":710},{"className":709},[],[711],{"type":45,"value":712},"references\u002Fnuxt-js.md",{"type":45,"value":714}," - Nuxt.js - docs",{"type":39,"tag":80,"props":716,"children":717},{},[718,724],{"type":39,"tag":155,"props":719,"children":721},{"className":720},[],[722],{"type":45,"value":723},"references\u002Fvue-js.md",{"type":45,"value":725}," - Vue.js - docs",{"type":39,"tag":80,"props":727,"children":728},{},[729,735],{"type":39,"tag":155,"props":730,"children":732},{"className":731},[],[733],{"type":45,"value":734},"references\u002Ftanstack-start.md",{"type":45,"value":736}," - Tanstack start - docs",{"type":39,"tag":80,"props":738,"children":739},{},[740,746],{"type":39,"tag":155,"props":741,"children":743},{"className":742},[],[744],{"type":45,"value":745},"references\u002Fsvelte.md",{"type":45,"value":747}," - Svelte - docs",{"type":39,"tag":80,"props":749,"children":750},{},[751,757],{"type":39,"tag":155,"props":752,"children":754},{"className":753},[],[755],{"type":45,"value":756},"references\u002Fastro.md",{"type":45,"value":758}," - Astro - docs",{"type":39,"tag":80,"props":760,"children":761},{},[762,768],{"type":39,"tag":155,"props":763,"children":765},{"className":764},[],[766],{"type":45,"value":767},"references\u002Fangular.md",{"type":45,"value":769}," - Angular - docs",{"type":39,"tag":80,"props":771,"children":772},{},[773,779],{"type":39,"tag":155,"props":774,"children":776},{"className":775},[],[777],{"type":45,"value":778},"references\u002Fdjango.md",{"type":45,"value":780}," - Django - docs",{"type":39,"tag":80,"props":782,"children":783},{},[784,790],{"type":39,"tag":155,"props":785,"children":787},{"className":786},[],[788],{"type":45,"value":789},"references\u002Fflask.md",{"type":45,"value":791}," - Flask - docs",{"type":39,"tag":80,"props":793,"children":794},{},[795,801],{"type":39,"tag":155,"props":796,"children":798},{"className":797},[],[799],{"type":45,"value":800},"references\u002Fpython.md",{"type":45,"value":802}," - Python - docs",{"type":39,"tag":80,"props":804,"children":805},{},[806,812],{"type":39,"tag":155,"props":807,"children":809},{"className":808},[],[810],{"type":45,"value":811},"references\u002Fposthog-python.md",{"type":45,"value":813}," - PostHog python SDK",{"type":39,"tag":80,"props":815,"children":816},{},[817,823],{"type":39,"tag":155,"props":818,"children":820},{"className":819},[],[821],{"type":45,"value":822},"references\u002Flaravel.md",{"type":45,"value":824}," - Laravel - docs",{"type":39,"tag":80,"props":826,"children":827},{},[828,834],{"type":39,"tag":155,"props":829,"children":831},{"className":830},[],[832],{"type":45,"value":833},"references\u002Fruby-on-rails.md",{"type":45,"value":835}," - Ruby on rails - docs",{"type":39,"tag":80,"props":837,"children":838},{},[839,845],{"type":39,"tag":155,"props":840,"children":842},{"className":841},[],[843],{"type":45,"value":844},"references\u002Fruby.md",{"type":45,"value":846}," - Ruby - docs",{"type":39,"tag":80,"props":848,"children":849},{},[850,856],{"type":39,"tag":155,"props":851,"children":853},{"className":852},[],[854],{"type":45,"value":855},"references\u002Fandroid.md",{"type":45,"value":857}," - Android - docs",{"type":39,"tag":80,"props":859,"children":860},{},[861,867],{"type":39,"tag":155,"props":862,"children":864},{"className":863},[],[865],{"type":45,"value":866},"references\u002Fios.md",{"type":45,"value":868}," - Ios - docs",{"type":39,"tag":80,"props":870,"children":871},{},[872,878],{"type":39,"tag":155,"props":873,"children":875},{"className":874},[],[876],{"type":45,"value":877},"references\u002Freact-native.md",{"type":45,"value":879}," - React native - docs",{"type":39,"tag":80,"props":881,"children":882},{},[883,889],{"type":39,"tag":155,"props":884,"children":886},{"className":885},[],[887],{"type":45,"value":888},"references\u002Fidentify-users.md",{"type":45,"value":890}," - Identify users - docs",{"type":39,"tag":48,"props":892,"children":893},{},[894],{"type":45,"value":895},"Each framework reference contains SDK-specific installation, initialization, and usage patterns. Find the one matching the user's stack.",{"type":39,"tag":59,"props":897,"children":899},{"id":898},"key-principles",[900],{"type":45,"value":901},"Key principles",{"type":39,"tag":76,"props":903,"children":904},{},[905,915,925],{"type":39,"tag":80,"props":906,"children":907},{},[908,913],{"type":39,"tag":172,"props":909,"children":910},{},[911],{"type":45,"value":912},"Environment variables",{"type":45,"value":914},": Always use environment variables for PostHog keys. Never hardcode them.",{"type":39,"tag":80,"props":916,"children":917},{},[918,923],{"type":39,"tag":172,"props":919,"children":920},{},[921],{"type":45,"value":922},"Minimal changes",{"type":45,"value":924},": Add PostHog code alongside existing integrations. Don't replace or restructure existing code.",{"type":39,"tag":80,"props":926,"children":927},{},[928,933],{"type":39,"tag":172,"props":929,"children":930},{},[931],{"type":45,"value":932},"Match the docs",{"type":45,"value":934},": Follow the framework reference's initialization and capture patterns exactly.",{"items":936,"total":1047},[937,954,974,988,1006,1020,1031],{"slug":938,"name":938,"fn":939,"description":940,"org":941,"tags":942,"stars":20,"repoUrl":21,"updatedAt":953},"account-handover","draft sales account handover notes","Draft structured handover notes for transitioning a PostHog account from one TAM or CSM to another. Use this skill when a TAM needs to hand over an account, prepare a transition briefing, write handover notes, create an account summary for a new owner, or any request involving account transitions between TAMs or CSMs. Triggers on \"hand over this account\", \"transition account to\", \"draft handover notes\", \"account briefing for new TAM\", \"prepare account transition\", or when a TAM names an account and says they're leaving or reassigning it.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[943,946,949,950],{"name":944,"slug":945,"type":13},"Communications","communications",{"name":947,"slug":948,"type":13},"CRM","crm",{"name":9,"slug":8,"type":13},{"name":951,"slug":952,"type":13},"Sales","sales","2026-04-16T05:13:00.172732",{"slug":955,"name":955,"fn":956,"description":957,"org":958,"tags":959,"stars":20,"repoUrl":21,"updatedAt":973},"auditing-warehouse-data-health","audit PostHog data warehouse health","Audit the health of a PostHog project's data warehouse — find every broken or degraded pipeline item across sources, sync schemas, materialized views, batch exports, and transformations. Use when the user asks \"what's broken in my warehouse?\", \"give me a health check\", \"audit my data pipeline\", \"why are some dashboards stale?\", or wants a one-shot triage summary before deciding where to spend time. Produces a prioritized report of issues grouped by severity and type, with recommended next steps.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[960,963,966,969,972],{"name":961,"slug":962,"type":13},"Audit","audit",{"name":964,"slug":965,"type":13},"Data Engineering","data-engineering",{"name":967,"slug":968,"type":13},"Data Quality","data-quality",{"name":970,"slug":971,"type":13},"Observability","observability",{"name":9,"slug":8,"type":13},"2026-06-21T08:19:05.85849",{"slug":975,"name":975,"fn":976,"description":977,"org":978,"tags":979,"stars":20,"repoUrl":21,"updatedAt":987},"copying-flags-across-projects","copy feature flags across PostHog projects","Copy a feature flag from one PostHog project to one or more target projects in the same organization. Use when the user wants to duplicate a flag, promote a flag from staging to production, sync flags across projects, or replicate a flag configuration in a different workspace. Covers cohort remapping, scheduled-change handling, encrypted payloads, and the safe defaults (disabled in target, no scheduled changes).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[980,983,986],{"name":981,"slug":982,"type":13},"Deployment","deployment",{"name":984,"slug":985,"type":13},"Feature Flags","feature-flags",{"name":9,"slug":8,"type":13},"2026-05-04T05:56:44.484909",{"slug":989,"name":989,"fn":990,"description":991,"org":992,"tags":993,"stars":20,"repoUrl":21,"updatedAt":1005},"diagnosing-experiment-results","diagnose PostHog experiment results and anomalies","Diagnoses bias, anomalies, and strange-looking results on a specific PostHog experiment. Covers empty \u002F 0-exposure experiments, sample ratio mismatch, identity fragmentation, multi-variant exposure, uneven-split exclusion bias, significance traps (peeking, A\u002FA, Bayesian vs Frequentist), PostHog-vs-SQL discrepancies, and surprises after mid-run edits. Symptom-driven dispatch to the right diagnostic.\nTRIGGER when: user asks 'is my experiment biased?' or 'why 0 exposures?', references the bias banner, says a variant looks strange \u002F wrong \u002F off, sees significance flipping, notices PostHog numbers disagreeing with their SQL, sees an A\u002FA test showing significance, or reports surprises after mid-run edits.\nDO NOT TRIGGER when: creating a new experiment (use creating-experiments), only configuring rollout (use configuring-experiment-rollout) or metrics (use configuring-experiment-analytics), or only asking lifecycle questions (use managing-experiment-lifecycle).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[994,997,998,1001,1004],{"name":995,"slug":996,"type":13},"A\u002FB Testing","a-b-testing",{"name":18,"slug":19,"type":13},{"name":999,"slug":1000,"type":13},"Data Analysis","data-analysis",{"name":1002,"slug":1003,"type":13},"Debugging","debugging",{"name":9,"slug":8,"type":13},"2026-05-22T06:59:58.103867",{"slug":1007,"name":1007,"fn":1008,"description":1009,"org":1010,"tags":1011,"stars":20,"repoUrl":21,"updatedAt":1019},"diagnosing-missing-recordings","diagnose missing PostHog session recordings","Diagnoses why a session recording is missing or was not captured. Use when a user asks why a session has no replay, why recordings aren't appearing, or wants to troubleshoot session replay capture issues for a specific session ID or across their project. Covers SDK diagnostic signals, project settings, sampling, triggers, ad blockers, and quota\u002Fbilling scenarios.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1012,1013,1014,1017,1018],{"name":18,"slug":19,"type":13},{"name":1002,"slug":1003,"type":13},{"name":1015,"slug":1016,"type":13},"Frontend","frontend",{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},"2026-04-22T05:06:51.989772",{"slug":1021,"name":1021,"fn":1022,"description":1023,"org":1024,"tags":1025,"stars":20,"repoUrl":21,"updatedAt":1030},"diagnosing-sdk-health","diagnose PostHog SDK health","Diagnoses the health of a project's PostHog SDK integrations — which SDKs are out of date and how to fix them. Use when a user asks about PostHog SDK versions, outdated SDKs, upgrade recommendations, \"SDK health\", \"SDK doctor\" (the former name), or when events or features seem off and it might be due to an old SDK.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1026,1027,1028,1029],{"name":18,"slug":19,"type":13},{"name":1002,"slug":1003,"type":13},{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},"2026-04-27T05:46:14.554016",{"slug":1032,"name":1032,"fn":1033,"description":1034,"org":1035,"tags":1036,"stars":20,"repoUrl":21,"updatedAt":1046},"error-tracking-android","track Android errors with PostHog","PostHog error tracking for Android",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1037,1040,1041,1044,1045],{"name":1038,"slug":1039,"type":13},"Android","android",{"name":1002,"slug":1003,"type":13},{"name":1042,"slug":1043,"type":13},"Mobile","mobile",{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},"2026-04-06T18:46:26.982494",110,{"items":1049,"total":1212},[1050,1065,1075,1088,1101,1114,1130,1147,1159,1174,1184,1202],{"slug":1051,"name":1051,"fn":1052,"description":1053,"org":1054,"tags":1055,"stars":1062,"repoUrl":1063,"updatedAt":1064},"analyzing-expensive-users","analyze expensive users in AI observability","Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user LLM cost, user-level cost drivers, or patterns behind high AI observability spend.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1056,1057,1060,1061],{"name":18,"slug":19,"type":13},{"name":1058,"slug":1059,"type":13},"Cost Optimization","cost-optimization",{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},35568,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog","2026-07-28T05:34:11.117757",{"slug":1066,"name":1066,"fn":1067,"description":1068,"org":1069,"tags":1070,"stars":1062,"repoUrl":1063,"updatedAt":1074},"auditing-endpoints","audit PostHog project endpoints","Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks \"what endpoints can I clean up?\", \"are any of my endpoints broken?\", \"which materialised versions are still being called?\", or wants a one-shot cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with recommended actions but does not modify anything without explicit confirmation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1071,1072,1073],{"name":18,"slug":19,"type":13},{"name":961,"slug":962,"type":13},{"name":9,"slug":8,"type":13},"2026-06-08T08:08:33.693989",{"slug":1076,"name":1076,"fn":1077,"description":1078,"org":1079,"tags":1080,"stars":1062,"repoUrl":1063,"updatedAt":1087},"auditing-warehouse-source-health","audit PostHog data warehouse source health","Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks \"why are my imports failing?\", \"what's broken with my sources?\", \"why is my warehouse data stale?\", or wants a one-shot triage of source\u002Fsync health before deciding where to dig in. Produces a prioritized report grouped by severity, with recommended next steps. For materialized-view health use `auditing-warehouse-view-health`; for a single failing sync use `diagnosing-failed-warehouse-syncs`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1081,1082,1085,1086],{"name":961,"slug":962,"type":13},{"name":1083,"slug":1084,"type":13},"Data Warehouse","data-warehouse",{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:22:57.67984",{"slug":1089,"name":1089,"fn":1090,"description":1091,"org":1092,"tags":1093,"stars":1062,"repoUrl":1063,"updatedAt":1100},"auditing-warehouse-view-health","audit PostHog materialized view health","Audit the health of a PostHog project's materialized views (saved queries) — find every failed materialization and flag unused or stale materialized views that cost storage and compute. Use when the user asks \"which of my views are broken?\", \"why is this materialized view failing?\", \"are any of my views wasting compute?\", or wants a one-shot triage of view health. For source\u002Fsync health use `auditing-warehouse-source-health`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1094,1095,1096,1099],{"name":961,"slug":962,"type":13},{"name":1083,"slug":1084,"type":13},{"name":1097,"slug":1098,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-06-18T08:25:10.936787",{"slug":1102,"name":1102,"fn":1103,"description":1104,"org":1105,"tags":1106,"stars":1062,"repoUrl":1063,"updatedAt":1113},"authoring-error-tracking-alerts","author PostHog error tracking alerts","Author error tracking alerts that fire when an issue is created, reopened, or starts spiking. Use when the user asks to set up error notifications, route exceptions to Slack\u002Fwebhook\u002FLinear, or evaluate which error events are worth alerting on. Covers trigger-event selection, integration choice, dedup against existing alerts, and shipping with the canonical message body shape.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1107,1110,1111,1112],{"name":1108,"slug":1109,"type":13},"Alerting","alerting",{"name":1002,"slug":1003,"type":13},{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:24:40.318583",{"slug":1115,"name":1115,"fn":1116,"description":1117,"org":1118,"tags":1119,"stars":1062,"repoUrl":1063,"updatedAt":1129},"authoring-log-alerts","author log alerts in PostHog","Author useful, low-noise log alerts on services in a PostHog project. Use when the user asks to set up alerts for their logs, suggest alerts they should add, or evaluate whether a service is worth monitoring. Covers service triage, baseline characterisation, threshold drafting, back-testing via simulate, and shipping with a notification destination.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1120,1121,1124,1125,1128],{"name":18,"slug":19,"type":13},{"name":1122,"slug":1123,"type":13},"Monitoring","monitoring",{"name":970,"slug":971,"type":13},{"name":1126,"slug":1127,"type":13},"Operations","operations",{"name":9,"slug":8,"type":13},"2026-07-18T05:10:54.430898",{"slug":1131,"name":1131,"fn":1132,"description":1133,"org":1134,"tags":1135,"stars":1062,"repoUrl":1063,"updatedAt":1146},"building-workflows","build and edit PostHog workflows","Build, edit, test, enable, and monitor PostHog workflows over MCP. Author the action\u002Fedge graph so it runs and opens cleanly in the visual editor, then change drafts surgically with patch operations. Use when asked to build, set up, automate, change, fix, or debug a workflow, campaign, broadcast, drip sequence, or event-triggered automation in the workflows product.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1136,1139,1142,1143],{"name":1137,"slug":1138,"type":13},"Automation","automation",{"name":1140,"slug":1141,"type":13},"MCP","mcp",{"name":9,"slug":8,"type":13},{"name":1144,"slug":1145,"type":13},"Workflow Automation","workflow-automation","2026-07-28T05:34:12.167015",{"slug":1148,"name":1148,"fn":1149,"description":1150,"org":1151,"tags":1152,"stars":1062,"repoUrl":1063,"updatedAt":1158},"check-posthog-loading","inspect PostHog SDK loading across URLs","Inspect how the PostHog JavaScript SDK is loaded across a list of URLs. Use to confirm consistent installation across pages, find pages missing the snippet, detect mismatched API keys or hosts between pages, and verify the load method (head snippet vs deferred vs array.js).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1153,1154,1155,1156,1157],{"name":18,"slug":19,"type":13},{"name":1002,"slug":1003,"type":13},{"name":1015,"slug":1016,"type":13},{"name":970,"slug":971,"type":13},{"name":9,"slug":8,"type":13},"2026-05-07T05:56:19.828048",{"slug":1160,"name":1160,"fn":1161,"description":1162,"org":1163,"tags":1164,"stars":1062,"repoUrl":1063,"updatedAt":1173},"consuming-endpoints-from-client-code","integrate PostHog endpoints into client applications","Wire a PostHog endpoint into a client app or SDK. Covers fetching the OpenAPI spec, generating a typed client with openapi-generator or @hey-api\u002Fopenapi-ts, sending the right auth header, shaping the variables payload (HogQL code_name vs insight breakdown property), handling rate-limit and materialised-endpoint error responses. Use when the user says \"how do I call my endpoint\", \"generate a client for this\", or \"what auth header do I use\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1165,1168,1169,1170],{"name":1166,"slug":1167,"type":13},"API Development","api-development",{"name":1015,"slug":1016,"type":13},{"name":9,"slug":8,"type":13},{"name":1171,"slug":1172,"type":13},"SDK","sdk","2026-06-08T08:08:34.929454",{"slug":1175,"name":1175,"fn":1176,"description":1177,"org":1178,"tags":1179,"stars":1062,"repoUrl":1063,"updatedAt":1183},"copying-endpoints-across-projects","copy PostHog endpoints across projects","Copy a PostHog endpoint (a saved HogQL\u002Finsight query exposed as an API route) to another project in the same organization, or duplicate it under a new name in the same project. Use when the user wants to duplicate an endpoint, promote an endpoint from staging to production, replicate an endpoint's query\u002Fvariables\u002Ffreshness config in another workspace, or clone an endpoint to iterate on it. Unlike feature flags and experiments, endpoints have NO native cross-project copy tool — this skill covers the read-then-recreate flow (endpoint-get then endpoint-create), the active-project switching it requires, name-collision checks, and the safe defaults (land unmaterialised in the target, verify with endpoint-run). Does not cover editing endpoint versions (see managing-endpoint-versions) or authoring a brand-new endpoint from scratch (see creating-an-endpoint).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1180,1181,1182],{"name":1166,"slug":1167,"type":13},{"name":1126,"slug":1127,"type":13},{"name":9,"slug":8,"type":13},"2026-07-15T05:29:58.442727",{"slug":1185,"name":1185,"fn":1186,"description":1187,"org":1188,"tags":1189,"stars":1062,"repoUrl":1063,"updatedAt":1201},"creating-ai-subscription","schedule recurring AI-generated PostHog reports","Create a recurring AI-generated PostHog report — schedule a free-text prompt to run on a cron, with the LLM-synthesized markdown delivered to email or Slack on each tick. Use when the user wants a recurring AI summary of X on any cadence (daily, weekly, monthly, yearly) rather than a one-off report. (To attach an AI summary to an existing insight\u002Fdashboard subscription instead of a free-text prompt, see `managing-subscriptions` and its `summary_enabled` option.)\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1190,1191,1194,1195,1198],{"name":1137,"slug":1138,"type":13},{"name":1192,"slug":1193,"type":13},"Email","email",{"name":9,"slug":8,"type":13},{"name":1196,"slug":1197,"type":13},"Reporting","reporting",{"name":1199,"slug":1200,"type":13},"Slack","slack","2026-06-09T07:32:27.935712",{"slug":1203,"name":1203,"fn":1204,"description":1205,"org":1206,"tags":1207,"stars":1062,"repoUrl":1063,"updatedAt":1211},"creating-an-endpoint","create PostHog API endpoints","Create a PostHog endpoint with the right shape on the first try — covers query kind choice, name conventions, what to expose as variables (HogQL code_name vs insight breakdown), data_freshness_seconds, and whether to materialise on day one. Use when the user says \"create an endpoint\", \"expose this query as an API\", \"turn this insight into an endpoint\", or asks for help structuring a new endpoint. Steers away from common mistakes: materialising a query with cohort breakdowns or compare mode, inline-only variables on a materialised endpoint, unbounded date ranges, ambiguous names.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1208,1209,1210],{"name":18,"slug":19,"type":13},{"name":1166,"slug":1167,"type":13},{"name":9,"slug":8,"type":13},"2026-06-08T08:08:29.624498",231]