---
name: klaviyo-weekly-brief
description: >
  EXPERIMENTAL: preview skill, unsupported and may change. One-minute weekly Klaviyo check-in that
  compares last week with the week before for campaigns and flows, names the biggest movers, and
  recommends one action. Use whenever someone asks for a weekly brief, how last week went, a Monday
  Klaviyo update, a recurring check-in, or whether a recent change worked. Not for other time windows
  or one-off reporting questions. Read-only. Requires the Klaviyo MCP server.
---

> Reading this skill from the web rather than installing it? Each file it mentions is published next to this SKILL.md: a Markdown file at the same path, and any other file at its path plus `.md`, wrapped in a fenced code block. Fetch a file only when a step needs it, and write a code file out by saving just the contents of its code block. Steps that run `$SKILL/...` mean the skill's directory; if the skill isn't installed, fetch those files first.

# Weekly brief

A one-minute, read-only comparison of the most recent full week against the week before it, built from the Klaviyo MCP server's campaign and flow reports.

If the Klaviyo MCP server's tools are not available in this session, say so and stop. Do not guess at results.

Not for a leadership or executive report, a deep dive into why a number moved, or a single campaign or flow. Those need fuller analysis than a one-minute brief.

## Data rules

- **Conversion metric.** Call `get_metrics` requesting only the `name` field, with no filters. Use the metric named `Placed Order`. If more than one metric has that name, check each copy's count with `query_metric_aggregates` (`measurements: ["count"]`, `interval: "month"`, and a `filter` list with a `greater-or-equal(datetime, ...)` and `less-than(datetime, ...)` pair covering the last 12 months) and pass the one with events as `conversion_metric_id`. Otherwise every conversion reads as zero.
- **Timeframes.** Report responses do not say which dates a preset such as `{"key": "last_week"}` covered. Use custom ranges for both weeks so you can state the dates: `{"start": "<ISO datetime>", "end": "<ISO datetime>"}`, with no wrapper object. Include the account's UTC offset in both datetimes (for example `2026-10-26T00:00:00-04:00`), otherwise the server may read them as UTC and shift the week.
- **Revenue.** Request `conversion_value` as a value statistic. If the report errors because the conversion metric does not support value data, retry with `value_statistics` empty, show the table without revenue, and say why revenue is missing.
- **Campaign count.** Report rows are per campaign message and send channel, so a campaign with email and SMS, or with A/B variations, is several rows. Count distinct `campaign_id` values.
- **Names, not IDs**, and use the tools' rates rather than recomputing them.

## Instructions

1. Get the timezone from `get_account_details`. Define last week as the most recent full Monday to Sunday in that timezone, and the prior week as the seven days before it.
1. Choose the conversion metric (see Data rules).
1. Call `get_flow_report` and `get_campaign_report` once per week, requesting `recipients`, `delivered`, `open_rate`, `click_rate`, `conversion_rate` and `conversions`, plus `conversion_value` as a value statistic.
1. If both weeks are empty, do not show an empty table:
   - Find the most recent send with `get_campaign_report` for `{"key": "last_90_days"}`.
   - Say "No campaigns or flow messages sent since {date}." If there is nothing in 90 days, say so.
   - If the klaviyo-account-overview skill is available in this session, offer to run it instead. If not, offer a 90-day summary from the same report. Then stop.
1. Compare four headline numbers, each as last week, prior week and change:
   - flow attributed revenue
   - campaign attributed revenue
   - campaigns sent (distinct campaigns, see Data rules)
   - messages delivered
1. Call out at most three movers by name, with both weeks' numbers. If a move comes from volume (more recipients, or a campaign that ran in only one week), say so rather than calling it a performance change. Under about 100 recipients, do not compare rates.
1. If the conversation names a recent change to a campaign or flow, report that object's numbers before and after it. Say plainly when one week is too early to judge.
1. Recommend one action for this week, tied to a mover. If the klaviyo-insight-to-draft skill is available in this session, offer to set the action up with it. If not, describe the action and stop.
1. If the user wants this every week, offer a recurring task only if the current surface supports scheduling, and only say a schedule exists once it has been confirmed. Otherwise suggest starting a chat with "weekly brief" each Monday.

## Output

- Header: `{brand} weekly brief: {start} to {end} vs {prior start} to {prior end}`
- Headline table: Metric, Last week, Prior week, Change.
- Movers: up to three bullets.
- Follow-up on recent changes, if any.
- This week: one action, with the offer to set it up when klaviyo-insight-to-draft is available.
- Readable in under a minute.

## Boundaries

- Read-only. Making a change belongs to klaviyo-insight-to-draft, with its own approvals. It also runs without klaviyo-insight-to-draft or klaviyo-account-overview installed, so never assume either is present.
- One week is noisy. Do not call a single week a trend. Flag holidays and big sale weeks (for example BFCM) as the likely cause when the dates overlap them.
- If only one week has sends, say so and compare only what exists.
- `get_campaign_report` and `get_flow_report` use send date and match the Klaviyo dashboard. `query_metric_aggregates` uses event time and does not. Do not mix the two in one table, and if the user questions a number, say which tool it came from.
