---
name: tag-orders
description: >-
  Finds orders matching a plain-English rule and applies a tag to them in bulk after showing the matched list for approval. Use when the user asks to tag orders, bulk-tag, label orders, or mark orders that match a condition.
---

# Tag Orders by Rule

Tag orders that [RULE] with the tag "[TAG]".

## Steps
1. Restate the rule in precise terms (statuses, dates, products, amounts, countries) and confirm the date range; default to the last 90 days.
2. Find matching orders. Show the count and the first 20 as a table: order number, date, customer, total, why it matched.
3. Ask for approval. Only after a clear yes, add the tag to every matched order without removing existing tags. Report how many were tagged.

## Output
The precise rule, the count, the sample table, then "Tag these [count] orders?"

Never remove tags in this skill. Never tag more than 500 orders in one run without asking again.
