measuring-email-performance

measuring-email-performance is a skill for Claude Code, Codex from PostHog/skills. It costs 113 tokens per session (4,174 once invoked), scanned A, original, MIT.

An email-performance reporting tool for PostHog, a product analytics service. It reads workflow email data without changing anything.

In plain words
What is it for?
Use it to check sends, deliveries, opens, clicks, bounces, spam complaints, link activity, version differences, later product outcomes, or one person's email history.
Why use it?
It helps avoid misleading results by showing what each number counts, which messages it is based on, and which time period it covers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check sends, deliveries, opens, clicks, bounces, spam complaints, link activity, version differences, later product outcomes, or one person's email history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/skills/measuring-email-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/skills --skill measuring-email-performance
Clone the repo
git clone --depth 1 https://github.com/PostHog/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for measuring-email-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/skills/measuring-email-performance/github.svg)](https://agentmods.dev/skills/posthog/skills/measuring-email-performance)
Your own site
<a href="https://agentmods.dev/skills/posthog/skills/measuring-email-performance"><img src="https://agentmods.dev/badge/skills/posthog/skills/measuring-email-performance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for measuring-email-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/skills/measuring-email-performance"><img src="https://agentmods.dev/badge/skills/posthog/skills/measuring-email-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.04174
Opus 5.5 $0.00045 $0.01670
Sonnet 5.5 $0.00023 $0.00835
Haiku 4.5 $0.00011 $0.00417

Measured yesterday against content hash c473b77ff1a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

measuring-email-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/omnibus/measuring-email-performance/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Measuring email performance

Every number in an email report has a unit, a denominator and a window, and the user sees all three. Most wrong email reports get one of them wrong without noticing: opens divided by every send, events reported as people, a window that closed before the opens arrived. This skill reads and reports, and it changes nothing. To edit an email or a workflow, use the building-workflows and designing-email-templates skills.

Ground rules

  • Two sources, one per table. posthog:workflows-stats, posthog:workflows-version-stats and the counter recipes (Run counters, Clicked links) read the workflow's own counters. The event recipes read the captured $workflows_email_* events. The two sources bucket and keep data differently, so their totals need not match. Report one source per table and name it. Before you explain a difference, compare the same metric, step and window in both. A send to a person without a distinct ID records a counter but no event, so the events can sit below the counters.
  • Period ratios, not rates per message. Opens and clicks repeat, and one person can get the same step many times. Report event counts as "opens" and distinct people as "openers". A callback in the window can belong to a send before it. So opens over tracked sends is a period occurrence ratio, and openers over people sent tracked email is a period person ratio. Name every open, click, bounce, complaint and unsubscribe ratio in the report as one of the two, never as the chance that one message was opened or as the share of one group of recipients. The skill reports a share of recipients only for a product outcome (see Product outcome). Mail security scanners also open and click. When a step shows more clickers than openers, say that scanners may inflate its clicks.
  • Tracked sends are the denominator for opens and clicks. A send with tracking off can never record an open or a click. Divide opens and clicks by email_sent - email_untracked (counters) or tracked_sent (events). Divide bounces, spam complaints and unsubscribes by every send. Show sent, untracked and tracked sends, and the tracking coverage (tracked / sent), next to every open and click ratio. When coverage is below 100%, say that recipients with tracking on may not behave like the rest. A tracked send can still have click tracking off: a transactional send can turn clicks off for itself, any email step with config.click_tracking_enabled set to false sends with clicks off by default (unless a code send overrides it via tracking), and a sensitive step (config.sensitive in posthog:workflows-get) has click tracking off by default unless config.click_tracking_enabled is true or a code send opts in via tracking. When click tracking is on for a sensitive send, its clicks keep only the site address of the link. From 2026-10-30 00:25 UTC to 2026-11-23 09:40 UTC, sensitive sends had clicks off by default; from 2026-11-23 09:40 UTC until the default-off change deploys in that region, they tracked clicks by default; after that deploy, clicks default off again unless opted in. When a sensitive step's window overlaps a change in click default or coverage is mixed, don't split the window at its edges: counters merge by hour, and a click counts when it happens, not when its email was sent. Report the clicks it recorded as recorded clicks with coverage unknown, write "no clicks recorded, coverage unknown" instead of zero, give no click ratio for that step and window, and name the span as a gap in click coverage. When a step sent with clicks off shows no clicks, report its clicks as not measured, never as zero. Report clicks it did record as they are. In the counters, email_bounced already includes email_bounced_hard, email_bounced_transient and email_bounced_undetermined. Report hard bounces from email_bounced_hard, and report email_bounced as the total of all bounces.
  • Closed windows only. Read whole UTC days that have ended, written as ISO timestamps (after=2026-10-12T00:00:00Z, before=2026-10-18T23:59:59.999999Z). The stats tools include before itself and keep microseconds, so pass the last microsecond of the window. A relative after=-7d starts mid-day in the project's timezone. Opens and bounces arrive hours to days after the send, so the last day of any window understates every ratio, and the first day counts opens of sends made before it. Judge a version or a batch only once it is two days old.
  • Daily buckets. Read the stats tools with interval=day, and add up every bucket returned for the window total. Weekly buckets lost counts in a live check. The tools label their day buckets in the project's timezone, so a UTC window can come back with a shifted or extra label. posthog:execute-sql also prints timestamps in the project's timezone. Inside the dates the series covers, a metric missing from a stats series had a count of zero.
  • A sample floor. Below about 20 tracked sends, a ratio is noise. Report the counts and say there is not enough data yet.
  • One step at a time. Read each email step with its action id: instance_id in the stats tools, {step_id} in the recipes. Without it, every step of the workflow shares one denominator. The conversion counter belongs to the whole workflow, and its instance_id is the workflow id. Read it without instance_id in the stats tools. Run counters includes it. It can also return conversion_by_start: the same conversions, filed under the UTC hour the run started, recorded only for runs that started from 2026-11-13. Report conversion for a window that starts earlier, and never add the two.
  • Broadcasts and batch runs key their counters on the run. posthog:workflows-stats returns zeros for such a workflow, even when its runs sent. List its runs and their start times with posthog:workflows-list-batch-jobs, and read them with the Run counters recipe, one row per run and metric. A run's counters hold every send and callback of that run. For people per run, read email_opened_by_person and email_clicked_by_person from the same rows. They are approximate counts of people, never opens or clicks, and the Run counters notes give their limits. They exist from 2026-11-05. The events carry no run id, so the event recipes cannot isolate one run: their window holds every run in it. Say so beside their people counts.
  • Versioned counters have start dates. posthog:workflows-version-stats and the Clicked links recipe read the versioned counters. They hold sends and email_untracked from 2026-08-06, and deliveries, opens, clicks, bounces and complaints from 2026-09-01. Before those dates the versioned series is partial, even when it shows numbers. Deliveries, opens, clicks, bounces and complaints whose message lost its version are missing from it, so its ratios read slightly low. Start every versioned read, a version comparison included, on or after the start date of each metric it reports. When the window must start earlier, report those metrics as unknown.
  • Counters keep 90 days. The counters behind the stats tools and the counter recipes expire after 90 days. For a window that starts earlier, report the expired counters as unavailable, never as zero, and read the events instead.
  • Aggregates by default. Leave email addresses, full link URLs and person UUIDs out of reports. Click events can hold a link's full URL, tokens included, so read links only through the Clicked links recipe. Name a person by the identifier the user gave you.
  • Unsubscribes count from 2026-10-27. The email_unsubscribed counter counts each opt-out against the step whose email link it came through. Read it like the other counters: posthog:workflows-stats for most workflows, and Run counters for a broadcast run. It counts a one-click unsubscribe by someone not yet fully opted out, and a preferences save that newly opts out of a category. Links in emails sent before 2026-10-27 carry no step, so a window that starts earlier undercounts. The versioned counters do not hold it. The $workflows_email_unsubscribed event uses the email address as its distinct ID and fires once for each category a person leaves, so count unsubscribes per step from the counter. Links in emails sent from 2026-11-10 also put $workflow_id, $workflow_action_id and $workflow_version on the event. For those sends only, count distinct properties.$email per version on the event to compare versions.
  • Attempts outside email_sent. The counters also record email that did not go out: email_failed, email_suppressed, email_opted_out, email_missing_recipient, email_bounce_prevented, email_paused, email_suspended, and message_frequency_capped for a recipient at the frequency cap. message_frequency_cap_held counts sends held for a later slot, which may still go out. Sends from the PostHog test sender record as email_sandbox_sent, email_sandbox_blocked and email_sandbox_failed instead. None of them is a send or a denominator. Report them as counts beside email_sent.
  • Email events land on the person who triggered the run. They take the distinct ID of the trigger event, not of the address the step sent to. When a step emails someone else, such as an account owner or a fixed address, its people counts, outcomes and history describe the people who triggered it. Check the step's recipient in posthog:workflows-get, and say so in the report.
  • Spam complaints are a floor. email_blocked and $workflows_email_blocked count the spam complaints that mailbox providers report back. Gmail does not report them, so a zero does not prove that no one complained.

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed c473b77ff1a2
  2. 3d ago Changed 21cd9f4545e5
  3. 6d ago Changed a4df62af8139
  4. 7d ago Changed 5f6166dfe4ad
  5. 11d ago Changed 645273132d79
  6. 16d ago First seen · 123 lines · 113 tokens per session scan A a0957cfdea9b

Subscribe to this mod's changes

measuring-email-performance is a skill published in the GitHub repository PostHog/skills (81 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 4,174 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

measuring-email-performance compared with skills from other repositories

measuring-email-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
measuring-email-performancePostHog/skillsSkill81todayMITA113Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code