मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट41k · #6877

creating-experiments

यह क्या करती है

यह स्किल नया A/B टेस्ट बनाने की प्रक्रिया बताती है, आपके प्रोजेक्ट पढ़ने से लेकर मेट्रिक और चलने की अवधि सेट करने तक। यह उन प्रोडक्ट टीमों के लिए है जो कोई बदलाव जल्दी परखना चाहती हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी पेज या फ़ीचर के लिए नया A/B टेस्ट बनाना चाहें।
  • ✓जब आप टेस्ट के मेट्रिक और चलने की अवधि सेट करना चाहें।
  • ✓जब आपको एक ड्राफ़्ट प्रयोग चाहिए जिसे बाद में सुधारा जा सके।

Skill का लिंक

https://github.com/PostHog/posthog/blob/master/products/experiments/skills/creating-experiments/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/experiments/skills/creating-experiments/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे प्राइसिंग पेज का A/B टेस्ट बनाइए, ताकि देख सकूँ कि नई हेडलाइन से ज़्यादा साइनअप आते हैं या नहीं।”

हर हफ़्ते 5 नई skills, 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.

  1. From the request, infer the target (the event that marks someone reaching the change, usually $pageview for a page) and a candidate metric event. Confirm both exist with read-data-schema. Don't ask the user for event names you can find. For a page, read event_property_values for $host and $pathname on 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, a www. prefix, the casing) rather than as proof that a value is absent. An exact filter has to carry that shape: /pricing matches nothing where every pageview says /pricing/, and example.com matches nothing where the host is www.example.com.

  2. If the experiment-setup-context tool is available, call it once with target_event and metric_event. For a web surface, add target_properties with an exact $host. Add an exact $pathname as well when the surface is one page. target_url_contains is a substring match on $current_url. A bare domain matches any host that contains it, notexample.com included, 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 $host and put only the path fragment in target_url_contains. Add metric_properties in the same call when the candidate metric counts only some occurrences of its event. Pass previous_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 type of event or person, a key, an operator and a value. The call rejects the flag_evaluates_to operator 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
    }
    
  3. 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.

  4. 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-create cannot set (see the recipe in configuring-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
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills