Email Reportのロゴ

Email Report

組織
cognyai
email-report

実際のESPデータから、週次または月次のメールパフォーマンスレポートを3種類の形式(Slackの更新投稿、CEO宛てメール、取締役会資料のセクション)で自動生成します

Add to TypingMind

概要

公開者cognyai
リポジトリclaude-code-marketing-skills
スキル名email-report
スター
111
フォーク
15
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    cognyaiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Email Report」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/email-report
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git /tmp/claude-code-marketing-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-marketing-skills/skills/email-report .claude/skills/email-report
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでEmail Reportを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にEmail Reportを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Email Reportは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Email Report

The 3-hour tax every email marketer pays: pulling last period's numbers, charting the trend, explaining the variance, and writing commentary in the right voice for the audience. This skill does it in one command and outputs three versions — Slack ping, CEO email, board deck section — so you can ship the one your stakeholder needs.

Requires: Cogny MCP + a connected ESP. Sign up

Usage

/email-report — monthly report, all three formats (default) /email-report weekly — last 7 days /email-report monthly ceo — monthly, only the CEO email /email-report weekly slack — weekly, only the Slack update

Step 0: Is Cogny connected?

If no mcp__cogny__* tools exist (no list_integrations, no cogny_status), print this and stop:

Email Report needs your marketing data through Cogny's MCP gateway.

1. Sign up at https://cogny.com and connect your ESP (Klaviyo, Mailchimp, Rule, Get a Newsletter, Brevo, MailerLite, Drip, Salesforce Marketing Cloud, Symplify or Braze); a store, Stripe or GA4 adds revenue context.
2. Add Cogny to .mcp.json in your project:
   {"mcpServers": {"cogny": {"type": "http", "url": "https://app.cogny.com/mcp"}}}
3. Restart Claude Code; it opens a browser for the OAuth login on first use.

Nothing to run without Cogny.

When Cogny is connected but no ESP is, say "connect your ESP in Cogny" and stop; a connected integration that fails its health check gets "reconnect in Cogny".

Prerequisites Check

Detect connected ESP (on Cloud, mcp__cogny__list_integrations; name any unhealthy integration as broken). If none, stop and prompt. Also note which store (Shopify, WooCommerce, Abicart, Litium), billing source (Stripe, for SaaS) and web analytics (GA4, Plausible) are connected — they supply revenue and email-driven sessions.

Health check: health_status misses revoked tokens, so make one cheap read per integration before relying on it (e.g. Mailchimp tool_get_account_info, Get a Newsletter tool_list_senders, Klaviyo get_account, GA4 tool_run_report for one day, Stripe stripe_api_read GetSubscriptions with limit: 1). A 401, Forbidden or scope error means 🔴 "reconnect in Cogny": name it, don't retry, and report from the rest.

Missing tool: if a tool named here isn't exposed by the workspace, call mcp__cogny__refresh_mcp_discovery once, use the fallback named next to the tool for this run, mark that source ⚠ "needs reconnect", and tell the user to reconnect the Cogny MCP. Never loop on refresh. Get a Newsletter fallbacks: tool_get_report_have_not_opened → that report's list contacts minus the openers from tool_get_report_opens; tool_get_report_link_clicks → tool_get_report_opens (per-contact click counts) or tool_get_report_clicks (per-link totals); tool_get_report_opens_aggregated → the totals in tool_get_report. Mailchimp tool_get_campaign_content → tool_get_campaign for the headers, and ask the user for the body.

ESP connected but 0 sends in the window: skip that ESP's campaign section with a one-line note ("Rule: connected, 0 sends in ") and keep its list-size numbers. If no ESP sent anything in the period, see "Zero sends in the period" in step 2.

Works with

ESP (Prefix)Campaigns + metricsFlows / journeysList size + growthESP-attributed revenue
Klaviyo (Klaviyo)list_campaigns, get_campaign_values_reportlist_flows, get_flowlist_profiles✓ (get_campaign_values_report with conversion_metric_id = Placed Order)
Mailchimp (Mailchimp)tool_list_campaigns, tool_get_reporttool_list_automations, tool_get_automationtool_get_audience✗
Rule (Rule)tool_list_campaigns, tool_get_campaign_statisticstool_list_journeystool_list_subscribers✗
Get a Newsletter (Get_a_Newsletter)tool_list_sent, tool_get_report (one report per sent mail)—tool_list_lists (active_subscribers_count per list)✗
Brevo (Brevo)list_email_campaigns (status: "sent"), get_email_campaign (stats are in the campaign's statistics)not exposedlist_contact_lists (subscriber counts per list)✗. get_smtp_report (start_date, end_date) is transactional mail only: report it as its own line
MailerLite (MailerLite)list_campaigns (filter_status: "sent"), get_campaign (stats)not exposedlist_groups (active counts), list_subscribers✗
Drip (Drip)list_campaigns, get_campaign (Email Series: subscriber counts, no per-email open/click rates)list_workflowslist_subscribers (subscribed_after) for new subs✗ (subscriber lifetime_value is LTV, not period revenue)
Salesforce Marketing Cloud (Salesforce_Marketing_Cloud)list_email_sends (start_date, end_date): per-send rates + window totalsget_journey_email_performance, get_triggered_send_summary — lifetime totals, no date filternot exposedconversions count only
Symplify (Symplify)get_campaign_overview (start, end), get_campaign_reportlist_journeys (names only)not exposed✓ conversion amount per delivery
Braze (Braze)braze_list_campaigns → braze_get_campaign_analytics (length ≤ 100, ending_at; daily, email channel only)braze_list_canvases → braze_get_canvas_summarybraze_list_email_unsubscribes (start_date, end_date) for unsubs; list size not exposed✓ Braze-attributed revenue

Revenue from the store and analytics (enhanced when connected):

SourceToolWhat it is
Shopifytool_list_orders (query_filter: "created_at:>=YYYY-MM-DD created_at:<YYYY-MM-DD", page with after)All store orders in the window (context, not email revenue)
WooCommerceget_sales_report (date_min, date_max)Store sales totals
Abicart / Litiumget_sales_summary (start_date, end_date, group_by: "week")Orders + revenue per period, base currency
GA4tool_run_report (dimensions: ["sessionCampaignName"], metrics: ["sessions","keyEvents","purchaseRevenue"], dimension_filter on sessionDefaultChannelGroup = Email)Email-driven sessions and last-click revenue
Plausiblebreakdown (dimension: "visit:utm_campaign", filters: [["is","visit:utm_medium",["email"]]])Email-driven visits and goal conversions
Stripe (SaaS)stripe_api_read: GetInvoices (paid, created in the window), GetSubscriptions (new: created in the window; cancelled: there is no canceled_at filter, so list status: "canceled" and keep rows whose canceled_at falls in the window client-side), GetRefunds. Use limit 20–25 and page with starting_after (a 100-row page is ~370KB)Billed revenue, new subscriptions and churn for SaaS businesses; use it where a store would supply revenue

Report ESP-attributed revenue, GA4 email revenue and store (or Stripe) revenue as separate labeled lines. They use different attribution windows and never add up.

Steps

1. Define the period and read the previous report

ModeCurrent windowComparison
weeklylast 7 daysprior 7 days + 4-week rolling avg
monthlylast 30 daysprior 30 days + 12-week rolling avg

State the exact date ranges up front.

Call read_context_node with path: "insights/email/reports/<weekly|monthly>/latest". If it exists, it holds the previous report's narrative and key numbers: use them in "What happened" ("this matches the trend from last month" / "this reverses the dip we flagged"). If it doesn't exist, this is the first run for that mode; say so.

2. Pull the data

Per-ESP tool adapter. The right tool depends on which ESP is connected:

DataKlaviyoMailchimpRuleGet a Newsletter
Campaign listlist_campaignstool_list_campaignstool_list_campaignstool_list_sent
Campaign metricsget_campaign + list_events (metric-filtered)tool_get_reporttool_get_campaign_statisticstool_get_report
Automation / flow listlist_flowstool_list_automationstool_list_journeysnot available
Flow metricsget_flowtool_get_automationtool_list_journeys (limited)not available
Subscriber list sizelist_profiles (count)tool_get_audiencetool_list_subscribers (count)tool_list_lists → sum of active_subscribers_count (not the tool_list_contacts count, which includes inactive contacts)
Revenue per send✓ via list_events with metric="Placed Order"not availablenot availablenot available

Get a Newsletter: tool_list_sent rows carry subject, send time and report_id, so tool_get_sent isn't needed. Its delivered equals sent_to even when mails bounced, so use sent_to − bounced as the delivered denominator. Exclude test sends (under 10 recipients, or "test" in the subject).

For Brevo, MailerLite, Drip, Salesforce Marketing Cloud, Symplify and Braze, use the tools in Works with above. Pull each ESP's numbers separately; if several are connected, the report gets one metrics column per ESP, never a blended total.

For the current window AND the comparison window, pull:

Campaign broadcasts:

  • Each campaign's subject, send date, recipient count, opens, unique opens, clicks, unique clicks, unsubs, bounces.
  • Revenue attributed — Klaviyo, Braze, Symplify. For Klaviyo, fetch "Placed Order" events scoped to the send window and attribute by campaign (or get_campaign_values_report with revenue_per_recipient). Braze returns revenue in braze_get_campaign_analytics; Symplify returns conversion amount per delivery. For the other ESPs, omit ESP-attributed revenue and use GA4/Plausible email-driven revenue or conversions if connected, labeled as such.

Flows / automations — varies by ESP:

  • Klaviyo: flow name, triggered volume, revenue per flow (via events).
  • Mailchimp: automation name, sends, opens, clicks (no revenue).
  • Rule: journey name + limited metrics.
  • Drip: workflow names from list_workflows; Email Series subscriber counts from get_campaign.
  • Salesforce Marketing Cloud: get_journey_email_performance — lifetime numbers, so show them as "since launch", never as this period's change.
  • Symplify: list_journeys gives names only; journey performance isn't exposed.
  • Braze: Canvas name + braze_get_canvas_summary for the window (revenue included).
  • Brevo, MailerLite: automations aren't exposed; skip and say so.
  • Get a Newsletter: no flow object exists. Skip this section; use a "recurring sends" proxy if the user has a newsletter cadence.

List-level metrics:

  • List size at period start vs end
  • New subscribers in period
  • Unsubscribes in period
  • Net change + growth rate

Zero sends in the period: if no connected ESP sent a broadcast in the current window, don't compute rates (they'd be 0/0). Output a short report instead: "No email sends in (last send: , )", the list-size change, any flow/journey numbers that exist, and the store/Stripe/GA4 context lines. Flag the gap as a finding if the previous report showed a regular cadence.

Unconnected senders (GA4): compare the GA4 email sessionCampaignName values with the connected ESPs' sends in the window. A campaign with email sessions that matches no ESP send means email is going out from a sender Cogny can't see (another ESP, a CRM, a product mailer). List those campaigns with their sessions and say "sent from an unconnected tool; connect it to include it in the report".

3. Compute the report metrics

For each window, compute:

MetricCalcWhy it matters
Sendstotal emails deliveredVolume sanity check
Open rateunique opens / deliveredSubject/preheader effectiveness (MPP-distorted)
CTRunique clicks / deliveredTrue engagement
CTORunique clicks / unique opensContent effectiveness (MPP-resilient)
Unsub rateunsubs / deliveredList health signal
Bounce ratebounces / sentDeliverability signal
Revenue per sendecom revenue / delivered (if available)The only metric execs actually care about
List growth rate(ending - starting) / startingAcquisition health

Show absolute value + % change vs prior period + % change vs rolling baseline.

4. Identify movers

Rank campaigns in the current window by open rate, CTR, and revenue. Identify:

  • Top performer — best campaign by revenue (or by CTOR if no revenue data)
  • Worst performer — bottom by revenue/CTOR
  • Anomaly — campaign whose metrics are >2σ from the user's typical baseline (surprise hit or surprise flop)

For each, write a one-sentence "why" hypothesis based on visible attributes (subject style, send time, segment, content type).

5. Explain variance

Don't just say "CTR dropped 8%." Explain it. Cross-reference:

  • Did send volume change? More sends to less-engaged segments drag rate metrics even if absolute revenue is fine.
  • Did the segment mix change? (All-list sends vs engaged-only)
  • Did cadence change? (More sends per week → fatigue)
  • Did a specific campaign drag the average? (One dud to a huge segment)
  • Did list hygiene change? (Big unsub event or re-engagement deadline)
  • Was there an external event? (holiday, launch, outage)

Phrase findings as claim → evidence:

"Open rate dropped from 28% to 22%. Two of four sends this month went to the dormant 180-day segment (120k recipients at 14% open), which pulled the average down. If you look at engaged-segment sends only, open rate actually rose from 34% to 36%."

6. Generate the three outputs

