---
name: draft-shopify-ab-test
description: Prepare one Shopify theme treatment and experiment brief from a reviewed hypothesis. Validate it, upload an authorized unpublished treatment and return review links. Operate native Rollouts only when separately requested and authorized; drafting never authorizes exposure or publication.
---

# Instructions

Turn one reviewed hypothesis, recommendation or design into a theme treatment and experiment brief. Follow the [drafting workflow](references/workflows/ab-test.md) and [Shopify CLI procedure](references/tools/shopify-cli.md). Read [Rollouts](references/tools/rollouts.md) before separately requested experiment operations.

The treatment may change JSON, Liquid, CSS, JavaScript, sections, blocks and assets within that hypothesis. Use `$edit-shopify-json` for schema-bound JSON work and `$preview-shopify-theme` for setup. Product/pricing data, catalogs, discounts, shipping, checkout extensions, apps, customer data and tracking configuration remain outside scope.

Use host capabilities permitted for the operation; Glue's read-only runner cannot perform writes. Honor existing authorization, but do not infer upload, exposure or release permission from CLI login or drafting. If a required procedure or capability is missing, retain partial artifacts and name the blocker.

Return the brief, tested treatment identity, validation evidence, preview/review links and pending operations. Distinguish a draft from an exposed experiment; neither establishes a winner or publication. Use Markdown or the supplied compatible result schema.
