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.
npx skills add PostHog/skills --skill measuring-email-performancegit clone --depth 1 https://github.com/PostHog/skillsWrote 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.
[](https://agentmods.dev/skills/posthog/skills/measuring-email-performance)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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-statsand 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) ortracked_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 withconfig.click_tracking_enabledset tofalsesends with clicks off by default (unless a code send overrides it viatracking), and a sensitive step (config.sensitiveinposthog:workflows-get) has click tracking off by default unlessconfig.click_tracking_enabledis true or a code send opts in viatracking. 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_bouncedalready includesemail_bounced_hard,email_bounced_transientandemail_bounced_undetermined. Report hard bounces fromemail_bounced_hard, and reportemail_bouncedas 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 includebeforeitself and keep microseconds, so pass the last microsecond of the window. A relativeafter=-7dstarts 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-sqlalso 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_idin the stats tools,{step_id}in the recipes. Without it, every step of the workflow shares one denominator. Theconversioncounter belongs to the whole workflow, and itsinstance_idis the workflow id. Read it withoutinstance_idin the stats tools. Run counters includes it. It can also returnconversion_by_start: the same conversions, filed under the UTC hour the run started, recorded only for runs that started from 2026-11-13. Reportconversionfor a window that starts earlier, and never add the two. - Broadcasts and batch runs key their counters on the run.
posthog:workflows-statsreturns zeros for such a workflow, even when its runs sent. List its runs and their start times withposthog: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, reademail_opened_by_personandemail_clicked_by_personfrom 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-statsand the Clicked links recipe read the versioned counters. They hold sends andemail_untrackedfrom 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_unsubscribedcounter counts each opt-out against the step whose email link it came through. Read it like the other counters:posthog:workflows-statsfor 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_unsubscribedevent 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_idand$workflow_versionon the event. For those sends only, count distinctproperties.$emailper 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, andmessage_frequency_cappedfor a recipient at the frequency cap.message_frequency_cap_heldcounts sends held for a later slot, which may still go out. Sends from the PostHog test sender record asemail_sandbox_sent,email_sandbox_blockedandemail_sandbox_failedinstead. None of them is a send or a denominator. Report them as counts besideemail_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_blockedand$workflows_email_blockedcount the spam complaints that mailbox providers report back. Gmail does not report them, so a zero does not prove that no one complained.
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.
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.
- yesterday Changed c473b77ff1a2
- 3d ago Changed 21cd9f4545e5
- 6d ago Changed a4df62af8139
- 7d ago Changed 5f6166dfe4ad
- 11d ago Changed 645273132d79
- 16d ago First seen · 123 lines · 113 tokens per session scan A a0957cfdea9b
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.
measuring-email-performance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| measuring-email-performancePostHog/skills | Skill | 81 | today | MIT | A | 113 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |