[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-posthog-auditing-endpoints":3,"mdc--hec9d8-key":45,"related-repo-posthog-auditing-endpoints":1102,"related-org-posthog-auditing-endpoints":1199},{"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":40,"sourceUrl":43,"mdContent":44},"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},"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},"Audit","audit",{"name":18,"slug":19,"type":13},"Analytics","analytics",35568,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog","2026-06-08T08:08:33.693989",null,2977,[26,27,19,28,29,30,31,32,33,34,35,36,37,38,39],"ab-testing","ai-analytics","cdp","data-warehouse","experiments","feature-flags","javascript","product-analytics","python","react","session-replay","surveys","typescript","web-analytics",{"repoUrl":21,"stars":20,"forks":24,"topics":41,"description":42},[26,27,19,28,29,30,31,32,33,34,35,36,37,38,39],"🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.","https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog\u002Ftree\u002FHEAD\u002Fproducts\u002Fendpoints\u002Fskills\u002Fauditing-endpoints","---\nname: auditing-endpoints\ndescription: >\n  Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused\n  materialised versions. Use when the user asks \"what endpoints can I clean up?\", \"are any of my\n  endpoints broken?\", \"which materialised versions are still being called?\", or wants a one-shot\n  cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with\n  recommended actions but does not modify anything without explicit confirmation.\n---\n\n# Auditing endpoints\n\nThis skill produces a project-wide audit of the Endpoints product. Use it when the user wants to\n**find what to clean up** — unused endpoints, failing materialisations, materialised versions that\nnobody calls any more. It does not modify anything; it reports.\n\nThe deeper investigation per endpoint is `diagnosing-endpoint-performance`. The audit's job is to\nfind candidates and hand off.\n\n## When to use this skill\n\n- \"Audit my endpoints\" \u002F \"What endpoints can I clean up?\"\n- The user is taking over a project and wants to know what they've inherited\n- A periodic review (monthly \u002F quarterly) of endpoint sprawl\n- The user is over a materialisation cost budget and wants to know what to disable\n\nThe dedicated tools give a fast endpoint-level view. For call frequency, recency, and cost over\ntime, query the `query_log` table with `execute-sql` (endpoint-level). Per-version recency comes\nfrom `endpoint-versions` — each version carries its own `last_executed_at`.\n\n## Available tools\n\n| Tool                              | What it's for                                                                                                                                                                                                                          |\n| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `execute-sql` (HogQL)             | **Primary read path.** Query `system.data_modeling_endpoints` for metadata (name, is_active, current_version, derived_from_insight, last_executed_at) and `query_log` for endpoint-level usage (call counts, recency, duration, bytes) |\n| `endpoint-materialization-status` | Per endpoint: is materialisation eligible, current status, last run, last error (not in the system tables — use this tool)                                                                                                             |\n| `endpoint-versions`               | All versions for one endpoint, latest first, with each version's query, materialisation state, and `last_executed_at`                                                                                                                  |\n| `endpoint-update`                 | Write path — disable (`is_active: false`) or unmaterialise (`is_materialized: false`) after the user confirms                                                                                                                          |\n| `agent-feedback`                  | Tell the PostHog team what's missing or confusing in this flow so the product and skill improve                                                                                                                                        |\n\nPrefer reading from the system tables over the `endpoints-get-all` \u002F `endpoint-get` tools — one\nSQL query returns the whole inventory and lets you join metadata to usage in `query_log`.\n\n## What counts as an issue\n\n| Category                        | Trigger                                                                                          | Typical action                                     |\n| ------------------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------- |\n| **Never called**                | No rows in `query_log` for the endpoint (personal-API-key calls only)                            | Confirm with the user, then disable                |\n| **Stale**                       | `query_log` shows the last call more than 30 days ago                                            | Confirm with the user; often safe to disable       |\n| **Inactive**                    | `is_active = 0` in `system.data_modeling_endpoints`                                              | Verify intent; if abandoned, delete                |\n| **Failing materialisation**     | `endpoint-materialization-status` returns `Failed` with an error                                 | Hand off to `diagnosing-endpoint-performance`      |\n| **Unused materialised version** | A materialised version whose `last_executed_at` (from `endpoint-versions`) is null or long stale | Unmaterialise that version, or roll to a newer one |\n| **Drifted versions**            | Many versions exist (query changed repeatedly)                                                   | History noise — not an issue, but worth noting     |\n\nUsage counts only **personal-API-key calls** — an endpoint exercised solely from the Playground\ntab or the app will look unused. Per-version `last_executed_at` is recorded only for runs since\nthat tracking was added, so a version can read null while still being used; always confirm before\nremoving.\n\n## Workflow\n\n### 1. List endpoints and their metadata\n\nOne `execute-sql` query gets the whole inventory from `system.data_modeling_endpoints`:\n\n```sql\nSELECT name, is_active, current_version, derived_from_insight, last_executed_at\nFROM system.data_modeling_endpoints\nORDER BY name\n```\n\nNo rows → the project has no endpoints; say so and stop. Don't invent issues. (The\n`last_executed_at` column here is a convenience endpoint-level timestamp; for call frequency and\ncost, use `query_log` in the next step.)\n\n### 2. Pull usage from `query_log`\n\n`query_log` records every personal-API-key call, tagged with the endpoint name. One query gives\nrecency and call counts across all endpoints:\n\n```sql\nSELECT name, count() AS calls, max(query_start_time) AS last_called\nFROM query_log\nWHERE endpoint LIKE '%\u002Fendpoints\u002F%' AND is_personal_api_key_request\nGROUP BY name\nORDER BY name\n```\n\nCross-reference with step 1:\n\n- **In metadata, absent from `query_log`** → never called via API key\n- **Last call more than 30 days ago** → stale\n\n`query_log` also exposes `query_duration_ms`, `read_rows`, and `read_bytes` per call — useful to\nflag expensive endpoints in the same pass. This is endpoint-level; per-version recency comes from\n`endpoint-versions` (step 3).\n\n### 3. Check materialisation health and unused versions\n\nFor each materialised endpoint, call `endpoint-materialization-status` (this isn't in the system\ntables). Surface any with `status: \"Failed\"` separately — these are active failures, not staleness.\n\nThen call `endpoint-versions` and read each version's `last_executed_at`: a **materialised**\nversion that's null or long stale is an unused-materialised-version candidate. Treat this as a\nlead, not proof — per-version recency only counts API-key runs since tracking was added, so confirm\nwith the user before unmaterialising.\n\n### 4. Present the audit\n\nRender a prioritised report grouped by category. Don't dump raw JSON; use a readable table per\nsection:\n\n```text\n## Endpoints audit — 9 issues\n\n### 🔴 Failing materialisations (1)\n- weekly_revenue (v3) — Failed 2h ago, \"Column 'event_date' does not exist\"\n  → hand off to diagnosing-endpoint-performance\n\n### 🟠 Never called via API key (3)\n- internal_admin_query — created 5 months ago\n- legacy_signup_funnel — created 1 year ago, materialised\n- experiment_arm_lookup — created 9 months ago\n\n### 🟠 Unused materialised versions (2)  [from endpoint-versions]\n- monthly_active_users — v3 materialised, last_executed_at null (currently on v4 — unmaterialise v3)\n- order_summary — v1 materialised, last_executed_at null\n\n### 🟡 Stale (3)\n- holiday_promo_2024 — last called 4 months ago\n- ab_test_phase_1 — last called 2 months ago\n- daily_revenue_cohort — last called 45 days ago\n\nRecommended order:\n1. Investigate the failing materialisation (blocks fresh data)\n2. Unmaterialise the unused versions (free storage + compute)\n3. Disable the never-called endpoints (if user confirms)\n4. Review stale endpoints with the user\n```\n\nThe exact format is less important than: prioritised, grouped, actionable, and hand-off\nclear.\n\n### 5. Offer the next step\n\nEnd with a clear question, not a decision:\n\n- \"Want me to unmaterialise the unused versions?\" — needs `endpoint-update` with\n  `is_materialized: false` per version\n- \"Want me to disable the never-called endpoints?\" — needs `endpoint-update` with `is_active: false`\n- \"Want me to dig into the failing materialisation?\" — hands off to\n  `diagnosing-endpoint-performance`\n\n**Never act from the audit alone.** Disabling or unmaterialising affects external API consumers;\nalways confirm before modifying.\n\n## Example interaction\n\n```text\nUser: \"Audit my endpoints\"\n\nAgent steps:\n- execute-sql on system.data_modeling_endpoints → 12 endpoints (4 materialised)\n- execute-sql on query_log grouped by name → 8 endpoints have calls\n- endpoint-materialization-status on each materialised endpoint → 1 failing\n- endpoint-versions on the materialised ones → order_summary v2's last_executed_at is null\n\n- Report:\n  \"Found 6 things worth looking at across 12 endpoints:\n\n   🔴 Failing materialisations (1)\n   - monthly_active_users (v2) — materialisation failed yesterday with\n     'memory limit exceeded'. The endpoint is still callable inline but\n     responses will be slower.\n\n   🟠 Never called via API key (3)\n   - legacy_funnel_v1 — created 11 months ago\n   - test_export — created 3 months ago\n   - admin_dump — created 8 months ago, materialised (wasteful)\n\n   🟠 Unused materialised versions (1)  [from endpoint-versions]\n   - order_summary v2 — materialised but its last_executed_at is null\n     while v3 is current. Likely safe to unmaterialise v2.\n\n   🟡 Stale (1)\n   - holiday_2024 — last called 5 months ago\n\n   Caveat: usage only counts personal-API-key calls; playground and\n   dashboard runs aren't counted. Per-version recency comes from\n   endpoint-versions and is sparse. Confirm before disabling.\n\n   Want me to start with the failing materialisation, or clean up the\n   unused version first?\"\n```\n\n## Important notes\n\n- **The audit is read-only.** Never call destructive tools from this flow. Hand off or confirm\n  before any modification.\n- **Empty = healthy.** Don't pad an empty report with theoretical issues. \"Nothing to clean up\"\n  is a good answer.\n- **Read with SQL, drill in with the version tool.** `system.data_modeling_endpoints` (metadata)\n  and `query_log` (endpoint-level call counts, recency, cost) via `execute-sql` answer most of the\n  audit. Per-version recency comes from `endpoint-versions` (each version's `last_executed_at`).\n- **API-key-only scope.** Usage only counts personal-API-key calls. An endpoint exercised only from\n  the Playground tab or the app will look unused. Always confirm before acting.\n- **Materialisation costs storage and compute.** When an endpoint no longer needs materialisation,\n  the cheapest fix is `endpoint-update` with `is_materialized: false` — not deleting the endpoint.\n- **Inactive ≠ stale.** An endpoint with `is_active: false` was deliberately turned off. Don't\n  recommend deletion unless the user confirms it's truly abandoned.\n",{"data":46,"body":47},{"name":4,"description":6},{"type":48,"children":49},"root",[50,58,72,86,93,118,155,161,315,342,348,556,575,581,588,607,647,666,677,687,735,740,768,809,815,835,861,867,872,882,887,893,898,947,957,963,972,978,1096],{"type":51,"tag":52,"props":53,"children":54},"element","h1",{"id":4},[55],{"type":56,"value":57},"text","Auditing endpoints",{"type":51,"tag":59,"props":60,"children":61},"p",{},[62,64,70],{"type":56,"value":63},"This skill produces a project-wide audit of the Endpoints product. Use it when the user wants to\n",{"type":51,"tag":65,"props":66,"children":67},"strong",{},[68],{"type":56,"value":69},"find what to clean up",{"type":56,"value":71}," — unused endpoints, failing materialisations, materialised versions that\nnobody calls any more. It does not modify anything; it reports.",{"type":51,"tag":59,"props":73,"children":74},{},[75,77,84],{"type":56,"value":76},"The deeper investigation per endpoint is ",{"type":51,"tag":78,"props":79,"children":81},"code",{"className":80},[],[82],{"type":56,"value":83},"diagnosing-endpoint-performance",{"type":56,"value":85},". The audit's job is to\nfind candidates and hand off.",{"type":51,"tag":87,"props":88,"children":90},"h2",{"id":89},"when-to-use-this-skill",[91],{"type":56,"value":92},"When to use this skill",{"type":51,"tag":94,"props":95,"children":96},"ul",{},[97,103,108,113],{"type":51,"tag":98,"props":99,"children":100},"li",{},[101],{"type":56,"value":102},"\"Audit my endpoints\" \u002F \"What endpoints can I clean up?\"",{"type":51,"tag":98,"props":104,"children":105},{},[106],{"type":56,"value":107},"The user is taking over a project and wants to know what they've inherited",{"type":51,"tag":98,"props":109,"children":110},{},[111],{"type":56,"value":112},"A periodic review (monthly \u002F quarterly) of endpoint sprawl",{"type":51,"tag":98,"props":114,"children":115},{},[116],{"type":56,"value":117},"The user is over a materialisation cost budget and wants to know what to disable",{"type":51,"tag":59,"props":119,"children":120},{},[121,123,129,131,137,139,145,147,153],{"type":56,"value":122},"The dedicated tools give a fast endpoint-level view. For call frequency, recency, and cost over\ntime, query the ",{"type":51,"tag":78,"props":124,"children":126},{"className":125},[],[127],{"type":56,"value":128},"query_log",{"type":56,"value":130}," table with ",{"type":51,"tag":78,"props":132,"children":134},{"className":133},[],[135],{"type":56,"value":136},"execute-sql",{"type":56,"value":138}," (endpoint-level). Per-version recency comes\nfrom ",{"type":51,"tag":78,"props":140,"children":142},{"className":141},[],[143],{"type":56,"value":144},"endpoint-versions",{"type":56,"value":146}," — each version carries its own ",{"type":51,"tag":78,"props":148,"children":150},{"className":149},[],[151],{"type":56,"value":152},"last_executed_at",{"type":56,"value":154},".",{"type":51,"tag":87,"props":156,"children":158},{"id":157},"available-tools",[159],{"type":56,"value":160},"Available tools",{"type":51,"tag":162,"props":163,"children":164},"table",{},[165,184],{"type":51,"tag":166,"props":167,"children":168},"thead",{},[169],{"type":51,"tag":170,"props":171,"children":172},"tr",{},[173,179],{"type":51,"tag":174,"props":175,"children":176},"th",{},[177],{"type":56,"value":178},"Tool",{"type":51,"tag":174,"props":180,"children":181},{},[182],{"type":56,"value":183},"What it's for",{"type":51,"tag":185,"props":186,"children":187},"tbody",{},[188,227,244,265,298],{"type":51,"tag":170,"props":189,"children":190},{},[191,202],{"type":51,"tag":192,"props":193,"children":194},"td",{},[195,200],{"type":51,"tag":78,"props":196,"children":198},{"className":197},[],[199],{"type":56,"value":136},{"type":56,"value":201}," (HogQL)",{"type":51,"tag":192,"props":203,"children":204},{},[205,210,212,218,220,225],{"type":51,"tag":65,"props":206,"children":207},{},[208],{"type":56,"value":209},"Primary read path.",{"type":56,"value":211}," Query ",{"type":51,"tag":78,"props":213,"children":215},{"className":214},[],[216],{"type":56,"value":217},"system.data_modeling_endpoints",{"type":56,"value":219}," for metadata (name, is_active, current_version, derived_from_insight, last_executed_at) and ",{"type":51,"tag":78,"props":221,"children":223},{"className":222},[],[224],{"type":56,"value":128},{"type":56,"value":226}," for endpoint-level usage (call counts, recency, duration, bytes)",{"type":51,"tag":170,"props":228,"children":229},{},[230,239],{"type":51,"tag":192,"props":231,"children":232},{},[233],{"type":51,"tag":78,"props":234,"children":236},{"className":235},[],[237],{"type":56,"value":238},"endpoint-materialization-status",{"type":51,"tag":192,"props":240,"children":241},{},[242],{"type":56,"value":243},"Per endpoint: is materialisation eligible, current status, last run, last error (not in the system tables — use this tool)",{"type":51,"tag":170,"props":245,"children":246},{},[247,255],{"type":51,"tag":192,"props":248,"children":249},{},[250],{"type":51,"tag":78,"props":251,"children":253},{"className":252},[],[254],{"type":56,"value":144},{"type":51,"tag":192,"props":256,"children":257},{},[258,260],{"type":56,"value":259},"All versions for one endpoint, latest first, with each version's query, materialisation state, and ",{"type":51,"tag":78,"props":261,"children":263},{"className":262},[],[264],{"type":56,"value":152},{"type":51,"tag":170,"props":266,"children":267},{},[268,277],{"type":51,"tag":192,"props":269,"children":270},{},[271],{"type":51,"tag":78,"props":272,"children":274},{"className":273},[],[275],{"type":56,"value":276},"endpoint-update",{"type":51,"tag":192,"props":278,"children":279},{},[280,282,288,290,296],{"type":56,"value":281},"Write path — disable (",{"type":51,"tag":78,"props":283,"children":285},{"className":284},[],[286],{"type":56,"value":287},"is_active: false",{"type":56,"value":289},") or unmaterialise (",{"type":51,"tag":78,"props":291,"children":293},{"className":292},[],[294],{"type":56,"value":295},"is_materialized: false",{"type":56,"value":297},") after the user confirms",{"type":51,"tag":170,"props":299,"children":300},{},[301,310],{"type":51,"tag":192,"props":302,"children":303},{},[304],{"type":51,"tag":78,"props":305,"children":307},{"className":306},[],[308],{"type":56,"value":309},"agent-feedback",{"type":51,"tag":192,"props":311,"children":312},{},[313],{"type":56,"value":314},"Tell the PostHog team what's missing or confusing in this flow so the product and skill improve",{"type":51,"tag":59,"props":316,"children":317},{},[318,320,326,328,334,336,341],{"type":56,"value":319},"Prefer reading from the system tables over the ",{"type":51,"tag":78,"props":321,"children":323},{"className":322},[],[324],{"type":56,"value":325},"endpoints-get-all",{"type":56,"value":327}," \u002F ",{"type":51,"tag":78,"props":329,"children":331},{"className":330},[],[332],{"type":56,"value":333},"endpoint-get",{"type":56,"value":335}," tools — one\nSQL query returns the whole inventory and lets you join metadata to usage in ",{"type":51,"tag":78,"props":337,"children":339},{"className":338},[],[340],{"type":56,"value":128},{"type":56,"value":154},{"type":51,"tag":87,"props":343,"children":345},{"id":344},"what-counts-as-an-issue",[346],{"type":56,"value":347},"What counts as an issue",{"type":51,"tag":162,"props":349,"children":350},{},[351,372],{"type":51,"tag":166,"props":352,"children":353},{},[354],{"type":51,"tag":170,"props":355,"children":356},{},[357,362,367],{"type":51,"tag":174,"props":358,"children":359},{},[360],{"type":56,"value":361},"Category",{"type":51,"tag":174,"props":363,"children":364},{},[365],{"type":56,"value":366},"Trigger",{"type":51,"tag":174,"props":368,"children":369},{},[370],{"type":56,"value":371},"Typical action",{"type":51,"tag":185,"props":373,"children":374},{},[375,403,429,461,500,535],{"type":51,"tag":170,"props":376,"children":377},{},[378,386,398],{"type":51,"tag":192,"props":379,"children":380},{},[381],{"type":51,"tag":65,"props":382,"children":383},{},[384],{"type":56,"value":385},"Never called",{"type":51,"tag":192,"props":387,"children":388},{},[389,391,396],{"type":56,"value":390},"No rows in ",{"type":51,"tag":78,"props":392,"children":394},{"className":393},[],[395],{"type":56,"value":128},{"type":56,"value":397}," for the endpoint (personal-API-key calls only)",{"type":51,"tag":192,"props":399,"children":400},{},[401],{"type":56,"value":402},"Confirm with the user, then disable",{"type":51,"tag":170,"props":404,"children":405},{},[406,414,424],{"type":51,"tag":192,"props":407,"children":408},{},[409],{"type":51,"tag":65,"props":410,"children":411},{},[412],{"type":56,"value":413},"Stale",{"type":51,"tag":192,"props":415,"children":416},{},[417,422],{"type":51,"tag":78,"props":418,"children":420},{"className":419},[],[421],{"type":56,"value":128},{"type":56,"value":423}," shows the last call more than 30 days ago",{"type":51,"tag":192,"props":425,"children":426},{},[427],{"type":56,"value":428},"Confirm with the user; often safe to disable",{"type":51,"tag":170,"props":430,"children":431},{},[432,440,456],{"type":51,"tag":192,"props":433,"children":434},{},[435],{"type":51,"tag":65,"props":436,"children":437},{},[438],{"type":56,"value":439},"Inactive",{"type":51,"tag":192,"props":441,"children":442},{},[443,449,451],{"type":51,"tag":78,"props":444,"children":446},{"className":445},[],[447],{"type":56,"value":448},"is_active = 0",{"type":56,"value":450}," in ",{"type":51,"tag":78,"props":452,"children":454},{"className":453},[],[455],{"type":56,"value":217},{"type":51,"tag":192,"props":457,"children":458},{},[459],{"type":56,"value":460},"Verify intent; if abandoned, delete",{"type":51,"tag":170,"props":462,"children":463},{},[464,472,490],{"type":51,"tag":192,"props":465,"children":466},{},[467],{"type":51,"tag":65,"props":468,"children":469},{},[470],{"type":56,"value":471},"Failing materialisation",{"type":51,"tag":192,"props":473,"children":474},{},[475,480,482,488],{"type":51,"tag":78,"props":476,"children":478},{"className":477},[],[479],{"type":56,"value":238},{"type":56,"value":481}," returns ",{"type":51,"tag":78,"props":483,"children":485},{"className":484},[],[486],{"type":56,"value":487},"Failed",{"type":56,"value":489}," with an error",{"type":51,"tag":192,"props":491,"children":492},{},[493,495],{"type":56,"value":494},"Hand off to ",{"type":51,"tag":78,"props":496,"children":498},{"className":497},[],[499],{"type":56,"value":83},{"type":51,"tag":170,"props":501,"children":502},{},[503,511,530],{"type":51,"tag":192,"props":504,"children":505},{},[506],{"type":51,"tag":65,"props":507,"children":508},{},[509],{"type":56,"value":510},"Unused materialised version",{"type":51,"tag":192,"props":512,"children":513},{},[514,516,521,523,528],{"type":56,"value":515},"A materialised version whose ",{"type":51,"tag":78,"props":517,"children":519},{"className":518},[],[520],{"type":56,"value":152},{"type":56,"value":522}," (from ",{"type":51,"tag":78,"props":524,"children":526},{"className":525},[],[527],{"type":56,"value":144},{"type":56,"value":529},") is null or long stale",{"type":51,"tag":192,"props":531,"children":532},{},[533],{"type":56,"value":534},"Unmaterialise that version, or roll to a newer one",{"type":51,"tag":170,"props":536,"children":537},{},[538,546,551],{"type":51,"tag":192,"props":539,"children":540},{},[541],{"type":51,"tag":65,"props":542,"children":543},{},[544],{"type":56,"value":545},"Drifted versions",{"type":51,"tag":192,"props":547,"children":548},{},[549],{"type":56,"value":550},"Many versions exist (query changed repeatedly)",{"type":51,"tag":192,"props":552,"children":553},{},[554],{"type":56,"value":555},"History noise — not an issue, but worth noting",{"type":51,"tag":59,"props":557,"children":558},{},[559,561,566,568,573],{"type":56,"value":560},"Usage counts only ",{"type":51,"tag":65,"props":562,"children":563},{},[564],{"type":56,"value":565},"personal-API-key calls",{"type":56,"value":567}," — an endpoint exercised solely from the Playground\ntab or the app will look unused. Per-version ",{"type":51,"tag":78,"props":569,"children":571},{"className":570},[],[572],{"type":56,"value":152},{"type":56,"value":574}," is recorded only for runs since\nthat tracking was added, so a version can read null while still being used; always confirm before\nremoving.",{"type":51,"tag":87,"props":576,"children":578},{"id":577},"workflow",[579],{"type":56,"value":580},"Workflow",{"type":51,"tag":582,"props":583,"children":585},"h3",{"id":584},"_1-list-endpoints-and-their-metadata",[586],{"type":56,"value":587},"1. List endpoints and their metadata",{"type":51,"tag":59,"props":589,"children":590},{},[591,593,598,600,605],{"type":56,"value":592},"One ",{"type":51,"tag":78,"props":594,"children":596},{"className":595},[],[597],{"type":56,"value":136},{"type":56,"value":599}," query gets the whole inventory from ",{"type":51,"tag":78,"props":601,"children":603},{"className":602},[],[604],{"type":56,"value":217},{"type":56,"value":606},":",{"type":51,"tag":608,"props":609,"children":614},"pre",{"className":610,"code":611,"language":612,"meta":613,"style":613},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SELECT name, is_active, current_version, derived_from_insight, last_executed_at\nFROM system.data_modeling_endpoints\nORDER BY name\n","sql","",[615],{"type":51,"tag":78,"props":616,"children":617},{"__ignoreMap":613},[618,629,638],{"type":51,"tag":619,"props":620,"children":623},"span",{"class":621,"line":622},"line",1,[624],{"type":51,"tag":619,"props":625,"children":626},{},[627],{"type":56,"value":628},"SELECT name, is_active, current_version, derived_from_insight, last_executed_at\n",{"type":51,"tag":619,"props":630,"children":632},{"class":621,"line":631},2,[633],{"type":51,"tag":619,"props":634,"children":635},{},[636],{"type":56,"value":637},"FROM system.data_modeling_endpoints\n",{"type":51,"tag":619,"props":639,"children":641},{"class":621,"line":640},3,[642],{"type":51,"tag":619,"props":643,"children":644},{},[645],{"type":56,"value":646},"ORDER BY name\n",{"type":51,"tag":59,"props":648,"children":649},{},[650,652,657,659,664],{"type":56,"value":651},"No rows → the project has no endpoints; say so and stop. Don't invent issues. (The\n",{"type":51,"tag":78,"props":653,"children":655},{"className":654},[],[656],{"type":56,"value":152},{"type":56,"value":658}," column here is a convenience endpoint-level timestamp; for call frequency and\ncost, use ",{"type":51,"tag":78,"props":660,"children":662},{"className":661},[],[663],{"type":56,"value":128},{"type":56,"value":665}," in the next step.)",{"type":51,"tag":582,"props":667,"children":669},{"id":668},"_2-pull-usage-from-query_log",[670,672],{"type":56,"value":671},"2. Pull usage from ",{"type":51,"tag":78,"props":673,"children":675},{"className":674},[],[676],{"type":56,"value":128},{"type":51,"tag":59,"props":678,"children":679},{},[680,685],{"type":51,"tag":78,"props":681,"children":683},{"className":682},[],[684],{"type":56,"value":128},{"type":56,"value":686}," records every personal-API-key call, tagged with the endpoint name. One query gives\nrecency and call counts across all endpoints:",{"type":51,"tag":608,"props":688,"children":690},{"className":610,"code":689,"language":612,"meta":613,"style":613},"SELECT name, count() AS calls, max(query_start_time) AS last_called\nFROM query_log\nWHERE endpoint LIKE '%\u002Fendpoints\u002F%' AND is_personal_api_key_request\nGROUP BY name\nORDER BY name\n",[691],{"type":51,"tag":78,"props":692,"children":693},{"__ignoreMap":613},[694,702,710,718,727],{"type":51,"tag":619,"props":695,"children":696},{"class":621,"line":622},[697],{"type":51,"tag":619,"props":698,"children":699},{},[700],{"type":56,"value":701},"SELECT name, count() AS calls, max(query_start_time) AS last_called\n",{"type":51,"tag":619,"props":703,"children":704},{"class":621,"line":631},[705],{"type":51,"tag":619,"props":706,"children":707},{},[708],{"type":56,"value":709},"FROM query_log\n",{"type":51,"tag":619,"props":711,"children":712},{"class":621,"line":640},[713],{"type":51,"tag":619,"props":714,"children":715},{},[716],{"type":56,"value":717},"WHERE endpoint LIKE '%\u002Fendpoints\u002F%' AND is_personal_api_key_request\n",{"type":51,"tag":619,"props":719,"children":721},{"class":621,"line":720},4,[722],{"type":51,"tag":619,"props":723,"children":724},{},[725],{"type":56,"value":726},"GROUP BY name\n",{"type":51,"tag":619,"props":728,"children":730},{"class":621,"line":729},5,[731],{"type":51,"tag":619,"props":732,"children":733},{},[734],{"type":56,"value":646},{"type":51,"tag":59,"props":736,"children":737},{},[738],{"type":56,"value":739},"Cross-reference with step 1:",{"type":51,"tag":94,"props":741,"children":742},{},[743,758],{"type":51,"tag":98,"props":744,"children":745},{},[746,756],{"type":51,"tag":65,"props":747,"children":748},{},[749,751],{"type":56,"value":750},"In metadata, absent from ",{"type":51,"tag":78,"props":752,"children":754},{"className":753},[],[755],{"type":56,"value":128},{"type":56,"value":757}," → never called via API key",{"type":51,"tag":98,"props":759,"children":760},{},[761,766],{"type":51,"tag":65,"props":762,"children":763},{},[764],{"type":56,"value":765},"Last call more than 30 days ago",{"type":56,"value":767}," → stale",{"type":51,"tag":59,"props":769,"children":770},{},[771,776,778,784,786,792,794,800,802,807],{"type":51,"tag":78,"props":772,"children":774},{"className":773},[],[775],{"type":56,"value":128},{"type":56,"value":777}," also exposes ",{"type":51,"tag":78,"props":779,"children":781},{"className":780},[],[782],{"type":56,"value":783},"query_duration_ms",{"type":56,"value":785},", ",{"type":51,"tag":78,"props":787,"children":789},{"className":788},[],[790],{"type":56,"value":791},"read_rows",{"type":56,"value":793},", and ",{"type":51,"tag":78,"props":795,"children":797},{"className":796},[],[798],{"type":56,"value":799},"read_bytes",{"type":56,"value":801}," per call — useful to\nflag expensive endpoints in the same pass. This is endpoint-level; per-version recency comes from\n",{"type":51,"tag":78,"props":803,"children":805},{"className":804},[],[806],{"type":56,"value":144},{"type":56,"value":808}," (step 3).",{"type":51,"tag":582,"props":810,"children":812},{"id":811},"_3-check-materialisation-health-and-unused-versions",[813],{"type":56,"value":814},"3. Check materialisation health and unused versions",{"type":51,"tag":59,"props":816,"children":817},{},[818,820,825,827,833],{"type":56,"value":819},"For each materialised endpoint, call ",{"type":51,"tag":78,"props":821,"children":823},{"className":822},[],[824],{"type":56,"value":238},{"type":56,"value":826}," (this isn't in the system\ntables). Surface any with ",{"type":51,"tag":78,"props":828,"children":830},{"className":829},[],[831],{"type":56,"value":832},"status: \"Failed\"",{"type":56,"value":834}," separately — these are active failures, not staleness.",{"type":51,"tag":59,"props":836,"children":837},{},[838,840,845,847,852,854,859],{"type":56,"value":839},"Then call ",{"type":51,"tag":78,"props":841,"children":843},{"className":842},[],[844],{"type":56,"value":144},{"type":56,"value":846}," and read each version's ",{"type":51,"tag":78,"props":848,"children":850},{"className":849},[],[851],{"type":56,"value":152},{"type":56,"value":853},": a ",{"type":51,"tag":65,"props":855,"children":856},{},[857],{"type":56,"value":858},"materialised",{"type":56,"value":860},"\nversion that's null or long stale is an unused-materialised-version candidate. Treat this as a\nlead, not proof — per-version recency only counts API-key runs since tracking was added, so confirm\nwith the user before unmaterialising.",{"type":51,"tag":582,"props":862,"children":864},{"id":863},"_4-present-the-audit",[865],{"type":56,"value":866},"4. Present the audit",{"type":51,"tag":59,"props":868,"children":869},{},[870],{"type":56,"value":871},"Render a prioritised report grouped by category. Don't dump raw JSON; use a readable table per\nsection:",{"type":51,"tag":608,"props":873,"children":877},{"className":874,"code":876,"language":56,"meta":613},[875],"language-text","## Endpoints audit — 9 issues\n\n### 🔴 Failing materialisations (1)\n- weekly_revenue (v3) — Failed 2h ago, \"Column 'event_date' does not exist\"\n  → hand off to diagnosing-endpoint-performance\n\n### 🟠 Never called via API key (3)\n- internal_admin_query — created 5 months ago\n- legacy_signup_funnel — created 1 year ago, materialised\n- experiment_arm_lookup — created 9 months ago\n\n### 🟠 Unused materialised versions (2)  [from endpoint-versions]\n- monthly_active_users — v3 materialised, last_executed_at null (currently on v4 — unmaterialise v3)\n- order_summary — v1 materialised, last_executed_at null\n\n### 🟡 Stale (3)\n- holiday_promo_2024 — last called 4 months ago\n- ab_test_phase_1 — last called 2 months ago\n- daily_revenue_cohort — last called 45 days ago\n\nRecommended order:\n1. Investigate the failing materialisation (blocks fresh data)\n2. Unmaterialise the unused versions (free storage + compute)\n3. Disable the never-called endpoints (if user confirms)\n4. Review stale endpoints with the user\n",[878],{"type":51,"tag":78,"props":879,"children":880},{"__ignoreMap":613},[881],{"type":56,"value":876},{"type":51,"tag":59,"props":883,"children":884},{},[885],{"type":56,"value":886},"The exact format is less important than: prioritised, grouped, actionable, and hand-off\nclear.",{"type":51,"tag":582,"props":888,"children":890},{"id":889},"_5-offer-the-next-step",[891],{"type":56,"value":892},"5. Offer the next step",{"type":51,"tag":59,"props":894,"children":895},{},[896],{"type":56,"value":897},"End with a clear question, not a decision:",{"type":51,"tag":94,"props":899,"children":900},{},[901,920,937],{"type":51,"tag":98,"props":902,"children":903},{},[904,906,911,913,918],{"type":56,"value":905},"\"Want me to unmaterialise the unused versions?\" — needs ",{"type":51,"tag":78,"props":907,"children":909},{"className":908},[],[910],{"type":56,"value":276},{"type":56,"value":912}," with\n",{"type":51,"tag":78,"props":914,"children":916},{"className":915},[],[917],{"type":56,"value":295},{"type":56,"value":919}," per version",{"type":51,"tag":98,"props":921,"children":922},{},[923,925,930,932],{"type":56,"value":924},"\"Want me to disable the never-called endpoints?\" — needs ",{"type":51,"tag":78,"props":926,"children":928},{"className":927},[],[929],{"type":56,"value":276},{"type":56,"value":931}," with ",{"type":51,"tag":78,"props":933,"children":935},{"className":934},[],[936],{"type":56,"value":287},{"type":51,"tag":98,"props":938,"children":939},{},[940,942],{"type":56,"value":941},"\"Want me to dig into the failing materialisation?\" — hands off to\n",{"type":51,"tag":78,"props":943,"children":945},{"className":944},[],[946],{"type":56,"value":83},{"type":51,"tag":59,"props":948,"children":949},{},[950,955],{"type":51,"tag":65,"props":951,"children":952},{},[953],{"type":56,"value":954},"Never act from the audit alone.",{"type":56,"value":956}," Disabling or unmaterialising affects external API consumers;\nalways confirm before modifying.",{"type":51,"tag":87,"props":958,"children":960},{"id":959},"example-interaction",[961],{"type":56,"value":962},"Example interaction",{"type":51,"tag":608,"props":964,"children":967},{"className":965,"code":966,"language":56,"meta":613},[875],"User: \"Audit my endpoints\"\n\nAgent steps:\n- execute-sql on system.data_modeling_endpoints → 12 endpoints (4 materialised)\n- execute-sql on query_log grouped by name → 8 endpoints have calls\n- endpoint-materialization-status on each materialised endpoint → 1 failing\n- endpoint-versions on the materialised ones → order_summary v2's last_executed_at is null\n\n- Report:\n  \"Found 6 things worth looking at across 12 endpoints:\n\n   🔴 Failing materialisations (1)\n   - monthly_active_users (v2) — materialisation failed yesterday with\n     'memory limit exceeded'. The endpoint is still callable inline but\n     responses will be slower.\n\n   🟠 Never called via API key (3)\n   - legacy_funnel_v1 — created 11 months ago\n   - test_export — created 3 months ago\n   - admin_dump — created 8 months ago, materialised (wasteful)\n\n   🟠 Unused materialised versions (1)  [from endpoint-versions]\n   - order_summary v2 — materialised but its last_executed_at is null\n     while v3 is current. Likely safe to unmaterialise v2.\n\n   🟡 Stale (1)\n   - holiday_2024 — last called 5 months ago\n\n   Caveat: usage only counts personal-API-key calls; playground and\n   dashboard runs aren't counted. Per-version recency comes from\n   endpoint-versions and is sparse. Confirm before disabling.\n\n   Want me to start with the failing materialisation, or clean up the\n   unused version first?\"\n",[968],{"type":51,"tag":78,"props":969,"children":970},{"__ignoreMap":613},[971],{"type":56,"value":966},{"type":51,"tag":87,"props":973,"children":975},{"id":974},"important-notes",[976],{"type":56,"value":977},"Important notes",{"type":51,"tag":94,"props":979,"children":980},{},[981,991,1001,1046,1056,1079],{"type":51,"tag":98,"props":982,"children":983},{},[984,989],{"type":51,"tag":65,"props":985,"children":986},{},[987],{"type":56,"value":988},"The audit is read-only.",{"type":56,"value":990}," Never call destructive tools from this flow. Hand off or confirm\nbefore any modification.",{"type":51,"tag":98,"props":992,"children":993},{},[994,999],{"type":51,"tag":65,"props":995,"children":996},{},[997],{"type":56,"value":998},"Empty = healthy.",{"type":56,"value":1000}," Don't pad an empty report with theoretical issues. \"Nothing to clean up\"\nis a good answer.",{"type":51,"tag":98,"props":1002,"children":1003},{},[1004,1009,1011,1016,1018,1023,1025,1030,1032,1037,1039,1044],{"type":51,"tag":65,"props":1005,"children":1006},{},[1007],{"type":56,"value":1008},"Read with SQL, drill in with the version tool.",{"type":56,"value":1010}," ",{"type":51,"tag":78,"props":1012,"children":1014},{"className":1013},[],[1015],{"type":56,"value":217},{"type":56,"value":1017}," (metadata)\nand ",{"type":51,"tag":78,"props":1019,"children":1021},{"className":1020},[],[1022],{"type":56,"value":128},{"type":56,"value":1024}," (endpoint-level call counts, recency, cost) via ",{"type":51,"tag":78,"props":1026,"children":1028},{"className":1027},[],[1029],{"type":56,"value":136},{"type":56,"value":1031}," answer most of the\naudit. Per-version recency comes from ",{"type":51,"tag":78,"props":1033,"children":1035},{"className":1034},[],[1036],{"type":56,"value":144},{"type":56,"value":1038}," (each version's ",{"type":51,"tag":78,"props":1040,"children":1042},{"className":1041},[],[1043],{"type":56,"value":152},{"type":56,"value":1045},").",{"type":51,"tag":98,"props":1047,"children":1048},{},[1049,1054],{"type":51,"tag":65,"props":1050,"children":1051},{},[1052],{"type":56,"value":1053},"API-key-only scope.",{"type":56,"value":1055}," Usage only counts personal-API-key calls. An endpoint exercised only from\nthe Playground tab or the app will look unused. Always confirm before acting.",{"type":51,"tag":98,"props":1057,"children":1058},{},[1059,1064,1066,1071,1072,1077],{"type":51,"tag":65,"props":1060,"children":1061},{},[1062],{"type":56,"value":1063},"Materialisation costs storage and compute.",{"type":56,"value":1065}," When an endpoint no longer needs materialisation,\nthe cheapest fix is ",{"type":51,"tag":78,"props":1067,"children":1069},{"className":1068},[],[1070],{"type":56,"value":276},{"type":56,"value":931},{"type":51,"tag":78,"props":1073,"children":1075},{"className":1074},[],[1076],{"type":56,"value":295},{"type":56,"value":1078}," — not deleting the endpoint.",{"type":51,"tag":98,"props":1080,"children":1081},{},[1082,1087,1089,1094],{"type":51,"tag":65,"props":1083,"children":1084},{},[1085],{"type":56,"value":1086},"Inactive ≠ stale.",{"type":56,"value":1088}," An endpoint with ",{"type":51,"tag":78,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":56,"value":287},{"type":56,"value":1095}," was deliberately turned off. Don't\nrecommend deletion unless the user confirms it's truly abandoned.",{"type":51,"tag":1097,"props":1098,"children":1099},"style",{},[1100],{"type":56,"value":1101},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1103,"total":1198},[1104,1119,1125,1137,1150,1165,1181],{"slug":1105,"name":1105,"fn":1106,"description":1107,"org":1108,"tags":1109,"stars":20,"repoUrl":21,"updatedAt":1118},"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},[1110,1111,1114,1117],{"name":18,"slug":19,"type":13},{"name":1112,"slug":1113,"type":13},"Cost Optimization","cost-optimization",{"name":1115,"slug":1116,"type":13},"Observability","observability",{"name":9,"slug":8,"type":13},"2026-07-28T05:34:11.117757",{"slug":4,"name":4,"fn":5,"description":6,"org":1120,"tags":1121,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1122,1123,1124],{"name":18,"slug":19,"type":13},{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"slug":1126,"name":1126,"fn":1127,"description":1128,"org":1129,"tags":1130,"stars":20,"repoUrl":21,"updatedAt":1136},"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},[1131,1132,1134,1135],{"name":15,"slug":16,"type":13},{"name":1133,"slug":29,"type":13},"Data Warehouse",{"name":1115,"slug":1116,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:22:57.67984",{"slug":1138,"name":1138,"fn":1139,"description":1140,"org":1141,"tags":1142,"stars":20,"repoUrl":21,"updatedAt":1149},"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},[1143,1144,1145,1148],{"name":15,"slug":16,"type":13},{"name":1133,"slug":29,"type":13},{"name":1146,"slug":1147,"type":13},"Performance","performance",{"name":9,"slug":8,"type":13},"2026-06-18T08:25:10.936787",{"slug":1151,"name":1151,"fn":1152,"description":1153,"org":1154,"tags":1155,"stars":20,"repoUrl":21,"updatedAt":1164},"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},[1156,1159,1162,1163],{"name":1157,"slug":1158,"type":13},"Alerting","alerting",{"name":1160,"slug":1161,"type":13},"Debugging","debugging",{"name":1115,"slug":1116,"type":13},{"name":9,"slug":8,"type":13},"2026-06-18T08:24:40.318583",{"slug":1166,"name":1166,"fn":1167,"description":1168,"org":1169,"tags":1170,"stars":20,"repoUrl":21,"updatedAt":1180},"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},[1171,1172,1175,1176,1179],{"name":18,"slug":19,"type":13},{"name":1173,"slug":1174,"type":13},"Monitoring","monitoring",{"name":1115,"slug":1116,"type":13},{"name":1177,"slug":1178,"type":13},"Operations","operations",{"name":9,"slug":8,"type":13},"2026-07-18T05:10:54.430898",{"slug":1182,"name":1182,"fn":1183,"description":1184,"org":1185,"tags":1186,"stars":20,"repoUrl":21,"updatedAt":1197},"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},[1187,1190,1193,1194],{"name":1188,"slug":1189,"type":13},"Automation","automation",{"name":1191,"slug":1192,"type":13},"MCP","mcp",{"name":9,"slug":8,"type":13},{"name":1195,"slug":1196,"type":13},"Workflow Automation","workflow-automation","2026-07-28T05:34:12.167015",61,{"items":1200,"total":1317},[1201,1208,1214,1221,1228,1235,1243,1250,1264,1279,1289,1307],{"slug":1105,"name":1105,"fn":1106,"description":1107,"org":1202,"tags":1203,"stars":20,"repoUrl":21,"updatedAt":1118},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1204,1205,1206,1207],{"name":18,"slug":19,"type":13},{"name":1112,"slug":1113,"type":13},{"name":1115,"slug":1116,"type":13},{"name":9,"slug":8,"type":13},{"slug":4,"name":4,"fn":5,"description":6,"org":1209,"tags":1210,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1211,1212,1213],{"name":18,"slug":19,"type":13},{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"slug":1126,"name":1126,"fn":1127,"description":1128,"org":1215,"tags":1216,"stars":20,"repoUrl":21,"updatedAt":1136},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1217,1218,1219,1220],{"name":15,"slug":16,"type":13},{"name":1133,"slug":29,"type":13},{"name":1115,"slug":1116,"type":13},{"name":9,"slug":8,"type":13},{"slug":1138,"name":1138,"fn":1139,"description":1140,"org":1222,"tags":1223,"stars":20,"repoUrl":21,"updatedAt":1149},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1224,1225,1226,1227],{"name":15,"slug":16,"type":13},{"name":1133,"slug":29,"type":13},{"name":1146,"slug":1147,"type":13},{"name":9,"slug":8,"type":13},{"slug":1151,"name":1151,"fn":1152,"description":1153,"org":1229,"tags":1230,"stars":20,"repoUrl":21,"updatedAt":1164},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1231,1232,1233,1234],{"name":1157,"slug":1158,"type":13},{"name":1160,"slug":1161,"type":13},{"name":1115,"slug":1116,"type":13},{"name":9,"slug":8,"type":13},{"slug":1166,"name":1166,"fn":1167,"description":1168,"org":1236,"tags":1237,"stars":20,"repoUrl":21,"updatedAt":1180},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1238,1239,1240,1241,1242],{"name":18,"slug":19,"type":13},{"name":1173,"slug":1174,"type":13},{"name":1115,"slug":1116,"type":13},{"name":1177,"slug":1178,"type":13},{"name":9,"slug":8,"type":13},{"slug":1182,"name":1182,"fn":1183,"description":1184,"org":1244,"tags":1245,"stars":20,"repoUrl":21,"updatedAt":1197},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1246,1247,1248,1249],{"name":1188,"slug":1189,"type":13},{"name":1191,"slug":1192,"type":13},{"name":9,"slug":8,"type":13},{"name":1195,"slug":1196,"type":13},{"slug":1251,"name":1251,"fn":1252,"description":1253,"org":1254,"tags":1255,"stars":20,"repoUrl":21,"updatedAt":1263},"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},[1256,1257,1258,1261,1262],{"name":18,"slug":19,"type":13},{"name":1160,"slug":1161,"type":13},{"name":1259,"slug":1260,"type":13},"Frontend","frontend",{"name":1115,"slug":1116,"type":13},{"name":9,"slug":8,"type":13},"2026-05-07T05:56:19.828048",{"slug":1265,"name":1265,"fn":1266,"description":1267,"org":1268,"tags":1269,"stars":20,"repoUrl":21,"updatedAt":1278},"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},[1270,1273,1274,1275],{"name":1271,"slug":1272,"type":13},"API Development","api-development",{"name":1259,"slug":1260,"type":13},{"name":9,"slug":8,"type":13},{"name":1276,"slug":1277,"type":13},"SDK","sdk","2026-06-08T08:08:34.929454",{"slug":1280,"name":1280,"fn":1281,"description":1282,"org":1283,"tags":1284,"stars":20,"repoUrl":21,"updatedAt":1288},"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},[1285,1286,1287],{"name":1271,"slug":1272,"type":13},{"name":1177,"slug":1178,"type":13},{"name":9,"slug":8,"type":13},"2026-07-15T05:29:58.442727",{"slug":1290,"name":1290,"fn":1291,"description":1292,"org":1293,"tags":1294,"stars":20,"repoUrl":21,"updatedAt":1306},"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},[1295,1296,1299,1300,1303],{"name":1188,"slug":1189,"type":13},{"name":1297,"slug":1298,"type":13},"Email","email",{"name":9,"slug":8,"type":13},{"name":1301,"slug":1302,"type":13},"Reporting","reporting",{"name":1304,"slug":1305,"type":13},"Slack","slack","2026-06-09T07:32:27.935712",{"slug":1308,"name":1308,"fn":1309,"description":1310,"org":1311,"tags":1312,"stars":20,"repoUrl":21,"updatedAt":1316},"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},[1313,1314,1315],{"name":18,"slug":19,"type":13},{"name":1271,"slug":1272,"type":13},{"name":9,"slug":8,"type":13},"2026-06-08T08:08:29.624498",231]