creating-surveys
できること
このスキルは、アプリ内に表示するか、ホストされたフォームとして表示するかを選ぶところから、対象者と質問の設定まで、PostHogのアンケートを作成します。ユーザーからフィードバックを集めたいプロダクトや調査のチーム向けです。
使う場面
- ✓アンケートやフォームで、ユーザーからフィードバックを集めたいとき。
- ✓アプリ内に表示するNPSや満足度のアンケートがほしいとき。
- ✓共有できるホスト型のフィードバックフォームがほしいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/surveys/skills/creating-surveys/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。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エージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。