/e2a:email-evalsfrom e2a
Authors and runs deterministic email-agent evaluation suites with synthetic test cases, dry-run plans, and regrading support.
Ships in e2a. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ask one logical question at a time; do not dump a questionnaire. Ask exactly one prompt, wait for the answer, then advance. Conditionally omit a later prompt only when an earlier answer proves its field irrelevant; never bundle prompts.
This skill does not build or start the target agent runtime.
Refuse real customer messages, identifiers, customer domains, or production-derived fixtures. Immediately propose a synthetic replacement, such as a fictional order identifier and a .test mailbox. Keep every case and attachment synthetic.
Do not scaffold until these answers are sufficient to make deterministic assertions.
Never change e2a protection. Tell the user to configure containment separately, in the same dedicated account for e2a, with an account-scoped API key:
allowlist/block [target]allowlist/block [actor, probes...]Use dedicated actor and target agents only. Do not infer, broaden, or repair protection settings; surface protection failures during validation instead.
After gathering sufficient answers, scaffold the suite:
Resolve the absolute directory containing this loaded SKILL.md resource.
For the tool call, set EMAIL_EVALS_LAUNCHER to the absolute path formed by
joining that resource directory with email-evals.sh. This is an agent-local
value, not a persisted environment variable. Do not derive it from the user's
current directory or a client-specific plugin-root variable.
"$EMAIL_EVALS_LAUNCHER" scaffold --root <suite-root> --name <suite-name> --target-env <target-env> --actor-env <actor-env>
Edit the generated suite.yaml and case YAML files to reflect the answers. The
credential name is fixed outside suite authority: export only
E2A_EVAL_API_KEY. YAML interpolation is limited to the documented actor,
target, and probe mailbox fields; never interpolate names, actions, timing,
subjects, bodies, patterns, or attachment metadata.
Then verify the checked-in, single-file plugin runtime bundle and validate the suite. Setup performs no package installation and never copies or executes JavaScript or dependencies beneath the suite root:
Resolve the absolute directory containing this loaded SKILL.md resource.
For the tool call, set EMAIL_EVALS_LAUNCHER to the absolute path formed by
joining that resource directory with email-evals.sh. This is an agent-local
value, not a persisted environment variable. Do not derive it from the user's
current directory or a client-specific plugin-root variable.
"$EMAIL_EVALS_LAUNCHER" setup --root <suite-root>
"$EMAIL_EVALS_LAUNCHER" validate --suite <suite-root>/suite.yaml
Show the complete alias-only dry-run plan, its approvalDigest, and any
protection failures. Validation is the preflight gate; do not run a suite
while it reports a protection or capability failure. Treat the digest as an
opaque value; it binds the resolved identities, origin, containment posture,
stimuli, assertions, recipients, and execution limits without revealing them.
The public https://api.e2a.dev origin is the default. If the suite names a
custom/local origin, the operator must independently authorize the exact
origin on every command with --trusted-origin <origin>; cleartext origins
are restricted to loopback. Never infer this flag from suite content.
Ask for explicit user approval immediately before run, because it sends real email between the dedicated agents. Do not treat earlier authoring answers as approval.
Only after that approval, run:
Resolve the absolute directory containing this loaded SKILL.md resource.
For the tool call, set EMAIL_EVALS_LAUNCHER to the absolute path formed by
joining that resource directory with email-evals.sh. This is an agent-local
value, not a persisted environment variable. Do not derive it from the user's
current directory or a client-specific plugin-root variable.
"$EMAIL_EVALS_LAUNCHER" run --suite <suite-root>/suite.yaml --approval-digest <approvalDigest-from-validate>
If the suite, resolved mailbox identities, custom origin, protection posture,
or plan changed since validation, run fails closed. Validate again, show the
new complete plan, and request fresh approval; never substitute or guess a
digest.
Read the generated report.md. Summarize deterministic failures without hiding errors, then propose the smallest case/agent change that addresses each failure.
When only assertions changed, use regrade instead of run; regrade performs no sends:
Resolve the absolute directory containing this loaded SKILL.md resource.
For the tool call, set EMAIL_EVALS_LAUNCHER to the absolute path formed by
joining that resource directory with email-evals.sh. This is an agent-local
value, not a persisted environment variable. Do not derive it from the user's
current directory or a client-specific plugin-root variable.
"$EMAIL_EVALS_LAUNCHER" regrade --suite <suite-root>/suite.yaml --run <run-dir>
Regrade accepts a changed full-suite digest only when the execution digest is
unchanged. It always uses the current validated assertions and rejects changes
to sending, correlation, timing, containment, actor, target, or origin inputs.
The output root also contains the private mode-0600
.email-evals-artifact-auth-key, which authenticates redaction-loss metadata
independently of the rotatable API key. Keep that hidden file with its run
directories; never publish it or place it inside a suite. Every ordinary case
record carries authenticated redaction state, including an explicit empty
declaration when no text was erased. Regrade fails closed if this authentication
root or a case's authenticated redaction state is missing, replaced, or altered.
If body evidence required configured-pattern redaction, the forbidden-pattern
set must remain identical (reordering is allowed); changing that set fails
closed because arbitrary new regexes cannot be evaluated against erased text.
Keep claims within the launch slice: no semantic judge, no deep HTML equivalence, no scheduled-send proof, and no full review/bounce/complaint matrix. Do not promise simulator, model, or data-generator features.
email-evals.sh (opens in a new tab)launcher.mjs (opens in a new tab)runtime/THIRD_PARTY_NOTICES.md (opens in a new tab)runtime/cli.mjs (opens in a new tab)runtime/lib/cli-arguments.mjs (opens in a new tab)runtime/lib/contract.mjs (opens in a new tab)runtime/lib/e2a-adapter.mjs (opens in a new tab)runtime/lib/errors.mjs (opens in a new tab)runtime/lib/grade-content.mjs (opens in a new tab)runtime/lib/grade-core.mjs (opens in a new tab)runtime/lib/mime.mjs (opens in a new tab)runtime/lib/normalize.mjs (opens in a new tab)runtime/lib/report.mjs (opens in a new tab)runtime/lib/result-contract.mjs (opens in a new tab)runtime/lib/runner.mjs (opens in a new tab)runtime/lib/safe-pattern.mjs (opens in a new tab)runtime/package-lock.json (opens in a new tab)runtime/package.json (opens in a new tab)runtime/test/bundle.test.mjs (opens in a new tab)runtime/test/cli.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tokencanopy/e2a --plugin e2a5 skills in this plugin
/e2aUse when operating an already-connected e2a inbox over MCP: reading, composing, sending, replying, forwarding, handling attachments, managing contacts/outreach, scheduling mail, or using templates. Teaches correct threading, conversation correlation, concise multipart composition, and accepted/pending-review no-retry behavior./e2a-doctorUse when an existing e2a MCP connection, inbox, custom domain, protection policy, webhook, or message delivery is failing or unclear. Diagnoses read-only through MCP first, ranks evidence-backed causes, and offers individually confirmed repairs; uses the CLI doctor only when CLI or self-hosted diagnostics are specifically relevant./e2a-integrateUse when adding e2a email capabilities to an application or codebase: outbound sending, inbound signed webhooks, REST polling, or SDK integration. Inspects the existing language and framework, uses official TypeScript/Python SDKs or idiomatic REST/OpenAPI, adds tests, and keeps credentials server-side./e2a-setupUse when a user wants to connect or authorize the e2a MCP server, select or create an agent inbox, verify first-run readiness, or set up a custom email domain. Guides native client OAuth, shared-domain onboarding, and confirmed DNS-provider assistance without changing application code.Other plugins' skills for the same job