json-schema-emails

json-schema-emails is a skill for Claude Code, Codex from provos/ironcurtain. It costs 62 tokens per session (446 once invoked), scanned A, original, Apache-2.0.

A reference for the JSON file used to pass email data between workflow steps. JSON is a text format for structured data, and this file contains an array of email objects.

In plain words
What is it for?
Use it when reading or writing emails.json to validate sender, recipient, subject, date, and body fields and preserve the intended display order.
Why use it?
It keeps the step that fetches emails and the step that summarizes them aligned on required fields, types, meanings, and order.

Skill for Claude CodeCodex

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

Good fit Use it when reading or writing emails.json to validate sender, recipient, subject, date, and body fields and preserve the intended display order.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/provos/ironcurtain/json-schema-emails
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 provos/ironcurtain --skill json-schema-emails
Clone the repo
git clone --depth 1 https://github.com/provos/ironcurtain

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 json-schema-emails

README.md
[![agentmods](https://agentmods.dev/badge/skills/provos/ironcurtain/json-schema-emails/github.svg)](https://agentmods.dev/skills/provos/ironcurtain/json-schema-emails)
Your own site
<a href="https://agentmods.dev/skills/provos/ironcurtain/json-schema-emails"><img src="https://agentmods.dev/badge/skills/provos/ironcurtain/json-schema-emails/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 json-schema-emails

Your own site · 80×15
<a href="https://agentmods.dev/skills/provos/ironcurtain/json-schema-emails"><img src="https://agentmods.dev/badge/skills/provos/ironcurtain/json-schema-emails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00062 $0.00446
Opus 5 $0.00031 $0.00223
Sonnet 5 $0.00012 $0.00089
Haiku 4.5 $0.00006 $0.00045

Measured 10d ago against content hash f6a61b970912, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

json-schema-emails 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 10d ago.

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.

src/workflow/workflows/test-email-summary/skills/json-schema-emails/SKILL.md · 42 lines

What it actually says

emails.json schema

The fetch state writes .workflow/emails/emails.json and the summarize state reads it. The file is a single JSON array of email objects. The canonical JSON Schema is in the sibling file schema.json; this document explains the fields and their semantics.

Top-level shape

A JSON array. Each element is an email object. The array order is preservation order — the consumer renders emails in the order they appear, so the producer should write them in the order it wants them rendered (typically newest-first as returned by the API).

Email object fields

All fields are required and must be strings unless noted.

  • sender — the From address. Format Name <[email protected]> if the source provides a display name, else the bare address.
  • recipient — the To addresses, comma-separated. If the source has multiple To recipients they are joined with , (comma + space). CC and BCC are not represented in this schema.
  • subject — the email subject line, verbatim. Empty string is allowed if the source has no subject; do not substitute "(no subject)".
  • date — the date as it appears in the source headers (RFC 2822 or whatever the API returns). Do not reformat or normalize the timezone.
  • body — the message body as plain text. If the source is HTML, the producer is responsible for stripping tags before writing. Newlines are preserved; tabs are replaced with two spaces.

Validating

The sibling schema.json is a draft-2020-12 JSON Schema. Tooling that needs to validate the file structurally should load it from there; this document is the human-readable companion.

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. 10d ago First seen · 42 lines · 62 tokens per session scan A f6a61b970912

Subscribe to this mod's changes

json-schema-emails is a skill published in the GitHub repository provos/ironcurtain (602 stars, last pushed 4d ago), licensed Apache-2.0. It adds 62 tokens to every session and 446 once invoked, about $0.0003 per session on Opus 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-08-30.