# Schedule Recipe — Logistics / Supply Chain

## What to Schedule

**Skill:** `/sun:delivery-exceptions` (the skill you built in Exercise 4.1)
**Schedule:** Weekly on Monday at 8:30 AM
**Cron:** `30 8 * * 1`

## Input Source

**Option A (MCP):** Pull data from OPT via Jira MCP
```
Search OPT for Terminal Order issues with status in [Pending, Scheduled]
```

**Option B (File drop):** Export from Zuper → save to workspace folder as `order-pile.csv`

## Output Destination

- Save report to: `~/cowork-workspace/logistics-supply-chain/reports/`
- Naming: `delivery-exceptions-YYYY-MM-DD.docx`

## If It Fails

1. **MCP connection lost:** Fall back to Option B (manual file drop). Check `/sun:setup` to verify connectors.
2. **Empty data:** The skill should produce a "No items found" report, not crash. If it crashes, add a guard in the skill.
3. **Format changed:** If Zuper changed its export format (new columns, renamed fields), update the skill's input description.

## How to Set Up

Run: `/sun:schedule`
- Task name: "delivery-exceptions daily run"
- Prompt: "Run /sun:delivery-exceptions against the latest order-pile data"
- Schedule: Weekly on Monday at 8:30 AM
