creating-surveys
它能做什么
本技能创建一份 PostHog 问卷,从选择它是在应用内弹出还是作为托管表单,到确定受众和问题。适合希望收集用户反馈的产品和研究团队。
适用场景
- ✓当你想通过问卷或表单收集用户反馈时。
- ✓当你希望在应用内展示 NPS 或满意度问卷时。
- ✓当你想要一份可分享的托管反馈表单的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/surveys/skills/creating-surveys/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为本周使用过应用的用户创建一份简短的 NPS 问卷,并在发布前检查其受众。”
每周 5 个新技能,1 分钟读完。
工作原理
它会选择符合你目标的问卷类型,起草问题,并检查受众和投递要求。它会审核草稿,让你能够放心地发布。
技术内容(原始 SKILL.md)
作者在 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
常见问题
有哪些问卷类型?
应用内弹窗、始终可用的反馈小组件、托管的外部表单,以及在你的代码中构建的自定义问卷。
它会立即发布问卷吗?
它会先准备草稿,并在发布前检查是否就绪,因此你可以先审核。
应用内问卷需要 SDK 吗?
需要。应用内问卷需要支持问卷功能的 PostHog SDK。
详情
作者的原始描述
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
热度
- GitHub 星标
- 41k
- 排名
- #6958
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。