6.1 Slack update (≤500 chars, 3 bullets)
📧 Email – <period label>
• Sends: <N> ( <±>% vs prior)  |  Open: <X>% ( <±>pp)  |  CTR: <Y>% ( <±>pp)
• 🏆 Top: "<subject>" — <metric>  |  ⚠️ Watch: <one-line variance call>
• Revenue: $<X> ( <±>% vs prior)  |  List: <±>% net growth  |  Next week: <1-line plan>
6.2 CEO email (≤250 words, narrative)
Subject: Email performance — <period label>

Hi <CEO first name>,

Quick update on email this <period>:

Headline: <one-sentence summary — is it good, bad, or mixed?>

What happened:
[2-3 sentences explaining volume, rate-metric movement, revenue. Tie to a
business narrative — launches, campaigns, segment focus.]

What's notable:
[1-2 sentences. Top campaign or surprise win or flagged concern.]

What's next:
[1-2 sentences. Concrete plan for next period. Pick ONE action, not five.]

Happy to dig deeper on any of this.

<signoff>
6.3 Deck section (full)
EMAIL PERFORMANCE — <period label>

Summary
  <two-sentence narrative>

Key metrics
  [table: current / prior / rolling / %Δ]
  Sends, Open rate, CTR, CTOR, Unsub rate, Revenue per send, List size

Trend
  [describe what a chart should show — up-and-to-the-right, step change, etc.]

Campaign roundup
  🏆 Best:  "<subject>"
           <segment>, <recipients>, <metric wins>
  📉 Worst: "<subject>"
           <what happened>

Flow performance (if applicable)
  [table of top 3 flows by revenue, with recipient count and conv rate]

What moved the needle
  [2-3 bullets — claim → evidence]

Plan for next <period>
  [2-3 bullets — concrete, owned, measurable]

7. Save the narrative

Persist the period summary to Cogny's context tree so future /email-report runs have historical continuity:

json
{
  "path": "insights/email/reports/<weekly|monthly>/latest",
  "body": "<period dates + the narrative summary + key numbers per ESP>"
}

Overwrite latest (step 1 reads it next run) and also write the same body to insights/email/reports/<weekly|monthly>/<YYYY-MM-DD> as the dated archive.

8. Create findings for notable issues

For anything serious (unsub rate spike, deliverability drop, revenue collapse, an unconnected sender), record it so it lands in the dashboard — not just the report. On Cloud call create_ticket first (fields mapped per section 2 of the routing guide); on Solo call create_finding:

json
{
  "title": "Unsub rate doubled vs prior month (0.18% → 0.37%)",
  "body": "<which campaigns drove it, which segment, recommended fix>",
  "action_type": "list_hygiene",
  "priority": "high"
}

Output defaults

  • If the user didn't specify a format, output all three and label them clearly.
  • Lead with the Slack version — fastest to read if they're skimming.
  • Include the raw metric table at the end so the user can copy numbers out.

Notes

  • Open rate is noisy since Apple MPP. Always report CTR and CTOR alongside. If open rate moves >5pp but CTOR doesn't, it's probably MPP population change, not real behavior.
  • For first-ever run, there's no prior period to compare to — call this out explicitly and use absolute numbers only.
  • Don't invent revenue numbers. ESP-attributed revenue exists only for Klaviyo ("Placed Order" events with a value field), Braze and Symplify. For Mailchimp, Rule, Get a Newsletter, Brevo, MailerLite, Drip and SFMC, say "revenue not exposed by this ESP's MCP" and use GA4/Plausible email-driven revenue, store or Stripe totals for context, or user-pasted revenue — each labeled with its source.
  • Definitions differ per ESP. Klaviyo, Mailchimp and Brevo opens include Apple MPP machine opens unless the payload separates them; Get a Newsletter reports per sent mail; SFMC journey totals are lifetime. Name the ESP on every number and never average rates across ESPs.

Recording findings

Use create_ticket when the workspace has it (Cloud) and create_finding otherwise (Solo). The fields differ; see section 2 of ../marketing-engineer/references/mcp-routing.md.

よくある質問

AIスキル「Email Report」では何ができますか?

実際のESPデータから、週次または月次のメールパフォーマンスレポートを3種類の形式(Slackの更新投稿、CEO宛てメール、取締役会資料のセクション)で自動生成します

TypingMindでEmail Reportを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Email Reportはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにEmail Reportをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/email-reportを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Email Reportを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Email Reportで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもEmail Reportを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Email Report」は無料ですか?

cognyaiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