creating-experiments
하는 일
이 스킬은 프로젝트 읽기부터 지표와 실행 기간 설정까지 새 A/B 테스트를 만드는 과정을 안내합니다. 변경을 빨리 테스트하려는 제품 팀을 위한 것입니다.
사용하는 경우
- ✓페이지나 기능에 대해 새 A/B 테스트를 만들고 싶을 때.
- ✓테스트의 지표와 실행 기간을 설정하고 싶을 때.
- ✓나중에 다듬을 수 있는 초안 실험을 원할 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/creating-experiments/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“가격 페이지에서 새 헤드라인이 더 많은 가입을 얻는지 보는 A/B 테스트를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
먼저 프로젝트를 읽어 적절한 목표 이벤트와 지표를 고르고, 초안 실험을 만든 뒤 롤아웃과 분석을 다듬습니다. 어떤 선택이 추측인지 밝히고, 버케팅에 대해서만 묻습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Creating experiments
This skill walks through creating a new A/B test experiment: read the project, then the 3-step flow, then report the draft.
Core principle: draft first, iterate on details
Create the experiment as a draft quickly, then iterate on metrics and configuration. The user gets a tangible draft immediately and can refine it. Choose settings from the project's facts rather than asking, and say which choices are guesses. Bucketing is the exception: the facts cannot decide it, so ask before you create the experiment.
Step 0: Read the project
The right bucketing, metric and running time depend on the project: who sees the page, which SDKs evaluate the flag, how often the metric event happens. Read that before configuring anything.
From the request, infer the target (the event that marks someone reaching the change, usually
$pageviewfor a page) and a candidate metric event. Confirm both exist withread-data-schema. Don't ask the user for event names you can find. For a page, readevent_property_valuesfor$hostand$pathnameon the target event as well. The response samples the values rather than listing them all, so read it for the shape the project records (a trailing slash, awww.prefix, the casing) rather than as proof that a value is absent. An exact filter has to carry that shape:/pricingmatches nothing where every pageview says/pricing/, andexample.commatches nothing where the host iswww.example.com.If the
experiment-setup-contexttool is available, call it once withtarget_eventandmetric_event. For a web surface, addtarget_propertieswith an exact$host. Add an exact$pathnameas well when the surface is one page.target_url_containsis a substring match on$current_url. A bare domain matches any host that contains it,notexample.comincluded, and a homepage path matches every page under it. Both overstate the traffic and the exposure rate. For a surface that spans several pages, keep the exact$hostand put only the path fragment intarget_url_contains. Addmetric_propertiesin the same call when the candidate metric counts only some occurrences of its event. Passprevious_experiments_limit: 5. Five experiments are enough to read a precedent, and the default of 10 roughly doubles the response for no more signal. If the tool is not available, continue without it and treat every choice below as a best guess. Never call a tool you can't see.Each filter needs a
typeofeventorperson, akey, anoperatorand avalue. The call rejects theflag_evaluates_tooperator with a 400 that names it. For the homepage of one domain:{ "target_event": "$pageview", "target_properties": [ { "key": "$host", "type": "event", "operator": "exact", "value": ["www.example.com"] }, { "key": "$pathname", "type": "event", "operator": "exact", "value": ["/"] } ], "metric_event": "your_conversion_event", "previous_experiments_limit": 5 }Apply references/setup-decisions.md to the result. It maps each fact to a choice (bucketing, where the flag is evaluated, exposure, primary metric, running time, precedent) and to a tier for the summary.
Carry those choices into steps 1 to 3.
Ask the user only when a choice is "not decided" and the user is in the conversation. If the user said they are away, or asked for a draft without questions, decide with the defaults and list the open points in the report.
The 3-step creation flow
Step 1: What are we testing?
Gather these before calling experiment-create:
- Experiment name — descriptive, inferred from context when possible
- Hypothesis — what you expect to happen (goes in
description) - Feature flag key — kebab-case. Infer a new key unless the user names an existing flag.
The flag is auto-created — do NOT create one separately. The one exception is device-id bucketing, which
experiment-createcannot set (see the recipe inconfiguring-experiment-rollout). - Type — leave empty (will internally default to
"product". The"web"value is reserved for no-code experiments configured visually with the PostHog toolbar in a browser; it cannot be meaningfully driven via MCP. If a user asks for a no-code/toolbar experiment, point them to the PostHog UI instead of creating one here.)
If the user gives enough c
자주 묻는 질문
바로 테스트를 시작하나요?
아니요. 실험을 먼저 초안으로 만들므로, 시작하기 전에 세부 사항을 검토하고 다듬을 수 있습니다.
무엇을 묻나요?
사용자를 어떻게 버킷에 넣을지만 묻습니다. 프로젝트 사실로는 그것을 결정할 수 없기 때문입니다.
지표는 어떻게 고르나요?
프로젝트의 이벤트를 보고 목표와 후보 지표 이벤트를 찾으며, 사용하기 전에 그것이 존재하는지 확인합니다.
상세 정보
작성자의 원본 설명
Guides agents through experiment creation: reading the project's setup with experiment-setup-context, defining the hypothesis, configuring rollout and bucketing, setting up analytics and running time, and reporting which choices are guesses. Delegates rollout decisions to configuring-experiment-rollout and metric setup to configuring-experiment-analytics. TRIGGER when: user asks to create a new experiment or A/B test, OR when you are about to call experiment-create. DO NOT TRIGGER when: user is updating an existing experiment, managing lifecycle, or only browsing experiments.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6877
- 라이선스
- —
- 업데이트
- 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
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.