creating-surveys
Fungsinya
Skill ini membuat survei PostHog, mulai dari memilih apakah survei muncul di dalam aplikasi atau sebagai formulir yang di-host, hingga memilih audiens dan pertanyaan. Ditujukan untuk tim produk dan riset yang ingin mengumpulkan umpan balik dari pengguna.
Kapan dipakai
- βSaat Anda ingin mengumpulkan umpan balik dari pengguna dengan survei atau formulir.
- βSaat Anda menginginkan survei NPS atau kepuasan yang ditampilkan di dalam aplikasi Anda.
- βSaat Anda menginginkan formulir umpan balik yang di-host dan dapat dibagikan.
Link skill
https://github.com/PostHog/posthog/blob/master/products/surveys/skills/creating-surveys/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuat survei NPS singkat untuk pengguna yang menggunakan aplikasi minggu ini, dan periksa audiensnya sebelum saya meluncurkannya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memilih jenis survei yang sesuai dengan tujuan Anda, menyusun pertanyaan, dan memeriksa persyaratan audiens dan pengiriman. Skill meninjau draf agar Anda dapat meluncurkannya dengan yakin.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Jenis survei apa saja yang tersedia?
Popover di dalam aplikasi, widget umpan balik yang selalu tersedia, formulir eksternal yang di-host, dan survei kustom yang dibangun dalam kode Anda.
Apakah skill langsung meluncurkan survei?
Skill menyiapkan draf dan memeriksa kesiapan sebelum peluncuran, sehingga Anda dapat meninjaunya terlebih dahulu.
Apakah survei di dalam aplikasi memerlukan SDK?
Ya. Survei di dalam aplikasi memerlukan SDK PostHog yang didukung dengan survei diaktifkan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6958
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
gitcrawl
394kMemungkinkan agent Anda mencari arsip issue dan pull request GitHub yang tersimpan, mengelompokkan yang duplikat, dan memeriksa status terkininya di GitHub.
slacrawl
394kMemungkinkan agent Anda mencari dan menghitung pesan di arsip Slack lokal, memeriksa seberapa baru arsip itu, dan menyegarkannya bila diperlukan.
goplaces
394kMembantu agent Anda mencari tempat, mendapatkan detail dan ulasannya, serta menentukan nama tempat memakai Google Places, dengan keluaran JSON untuk skrip.