Agent skill · posthog

creating-surveys

Creates and launches PostHog surveys through MCP, including NPS/CSAT popovers, hosted feedback forms, and headless surveys. Guides survey type selection, audience targeting, draft review, and launch readiness. Use when asked to create a survey or form, or before calling survey-create. For investigating an existing survey's delivery or responses, use debugging-surveys instead.

What it needs

About 4k tokens when loaded.

What this skill does

Creating surveys Create a useful draft from the user's goal, then verify its audience and delivery before launch. The workflow can run through MCP without opening the survey editor. Choose the delivery and questions Infer the name, purpose, and questions from the request. Ask only for missing information that changes who receives the survey or how it is delivered. User's goal Survey type Delivery requirement --------------------------------------- ----------------- ---------------------------------------------------- Feedback inside an app popover A supported PostHog SDK with surveys enabled Always-available feedback button widget SDK support and a widget configuration A shareable hosted form externalsurvey A hosted survey link; no in-app targeting A custom form built in application code api The app renders questions and captures survey events Prefer one to three questions unless the user requests more. Use a rating plus an optional open question for NPS/CSAT, or choice questions with at least two choices. Inspect the current tool schema for question types, scales, branching, and translations instead of guessing their JSON shapes. Minimal starting points are in examples. Survey names, questions, and appearance text are public content. Do not copy private customer details into them without making that visibility clear first. Verify the audience and appearance Use conditions for URL, event, device, and linked-flag-variant conditions. Resolve existing event and flag identifiers before using them. A URL condition does not define a person or cohort audience. Use targetingflagfilters.groups[].properties[] for person, group, or cohort targeting. Groups are alternative rules; properties within a group must all match. Preserve the intended audience when translating the request. Cohorts containing behavioral filters cannot be used directly for survey targeting. Explain the restriction and offer a supported static snapshot or another equivalent audience definition. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills posthog/creating-surveys

View the source on GitHub

Browse the @skills marketplace