Skip to content
Security
Skill

/json-schema-emails

Canonical shape of the .workflow/emails/emails.json file passed between the fetch and summarize states — required fields (sender, recipient, subject, date, body), types, and field semantics. Read this whenever you write or read emails.json so producer and consumer agree on the

BOOST
From plugin
ironcurtain
6147 skills2 agents
Install
$ npx -y skills add provos/ironcurtain --skill json-schema-emails --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/json-schema-emails

Context preview

The summary Claude sees to decide when to auto-load this skill.

Canonical shape of the .workflow/emails/emails.json file passed between the fetch and summarize states — required fields (sender, recipient, subject, date, body), types, and field semantics. Read this whenever you write or read emails.json so producer and consumer agree on the

SKILL.md

json-schema-emails.SKILL.md
name: json-schema-emails
description: Canonical shape of the .workflow/emails/emails.json file passed between the fetch and summarize states — required fields (sender, recipient, subject, date, body), types, and field semantics. Read this whenever you write or read emails.json so producer and consumer agree on the shape.

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 <addr@example.com>` 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.

Read more
Ships withironcurtain

A secure\* runtime for autonomous AI agents, where security policy is derived from a human-readable constitution. _\*When someone writes "secure," you should immediately be skeptical. What do we mean by secure?_

Get the whole plugin

Other skills on ironcurtain.