creating-surveys
What it does
This skill creates a PostHog survey, from choosing whether it appears in your app or as a hosted form, to picking the audience and questions. It is for product and research teams who want to collect feedback from users.
When to use it
- ✓When you want to collect feedback from users with a survey or form.
- ✓When you want an NPS or satisfaction survey shown inside your app.
- ✓When you want a shareable hosted feedback form.
Skill link
https://github.com/PostHog/posthog/blob/master/products/surveys/skills/creating-surveys/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a short NPS survey for users who have used the app this week, and check its audience before I launch it.”
5 new skills a week. 1 minute to read.
How it works
It picks the survey type that fits your goal, drafts the questions, and checks the audience and delivery requirements. It reviews the draft so you can launch with confidence.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 | external_survey |
A hosted survey link; no in-app targeting |
| A custom form built in application code | api |
The app renders questions and captures survey events |
Inspect the current tool schema for question types, scales, branching, and translations instead of guessing their JSON shapes. Minimal starting points are in examples.
Design for responses
These choices go with higher response rates in in-app surveys. Apply the question advice by default. Recommend the trigger and audience advice, and ask before adding a trigger or audience the user did not request, since both change who receives the survey. The evidence and its limits are in response rates.
- Trigger on the moment you are asking about. Recommend showing the survey
after the event that marks it, such as a completed checkout or a used feature,
through
conditions.events. Event-triggered surveys get about twice the responses of page-based ones. A URL condition alone does about as well as showing the survey on every page. Confirm the event exists in the project before using it. - Make the first question one click. Start with a single choice or a short rating. Surveys that open with an open-text question get about a fifth of the responses. Ask "why" in an optional open question after it.
- Keep it short. About 4 in 10 people who start a two- or three-question survey stop before the end. Prefer one to three questions unless the user requests more.
- Turn partial responses on with
enable_partial_responses: true, so the first answer is kept when someone stops. It defaults to off when a survey is created through the API. - Recommend a targeted audience. Surveys shown to a person or cohort audience get more responses than surveys shown to everyone.
- Keep any popup delay under 15 seconds. Longer delays go with fewer responses.
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
conditionsfor 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
targeting_flag_filters.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. A snapshot does not update with the original cohort. Get agreement before making that tradeoff; never drop a rule or broaden the audience to make a failed request pass.
- Hosted forms (
external_survey) do not use in-app display conditions or targeting flags. Do not attach those fields to a hosted form. - Omit
appearanceunless customization is needed.whiteLabel: truerequires the organization's white-labelling entitlement (Enterprise). Do not infer it from a request for custom colors. Verify entitlement before setting it.surveyPopupDelaySecondsmust be non-negative. - Leave optional fields unset when unused. Do not fill them with
nullas a substitute for omission; question fields and nested objects have different nullability rules.
Create and review the draft
Call `posthog
FAQ
Which survey types are available?
In-app popovers, an always-available feedback widget, hosted external forms and custom surveys built in your code.
Does it launch the survey right away?
It prepares a draft and checks readiness before launch, so you can review it first.
Does an in-app survey need an SDK?
Yes. In-app surveys need a supported PostHog SDK with surveys turned on.
Details
Original description by the author
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.
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6958
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.