debugging-surveys
O que ela faz
Esta skill diagnostica problemas de pesquisa, como uma pesquisa que não aparece ou respostas que somem, em apps web e mobile. É para desenvolvedores e equipes de suporte que encontram problemas com pesquisas.
Quando usar
- ✓Quando uma pesquisa não aparece para os usuários que deveriam vê-la.
- ✓Quando uma pesquisa tem menos respostas do que o esperado, ou algumas respostas estão faltando.
- ✓Quando apenas parte de uma pesquisa foi respondida, ou uma pesquisa aparece na plataforma errada.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/surveys/skills/debugging-surveys/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Por que minha pesquisa dentro do app não aparece para os usuários que deveriam vê-la?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela verifica se cada usuário atende às regras de elegibilidade da pesquisa, como a segmentação e os recursos suportados pela plataforma. A maioria dos problemas são bloqueios de elegibilidade, e não bugs de exibição, então ela descobre qual bloqueio falhou e por quê.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Debugging surveys
PostHog Surveys is a no-code in-app form builder. A customer creates a survey in the PostHog UI; it must then be evaluated and rendered by whichever SDK their app runs. Most "survey not showing" tickets are eligibility problems, not rendering bugs — the SDK correctly decided the user is not eligible, and the job is to find which gate failed and why.
Access requirements
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)
A large class of tickets is "customer expects a feature their platform doesn't support."
Confirm the survey's lib / the customer's platform before anything else, then consult
this table. Verified against the SDK source — re-verify if it's been months, the gaps
get filled over time.
| Feature | Web (posthog-js) | iOS | Android | Flutter | React Native |
|---|---|---|---|---|---|
| Rendering | DOM + shadow root | Native SwiftUI (SurveysWindow) |
No built-in UI — delegate only | Dart widgets (SurveyBottomSheet) |
RN components (SurveyModal) |
| Event-based triggers | yes (since 1.137.0, 2024-06-05) | yes | yes | yes (native side) | yes |
| URL / screen targeting | yes | decoded but NOT evaluated (// TODO) |
decoded but NOT evaluated | NOT evaluated (native gap) | explicitly excluded in filter |
| Feature-flag / cohort targeting | yes | yes | yes | yes (native side) | yes |
seenSurveyWaitPeriodInDays |
yes | yes | yes | yes (native side) | yes (≥ 4.81.5) |
surveyPopupDelaySeconds |
yes | not implemented | not implemented | not implemented | not implemented (TODO) |
enable_partial_responses |
yes (≥ 1.240.0) | no | no | no | no |
skipSubmitButton (auto-submit) |
yes (≥ 1.244.0) | no | no | no | no |
The last two rows are per the editor's own help text ("Doesn't work with the mobile SDKs for now" / "Not available for the mobile SDKs at the moment") rather than a per-SDK source audit.
Consequences worth memorizing:
surveyPopupDelaySecondsis web-only. If a mobile ticket blames the delay, it's a red herring.- Partial responses and auto-submit are web-only too. On mobile a survey always stores one response at the end, and a rating tap never self-submits. Don't carry a web diagnosis onto a mobile ticket.
- URL targeting is effectively web-only. Mobile SDKs decode the field but never enforce it; React Native filters those surveys out entirely. A mobile survey with a URL condition behaves as "no URL condition" (mobile/flutter) or "never shows" (RN).
- Android ships no survey UI. The app (or the Flutter plugin) must provide a
PostHogSurveysDelegate. "Survey never renders on Android" is often a missing delegate, not a PostHog bug. - Flutter is hybrid: triggering/eligibility runs in the native iOS/Android layer; rendering is Dart (
SurveyService.showSurvey→showModalBottomSheet). It does not "just call native" for UI. So a Flutter rendering bug lives in Dart; a Flutter eligibility bug lives in native. - React Native enforces the wait period from 4.81.5. Older versions skip the check, s
Perguntas frequentes
Por que uma pesquisa muitas vezes não é mostrada?
Normalmente o SDK decidiu que o usuário não é elegível, como quando uma regra de segmentação não é atendida, e não por um bug de exibição.
Todas as plataformas suportam os mesmos recursos de pesquisa?
Não. A skill inclui uma tabela de recursos por plataforma, para web, iOS, Android, Flutter e React Native.
Ela precisa do código-fonte do app?
Não. Ela usa as ferramentas do PostHog e a API de pesquisas para verificar a configuração e as respostas.
Detalhes
Descrição original do autor
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"), 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), cros
repo: PostHog/posthog
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6959
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.