Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(skills): move repo-only skills to .agents and document the split (#95012)

Georgiy Tarasovc355da2b3b9f
diff --git a/products/replay/skills/debugging-local-replay/SKILL.md b/.agents/skills/debugging-local-replay/SKILL.md
similarity index 100%
rename from products/replay/skills/debugging-local-replay/SKILL.md
rename to .agents/skills/debugging-local-replay/SKILL.md
diff --git a/products/replay/skills/debugging-local-replay/references/common-failures.md b/.agents/skills/debugging-local-replay/references/common-failures.md
similarity index 100%
rename from products/replay/skills/debugging-local-replay/references/common-failures.md
rename to .agents/skills/debugging-local-replay/references/common-failures.md
diff --git a/products/mcp_analytics/skills/debugging-mcp-analytics/SKILL.md b/.agents/skills/debugging-mcp-analytics/SKILL.md
similarity index 98%
rename from products/mcp_analytics/skills/debugging-mcp-analytics/SKILL.md
rename to .agents/skills/debugging-mcp-analytics/SKILL.md
index 30dee085c50d..9595047dda60 100644
--- a/products/mcp_analytics/skills/debugging-mcp-analytics/SKILL.md
+++ b/.agents/skills/debugging-mcp-analytics/SKILL.md
@@ -42,7 +42,7 @@ repos outside this monorepo, resolve a local checkout via
| --------------------------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Product / dashboard** | `PostHog/posthog` (this repo) | `products/mcp_analytics/` — Django/DRF + HogQL query runners + Temporal, Kea frontend, the `query-mcp-*` tool registry, and the analysis skills |
| **Self-instrumented server** | `PostHog/posthog` (this repo) | `services/mcp/` — PostHog's own MCP server (Hono); the dogfood event producer. Also hosts the _generated_ `query-mcp-*` handlers |
-| **Shared query reference** | `PostHog/posthog` (this repo) | [`models-mcp.md`](../../../posthog_ai/skills/querying-posthog-data/references/models-mcp.md) — `products/posthog_ai/skills/querying-posthog-data/references/` |
+| **Shared query reference** | `PostHog/posthog` (this repo) | [`models-mcp.md`](../../../products/posthog_ai/skills/querying-posthog-data/references/models-mcp.md) — `products/posthog_ai/skills/querying-posthog-data/references/` |
| **TypeScript SDK** `@posthog/mcp` | `PostHog/posthog-js` | `packages/mcp/` — the library customers install. Vocabulary source of truth: `src/extensions/constants.ts`. `docs/ARCHITECTURE.md` now covers conversation anchoring (ADR-0004) but trails the newest era handling — where it and `CHANGELOG.md` disagree, trust the changelog and the source |
| **Python SDK** `posthog.mcp` | `PostHog/posthog-python` | `posthog/mcp/` — mirrors `posthog.ai`. Ships inside `posthog` (`pip install posthog`); `mcp`/`fastmcp` are lazily-imported peer deps, **no `[mcp]` extra**. At TS parity since 7.40.0-7.42.1 — MCP Python SDK v2, conversation anchoring, typed errors, client UA/vendor |
| **Docs** | `PostHog/posthog.com` | `contents/docs/mcp-analytics/` (incl. `surfaces/`), plus `src/hooks/productData/mcp_analytics.tsx` and the `mcp_analytics` entry in `src/data/tools.ts` |
@@ -91,7 +91,7 @@ These are the failure modes that produce a plausible-looking answer rather than
4. **`harness` is derived, and its logic exists in three places that must move in lockstep:**
`products/mcp_analytics/backend/mcp_harness.py` (source of truth — see its module
docstring), `products/mcp_analytics/frontend/dashboard/harnessRegistry.ts`, and
- [`models-mcp.md`](../../../posthog_ai/skills/querying-posthog-data/references/models-mcp.md).
+ [`models-mcp.md`](../../../products/posthog_ai/skills/querying-posthog-data/references/models-mcp.md).
5. **Check which SDK version the dogfood server is on before trusting dogfood data.**
`services/mcp` consumes the SDK through an alias in its `package.json` and has historically
lagged the published version, so version-dependent properties (typed error types, `$lib`
@@ -188,7 +188,7 @@ session's `initialize`, and Anthropic's pooled surfaces self-report a generic
resolution — the server folds the session-pinned name into per-event `$mcp_client_name`,
and neither property ever resolved an event alone.
-For hand-written SQL, [`models-mcp.md`](../../../posthog_ai/skills/querying-posthog-data/references/models-mcp.md)
+For hand-written SQL, [`models-mcp.md`](../../../products/posthog_ai/skills/querying-posthog-data/references/models-mcp.md)
carries the property reference and worked query examples.
## The pipeline, and where each stage breaks
diff --git a/products/mcp_analytics/skills/debugging-mcp-analytics/references/event-vocabulary.md b/.agents/skills/debugging-mcp-analytics/references/event-vocabulary.md
similarity index 100%
rename from products/mcp_analytics/skills/debugging-mcp-analytics/references/event-vocabulary.md
rename to .agents/skills/debugging-mcp-analytics/references/event-vocabulary.md
diff --git a/products/mcp_analytics/skills/debugging-mcp-analytics/references/local-repos.md b/.agents/skills/debugging-mcp-analytics/references/local-repos.md
similarity index 100%
rename from products/mcp_analytics/skills/debugging-mcp-analytics/references/local-repos.md
rename to .agents/skills/debugging-mcp-analytics/references/local-repos.md
diff --git a/products/mcp_analytics/skills/debugging-mcp-analytics/references/stateless-and-sessions.md b/.agents/skills/debugging-mcp-analytics/references/stateless-and-sessions.md
similarity index 100%
rename from products/mcp_analytics/skills/debugging-mcp-analytics/references/stateless-and-sessions.md
rename to .agents/skills/debugging-mcp-analytics/references/stateless-and-sessions.md
diff --git a/products/mcp_analytics/skills/debugging-mcp-analytics/references/wizard-and-onboarding.md b/.agents/skills/debugging-mcp-analytics/references/wizard-and-onboarding.md
similarity index 99%
rename from products/mcp_analytics/skills/debugging-mcp-analytics/references/wizard-and-onboarding.md
rename to .agents/skills/debugging-mcp-analytics/references/wizard-and-onboarding.md
index e4294864459a..bfbba5346962 100644
--- a/products/mcp_analytics/skills/debugging-mcp-analytics/references/wizard-and-onboarding.md
+++ b/.agents/skills/debugging-mcp-analytics/references/wizard-and-onboarding.md
@@ -116,7 +116,7 @@ Do not confuse these; they have different audiences and different release mechan
Consumed by PostHog Desktop and PostHog AI. **Not** by `posthog-cli` — that is channel 2.
Two lookalikes are **not** MCP-analytics skills:
-`products/managed_migrations/skills/testing-mcp-tools-locally/` and
+`.agents/skills/testing-mcp-tools-locally/` and
`.agents/skills/implementing-mcp-tools/`. Both concern building and testing PostHog's own MCP
server tools, not analyzing MCP usage.
diff --git a/products/signals/skills/debugging-signals-pipeline/SKILL.md b/.agents/skills/debugging-signals-pipeline/SKILL.md
similarity index 100%
rename from products/signals/skills/debugging-signals-pipeline/SKILL.md
rename to .agents/skills/debugging-signals-pipeline/SKILL.md
diff --git a/products/mcp_analytics/skills/improving-mcp-tools/SKILL.md b/.agents/skills/improving-mcp-tools/SKILL.md
similarity index 98%
rename from products/mcp_analytics/skills/improving-mcp-tools/SKILL.md
rename to .agents/skills/improving-mcp-tools/SKILL.md
index cb71204fbddf..b4ee9b7afa4a 100644
--- a/products/mcp_analytics/skills/improving-mcp-tools/SKILL.md
+++ b/.agents/skills/improving-mcp-tools/SKILL.md
@@ -94,7 +94,7 @@ These are not suggestions; violating any of them ends the campaign pass.
- A description change that helps one intent can steal traffic from the right
tool for another — that's why the no-regression sample is mandatory. The
intent-cluster snapshot's `tool_overlaps` (see
- [`exploring-mcp-intent-clusters`](../exploring-mcp-intent-clusters/SKILL.md))
+ [`exploring-mcp-intent-clusters`](../../../products/mcp_analytics/skills/exploring-mcp-intent-clusters/SKILL.md))
lists exactly which pairs compete for which intents: snapshot it before a
description rewrite and recompute after, and treat a capture shift in an
overlapping pair as the regression signal.
diff --git a/products/mcp_analytics/skills/improving-mcp-tools/references/campaign-journal.md b/.agents/skills/improving-mcp-tools/references/campaign-journal.md
similarity index 100%
rename from products/mcp_analytics/skills/improving-mcp-tools/references/campaign-journal.md
rename to .agents/skills/improving-mcp-tools/references/campaign-journal.md
diff --git a/products/conversations/skills/organizing-conversations-code/SKILL.md b/.agents/skills/organizing-conversations-code/SKILL.md
similarity index 95%
rename from products/conversations/skills/organizing-conversations-code/SKILL.md
rename to .agents/skills/organizing-conversations-code/SKILL.md
index 85a7b6df8a79..f4bc527bdec0 100644
--- a/products/conversations/skills/organizing-conversations-code/SKILL.md
+++ b/.agents/skills/organizing-conversations-code/SKILL.md
@@ -11,7 +11,7 @@ description: >
# Organizing conversations code
Conversations-specific layout. Repo-wide UI rules still apply — read
-[writing-ui-components](../../../../.agents/skills/writing-ui-components/SKILL.md) for
+[writing-ui-components](../writing-ui-components/SKILL.md) for
one-component-per-file, no barrels, and import sweeps. This skill owns _where in
conversations_ a file goes.
diff --git a/products/conversations/skills/setting-up-support-slack-locally/SKILL.md b/.agents/skills/setting-up-support-slack-locally/SKILL.md
similarity index 98%
rename from products/conversations/skills/setting-up-support-slack-locally/SKILL.md
rename to .agents/skills/setting-up-support-slack-locally/SKILL.md
index b2979941e54a..6d0fa01a7c1e 100644
--- a/products/conversations/skills/setting-up-support-slack-locally/SKILL.md
+++ b/.agents/skills/setting-up-support-slack-locally/SKILL.md
@@ -25,7 +25,7 @@ at the tunnel. This also sidesteps free-tier tunnel rate limits, since the tunne
low-volume event POSTs rather than the entire SPA.
This is the conversations/SupportHog variant of the general
-[Slack local setup guide](../../../../docs/internal/slack-local-setup-guide.md); that guide covers the
+[Slack local setup guide](../../../docs/internal/slack-local-setup-guide.md); that guide covers the
PostHog Desktop / notifications Slack app (`SLACK_APP_*`, `/integrations/slack/callback`). Conversations uses
its own `SUPPORT_SLACK_*` credentials and `/api/conversations/v1/slack/*` routes, but the tunnel and
`SITE_URL` mechanics are identical.
diff --git a/products/conversations/skills/setting-up-support-slack-locally/references/troubleshooting.md b/.agents/skills/setting-up-support-slack-locally/references/troubleshooting.md
similarity index 100%
rename from products/conversations/skills/setting-up-support-slack-locally/references/troubleshooting.md
rename to .agents/skills/setting-up-support-slack-locally/references/troubleshooting.md
diff --git a/.agents/skills/survey-sdk-audit/SKILL.md b/.agents/skills/survey-sdk-audit/SKILL.md
index 1d5d4854b768..8077f99822aa 100644
--- a/.agents/skills/survey-sdk-audit/SKILL.md
+++ b/.agents/skills/survey-sdk-audit/SKILL.md
@@ -1,6 +1,6 @@
---
name: survey-sdk-audit
-description: Audit PostHog survey SDK features and version requirements
+description: Audit PostHog survey SDK features and version requirements, and implement survey changes across the backend, UI, and SDK repositories.
---
# Surveys SDK Feature Audit Skill
@@ -9,6 +9,9 @@ Use this skill when auditing survey feature support across PostHog SDKs for `sur
**Feature to audit:** $ARGUMENTS
+For survey feature work, read [Contributing survey changes](references/contributing-surveys.md).
+For customer diagnosis without a repository checkout, use the published `debugging-surveys` skill.
+
## Setup Check (Run First)
Before starting, verify the SDK paths are accessible. Run `ls` on each path:
diff --git a/.agents/skills/survey-sdk-audit/references/contributing-surveys.md b/.agents/skills/survey-sdk-audit/references/contributing-surveys.md
new file mode 100644
index 000000000000..75b1ab6bffcc
--- /dev/null
+++ b/.agents/skills/survey-sdk-audit/references/contributing-surveys.md
@@ -0,0 +1,35 @@
+# Contributing survey changes
+
+Use this guide when a survey change needs work in the PostHog repository or SDK source.
+For configuration and response diagnosis, use the published `debugging-surveys` skill.
+
+## Repository setup
+
+Use the [local repo registry](local-repos.md) to find and reuse checkouts.
+Run the commands from the `survey-sdk-audit` skill directory:
+
+```sh
+python3 scripts/repos.py init
+python3 scripts/repos.py ensure posthog-js
+```
+
+| Concern | Repo | Where to look |
+| -------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
+| Product UI + backend | this monorepo (PostHog/posthog) | UI: `frontend/src/scenes/surveys/`, backend: `products/surveys/backend/` |
+| Web SDK | [PostHog/posthog-js](https://github.com/PostHog/posthog-js) | `packages/browser/` |
+| React Native SDK | [PostHog/posthog-js](https://github.com/PostHog/posthog-js) (same monorepo) | `packages/react-native/` |
+| iOS SDK | [PostHog/posthog-ios](https://github.com/PostHog/posthog-ios) | survey rendering + eligibility |
+| Android SDK | [PostHog/posthog-android](https://github.com/PostHog/posthog-android) | eligibility (delegate-based UI) |
+| Flutter SDK | [PostHog/posthog-flutter](https://github.com/PostHog/posthog-flutter) | Dart rendering; native iOS/Android handles eligibility |
+| Public docs | [PostHog/posthog.com](https://github.com/PostHog/posthog.com) | `contents/docs/surveys/` |
+
+Check the branch before you change a repository.
+Search for symbols instead of using stored line numbers.
+
+## Implementation
+
+1. Make the backend and UI changes in the PostHog repository.
+2. Decide which SDKs support the feature. State any platform limits in the documentation and PR.
+3. Implement the SDK changes. Web and React Native share `posthog-js`. Flutter uses native eligibility logic and Dart rendering.
+4. Update the public survey documentation and the feature parity table in the published `debugging-surveys` skill.
+5. Follow the SDK audit in the parent skill to check version requirements and coverage.
diff --git a/products/surveys/skills/debugging-surveys/references/local-repos.md b/.agents/skills/survey-sdk-audit/references/local-repos.md
similarity index 93%
rename from products/surveys/skills/debugging-surveys/references/local-repos.md
rename to .agents/skills/survey-sdk-audit/references/local-repos.md
index 758512547191..119857f344a4 100644
--- a/products/surveys/skills/debugging-surveys/references/local-repos.md
+++ b/.agents/skills/survey-sdk-audit/references/local-repos.md
@@ -5,8 +5,8 @@ Surveys spans several repos (the monorepo plus `posthog-js`, `posthog-ios`,
clones in different places. This registry records where each maintainer's checkouts live so
a repo is found once and reused — no re-cloning every session.
-GitHub stays the source of truth for _where the code lives_ (see the Repos table in
-SKILL.md). The registry is purely a local cache of _where this maintainer cloned it_.
+GitHub is the source of truth for where the code lives (see the repository table in
+[Contributing survey changes](contributing-surveys.md)). The registry is purely a local cache of _where this maintainer cloned it_.
## The registry file
diff --git a/products/surveys/skills/debugging-surveys/scripts/repos.py b/.agents/skills/survey-sdk-audit/scripts/repos.py
old mode 100755
new mode 100644
similarity index 98%
rename from products/surveys/skills/debugging-surveys/scripts/repos.py
rename to .agents/skills/survey-sdk-audit/scripts/repos.py
index f5a6e7393c2f..169adfba1657
--- a/products/surveys/skills/debugging-surveys/scripts/repos.py
+++ b/.agents/skills/survey-sdk-audit/scripts/repos.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
+# ruff: noqa: T201 allow CLI output
"""Resolve and remember local checkouts of the PostHog repos that Surveys spans.
GitHub is the source of truth for where the code lives; this script is a per-maintainer
@@ -26,12 +27,12 @@ posthog.com (keys match GitHub repo names; web + React Native both live in posth
from __future__ import annotations
-import argparse
-import json
import os
import re
-import subprocess
import sys
+import json
+import argparse
+import subprocess
from pathlib import Path
REGISTRY = Path.home() / ".config" / "posthog-surveys" / "repos.json"
@@ -45,6 +46,7 @@ KNOWN_REPOS = {
"posthog.com",
}
+
# Roots to scan for existing checkouts, in priority order. Kept to conventional code homes
# rather than all of $HOME so the walk stays fast and avoids Library/Application noise.
def _scan_roots() -> list[Path]:
@@ -124,7 +126,7 @@ def repo_key_for_origin(url: str) -> str | None:
def is_repo_checkout(path: Path, repo: str) -> bool:
"""Strict: a directory is the repo only if its git origin proves it. No name-based
fallback — a folder merely named `posthog-js` is not trusted as the real checkout."""
- return path.is_dir() and bool((url := origin_url(path))) and repo_key_for_origin(url) == repo
+ return path.is_dir() and bool(url := origin_url(path)) and repo_key_for_origin(url) == repo
def discover(wanted: set[str] | None = None) -> dict[str, list[Path]]:
diff --git a/products/managed_migrations/skills/testing-mcp-tools-locally/SKILL.md b/.agents/skills/testing-mcp-tools-locally/SKILL.md
similarity index 99%
rename from products/managed_migrations/skills/testing-mcp-tools-locally/SKILL.md
rename to .agents/skills/testing-mcp-tools-locally/SKILL.md
index 0295c0da4ee0..59ffa9824819 100644
--- a/products/managed_migrations/skills/testing-mcp-tools-locally/SKILL.md
+++ b/.agents/skills/testing-mcp-tools-locally/SKILL.md
@@ -22,7 +22,7 @@ The batch import support API and MCP tools require:
Why both scopes: the backend accepts `batch_import_support:read` alone,
but MCP tool discovery verifies staffness via `/api/users/@me/` and hides the tools (fail-closed) when the key cannot make that call.
A `*` wildcard does **not** substitute for either — the discovery gate requires the hidden scope explicitly, and the backend's `INTERNAL` scope handling rejects wildcard keys outright.
-For the production setup flow, see [docs/support-mcp-tools.md](../../docs/support-mcp-tools.md).
+For the production setup flow, see [docs/support-mcp-tools.md](../../../products/managed_migrations/docs/support-mcp-tools.md).
## 1. Start the dev environment
diff --git a/products/managed_migrations/skills/testing-mcp-tools-locally/references/seed-data.md b/.agents/skills/testing-mcp-tools-locally/references/seed-data.md
similarity index 100%
rename from products/managed_migrations/skills/testing-mcp-tools-locally/references/seed-data.md
rename to .agents/skills/testing-mcp-tools-locally/references/seed-data.md
diff --git a/.agents/skills/writing-skills/SKILL.md b/.agents/skills/writing-skills/SKILL.md
index 0d8383aa526f..20f396811f0c 100644
--- a/.agents/skills/writing-skills/SKILL.md
+++ b/.agents/skills/writing-skills/SKILL.md
@@ -1,12 +1,22 @@
---
name: writing-skills
-description: 'Guide for writing PostHog agent skills — job-to-be-done templates that teach agents how to use MCP tools to achieve a goal. Use when adding new product functionality that agents should know how to work with, creating a new skill, or updating existing skills in products/*/skills/.'
+description: 'Guide for writing PostHog agent skills — job-to-be-done templates that teach agents how to use MCP tools to achieve a goal. Use when adding new product functionality that agents should know how to work with, creating a new skill, or updating existing skills in products/*/skills/ or .agents/skills/.'
---
# Writing skills for PostHog agents
Read the full guide at [docs/published/handbook/engineering/ai/writing-skills.md](../../../docs/published/handbook/engineering/ai/writing-skills.md).
+## Choose a location
+
+- Use `products/<product>/skills/` for work through PostHog tools, APIs, or customer code. These skills are published.
+- Use `.agents/skills/` for work that requires a checkout of the PostHog repository. These skills stay in the repository.
+- Staff-only access is not a reason to move a skill. An MCP workflow without a checkout stays published.
+- For mixed skills, keep customer diagnosis published and move PostHog development steps into an existing internal skill or reference.
+- Published workflows must not depend on internal skill files.
+
+`hogli lint:skills` checks both locations. The scaffold, build, and sync commands below apply to published product skills.
+
## Quick workflow
```sh
diff --git a/docs/published/handbook/engineering/ai/writing-skills.md b/docs/published/handbook/engineering/ai/writing-skills.md
index 2765c8c22a59..7343a7019290 100644
--- a/docs/published/handbook/engineering/ai/writing-skills.md
+++ b/docs/published/handbook/engineering/ai/writing-skills.md
@@ -39,6 +39,25 @@ hogli unsync:skill -- --name <skill-name>
# 7. Merge to master – CI builds and distributes automatically
```
+## Where the skill lives
+
+Choose the location by the work the skill requires:
+
+- `products/<product>/skills/` contains skills that users can run through PostHog tools, APIs, or their own code. The build publishes these skills.
+- `.agents/skills/` contains skills that require a checkout of the PostHog repository to develop, test, or debug PostHog itself. These skills stay in the repository.
+
+Staff-only access does not determine placement.
+For example, `checking-deploy-timing` works through MCP without a checkout, so it stays in the published catalog.
+A skill that changes a customer's application also stays published; it does not require PostHog source code.
+
+If a skill mixes customer diagnosis with PostHog development, keep the diagnosis published and move the development guidance into an existing internal skill or reference.
+For example, `debugging-surveys` covers configuration and responses, while the internal `survey-sdk-audit` skill covers changes across the backend and SDKs.
+Published skills must not require internal skill files to complete their main workflow.
+
+`hogli init:skill` scaffolds published product skills.
+For internal guidance, extend an existing `.agents/skills/` entry where possible.
+Both locations use `SKILL.md` with `name` and `description` frontmatter, and `hogli lint:skills` checks both.
+
## Skills vs tools
**Tools** are atomic capabilities – CRUD operations and simple actions exposed via the MCP server.
@@ -94,7 +113,7 @@ and helps agents resolve tool names unambiguously.
## Skill structure
-Skills live in `products/*/skills/` and come in two forms.
+Published skills live in `products/*/skills/` and come in two forms.
If your product hasn't moved to the `products/` folder yet,
create a product folder and add skills there –
skills are designed to work from within the products folder structure.
diff --git a/products/managed_migrations/docs/support-mcp-tools.md b/products/managed_migrations/docs/support-mcp-tools.md
index 14dd257cd2d3..64222c535da2 100644
--- a/products/managed_migrations/docs/support-mcp-tools.md
+++ b/products/managed_migrations/docs/support-mcp-tools.md
@@ -102,4 +102,4 @@ The MCP-side filtering is presentation, not security: it exists so staff-only to
The security boundary is the Django endpoint (`/api/managed_migrations_support/`), which requires an authenticated staff user plus the explicit scope, rejects wildcard keys, and audit-logs every read.
See `products/managed_migrations/backend/api/support_batch_imports.py` and `services/mcp/src/lib/staff-only-tools.ts`.
-For testing changes to any of this locally, use the [testing-mcp-tools-locally](../skills/testing-mcp-tools-locally/SKILL.md) skill.
+For testing changes to any of this locally, use the [testing-mcp-tools-locally](../../../.agents/skills/testing-mcp-tools-locally/SKILL.md) skill.
diff --git a/products/mcp_analytics/backend/mcp_harness.py b/products/mcp_analytics/backend/mcp_harness.py
index 96cb31ba24c3..4d57a1e43fa0 100644
--- a/products/mcp_analytics/backend/mcp_harness.py
+++ b/products/mcp_analytics/backend/mcp_harness.py
@@ -25,7 +25,7 @@ longer classifies — `products/mcp_analytics/frontend/dashboard/harnessRegistry
only a label-to-logo/colour map (`HARNESS_BY_LABEL`), keyed by the labels this module
emits, and a cross-language test pins those keys to `HARNESS_LABELS`. Two documented
copies must move in lockstep: the query in the `querying-posthog-data` skill's
-`models-mcp.md`, and the vocabulary table in this product's `debugging-mcp-analytics`
+`models-mcp.md`, and the vocabulary table in `.agents/skills/debugging-mcp-analytics/`
skill.
Because the token appears many times in the bucketing `multiIf`, callers compute
diff --git a/products/mcp_analytics/skills/exploring-mcp-tool-original-user-motive/SKILL.md b/products/mcp_analytics/skills/exploring-mcp-tool-original-user-motive/SKILL.md
index 847269b74383..99f3a916ca66 100644
--- a/products/mcp_analytics/skills/exploring-mcp-tool-original-user-motive/SKILL.md
+++ b/products/mcp_analytics/skills/exploring-mcp-tool-original-user-motive/SKILL.md
@@ -451,4 +451,4 @@ If you cannot establish consent for the organizations in a corpus, label the goa
- [`exploring-mcp-intent-clusters`](../exploring-mcp-intent-clusters/SKILL.md) — per-call intent clusters, tool routing, discoverability
- [`exploring-mcp-sessions`](../exploring-mcp-sessions/SKILL.md) — the individual sessions behind a cluster
- [`exploring-mcp-tool-quality`](../exploring-mcp-tool-quality/SKILL.md) — per-tool error rates and latency
-- [`improving-mcp-tools`](../improving-mcp-tools/SKILL.md) — acting on what the taxonomy shows
+- For changes to PostHog MCP source code, use the internal `improving-mcp-tools` skill if you have a PostHog repository checkout.
diff --git a/products/surveys/skills/debugging-surveys/SKILL.md b/products/surveys/skills/debugging-surveys/SKILL.md
index 1d302e5435c5..1e2f8d907d49 100644
--- a/products/surveys/skills/debugging-surveys/SKILL.md
+++ b/products/surveys/skills/debugging-surveys/SKILL.md
@@ -1,13 +1,12 @@
---
name: debugging-surveys
description: >-
- Debug, support, and build PostHog Surveys across the backend and all five SDKs
+ Diagnose PostHog Surveys configuration and responses across all five SDKs
(web/posthog-js, iOS, Android, Flutter, React Native). Use whenever a Surveys
support ticket is pasted ("survey not showing", "fewer responses than expected",
"responses disappeared", "responses are incomplete", "only the first question was
answered", "the user says they didn't mean to submit", "survey shows on wrong platform"),
- when diagnosing why a survey does or doesn't display, or when doing survey feature work
- that must ship across SDKs. Covers the eligibility pipeline, how a response actually gets
+ or when diagnosing why a survey does or doesn't display. Covers the eligibility pipeline, how a response actually gets
stored (partial responses, branching, optional questions, auto-submit), cross-SDK feature
parity, the known-cause catalog, read-only diagnostic queries, staff access, and the
customer-reply style guide.
@@ -21,27 +20,10 @@ PostHog UI; it must then be evaluated and rendered by whichever SDK their app ru
SDK correctly decided the user is not eligible, and the job is to find _which_ gate
failed and _why_.
-## Repos
+## Access requirements
-GitHub is the source of truth for where the code lives. When you need to read or change SDK
-source, resolve a local checkout via the registry described in
-[references/local-repos.md](references/local-repos.md) so a clone is found once and reused —
-don't re-clone every session. First time on a machine, run `python3 scripts/repos.py init`
-to auto-discover existing checkouts; thereafter `python3 scripts/repos.py ensure <repo>`
-prints the path (and `--clone` clones if missing).
-
-| Concern | Repo | Where to look |
-| -------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
-| Product UI + backend | this monorepo (PostHog/posthog) | UI: `frontend/src/scenes/surveys/`, backend: `products/surveys/backend/` |
-| Web SDK | [PostHog/posthog-js](https://github.com/PostHog/posthog-js) | `packages/browser/` |
-| React Native SDK | [PostHog/posthog-js](https://github.com/PostHog/posthog-js) (same monorepo) | `packages/react-native/` |
-| iOS SDK | [PostHog/posthog-ios](https://github.com/PostHog/posthog-ios) | survey rendering + eligibility |
-| Android SDK | [PostHog/posthog-android](https://github.com/PostHog/posthog-android) | eligibility (delegate-based UI) |
-| Flutter SDK | [PostHog/posthog-flutter](https://github.com/PostHog/posthog-flutter) | Dart rendering; native iOS/Android handles eligibility |
-| Public docs | [PostHog/posthog.com](https://github.com/PostHog/posthog.com) | `contents/docs/surveys/` |
-
-Always check the local checkout is present and on a sane branch before quoting code; line
-numbers drift, so grep for the symbol rather than trusting a remembered line number.
+Use PostHog MCP tools or the survey API to inspect survey configuration and responses.
+A checkout of the PostHog repository is not required for these diagnostic steps.
## Cross-SDK feature parity (check this FIRST)
@@ -315,19 +297,3 @@ Hi <name>,
We're always here if you need a follow-up.
```
-
-## Feature work — shipping across SDKs
-
-A survey capability is only "done" when it works (or is deliberately scoped out) on every
-SDK a customer might use. When building or changing survey behavior:
-
-1. Land the backend/UI change in this repo (serializer + `frontend/src/scenes/surveys/`).
-2. Decide the per-SDK story using the parity table. If a feature lands web-only (like
- `surveyPopupDelaySeconds`), say so explicitly in the docs and the PR — silent gaps
- become support tickets.
-3. Implement in the SDK repos (`posthog-js` covers both web and React Native), then
- `posthog-ios`, `posthog-android`, and the Flutter Dart layer. Remember Flutter's split:
- eligibility/trigger logic is native (iOS/Android), rendering is Dart. Use the registry
- in [references/local-repos.md](references/local-repos.md) to find each checkout.
-4. Update the `posthog.com` docs (`contents/docs/surveys/`) and this parity table.
-5. Use the `survey-sdk-audit` skill (if available) to confirm version requirements and cross-SDK coverage.