---
name: flash-sale
description: >-
  Sets up a flash sale as one compound task: creates a sale collection, an automatic discount with start and end times, and a Shopify Email draft, after showing the full plan for approval. Use when the user asks to run a flash sale, weekend sale, or short promotion on a set of products.
---

# Flash Sale in One Task

Set up a flash sale on [PRODUCTS OR COLLECTION] at [PERCENT] off from [START] to [END], shop timezone.

## Steps
1. Resolve the products. Check stock for each; exclude anything out of stock or with fewer than 5 units and tell me.
2. Check active and scheduled discounts for overlaps with these products in the sale window.
3. Plan three things and show them together before doing anything: a collection named "Flash Sale" containing the products, hidden from navigation; an automatic percentage discount limited to that collection with the exact start and end; a Shopify Email campaign draft with a subject line, a one-paragraph body in the store's voice, the product grid and the end time.
4. Ask for one approval. Only after a clear yes, create the collection, then the discount, then the email draft. Report each step as done, with links.

## Output
The plan as three short blocks, the stock exclusions, then "Create all three?"; after approval, three confirmations.

Do not send the email; leave it as a draft. Do not change product prices directly; use the discount. If any step fails, stop and say which one.
