---
title: Draft Shopify A/B Test
published: true
index: 60
---

# Draft Shopify A/B Test

Prepare one theme treatment and a review handoff for an authorized experiment.

| Context | What to provide |
| --- | --- |
| Required context | Theme repository, affected storefront pages, and one hypothesis or requested change. |
| Optional context | Storefront URL, audit reports, analytics, design reference, Shopify store/control details, and test limits or measurement plan. |

**Execution requirements:** Repository writes, target validation commands, and a browser. Unpublished upload needs authenticated Shopify CLI access and authorization; native experiment operations need separate compatible capabilities and owner policy. These writes run outside Glue's read-only review runner.

## How to use

1. Invoke `$draft-shopify-ab-test` to prepare and validate the treatment from current main.
2. Review the diff, evidence, and experiment brief. Upload or experiment operation proceeds only within its applicable authorization; drafting alone stops at a handoff.

## Examples

```text
Use $draft-shopify-ab-test to prepare a clearer product-page shipping message from this audit hypothesis. Return a local treatment and measurement plan for review.
```

```text
Use $draft-shopify-ab-test to prepare this collection-page treatment and its authorized unpublished-theme upload for the specified store and control. Leave scheduling at the review handoff.
```
