agent-email-inbox
Use when setting up a secure email inbox for any AI agent — configuring inbound email via Resend, webhooks, tunneling for local development, and implementing…
Skill by MoizIbnYousaf
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/moizibnyousaf-agent-email-inbox
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-email-inbox
What's inside
- Skill name
agent-email-inbox- Description
- Use when setting up a secure email inbox for any AI agent — configuring inbound email via Resend, webhooks, tunneling for local development, and implementing security measures to prevent prompt injection attacks. Also use when someone mentions 'agent email', 'bot inbox', 'receive emails for agent', 'agent webhook', 'email security for AI', 'prompt injection via email', 'inbound email for bot', or wants their AI agent to receive and respond to emails securely.
- License
- MIT
- Instructions
- 216 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- security-levels.md · references/
SKILL.md (first lines)
# AI Agent Email Inbox
Set up a secure email inbox that lets an AI agent receive and respond to emails, with protection against prompt injection and email-based attacks.
**Core principle:** An AI agent's inbox is a potential attack vector. Malicious actors can email instructions that the agent might blindly follow. Security configuration is not optional — it's the first thing you implement, not the last.
This skill is context-independent — it does not use `brand/` files and works identically in any project.
## On Activation
1. Ask the user which agent needs an email inbox and what framework they're using (Next.js, Express, etc.).
2. Determine environment: local development or production deployment.
3. Walk through domain setup (Resend-managed or custom).
4. Set up webhook endpoint with signature verification.
5. If local dev: configure tunneling.
6. Implement security level — read [references/security-levels.md](references/security-levels.md) and present options to the user.
7. Connect webhook to agent processing.
**Output:** A configured webhook handler file, environment variable checklist, and security configuration.
## Architecture
```
Sender → Email → Resend (MX) → Webhook → Your Server → AI Agent
↓
Security Validation
↓
Process or Reject
```
## Before You Start: Account & API Key Setup
Ask the user:
- **New account just for the agent?** → Simpler setup, full account access is fine
- **Existing account with other projects?** → Use domain-scoped API keys to limit what the agent can access. Even if the key leaks, it can only send from one domain.
> **Don't paste API keys in chat!** They'll persist in conversation history. Have the user write directly to `.env` or use a secrets manager.
## Domain Setup
### Option 1: Resend-Managed Domain (Recommended for Getting Started)
Use your auto-generated address: `<anything>@<your-id>.resend.app`. No DNS configuration needed.
### Option 2: Custom Domain
The user enables receiving in the Resend dashboard, then adds an MX record:
| Setting | Value |
|---------|-------|
| **Type** | MX |
| **Host** | Your domain or subdomain (e.g., `agent.yourdomain.com`) |
| **Value** | Provided in Resend dashboard |
| **Priority** | 10 (lowest number takes precedence) |
**Use a subdomain** (e.g., `agent.yourdomain.com`) to avoid disrupting existing email services on your root domain — otherwise all email routes to Resend.
## Webhook Setup
The user registers a webhook in Resend dashboard (Webhooks → Add Webhook → select `email.received`). They need the endpoint URL you'll create and the signing secret for verification.
```typescript
// app/api/webhooks/email/route.ts (Next.js App Router)
import { Resend } from 'resend';
import { NextRequest, NextResponse } from 'next/server';
const resend = new Resend(process.env.RESEND_API_KEY);
export async function POST(req: NextRequest) {
try {
const payload = await req.text();
const event = resend.webhooks.verify({
payload,
headers: {
'svix-id': req.headers.get('svix-id'),
'svix-timestamp': req.headers.get('svix-timestamp'),
'svix-signature': req.headers.get('svix-signature'),
},
secret: process.env.RESEND_WEBHOOK_SECRET,
});
if (event.type === 'email.received') {
const { data: email } = await resend.emails.receiving.get(
event.data.email_id
);
// Security validation happens here (see Security Levels)
await processEmailForAgent(event.data, email);
}
return new NextResponse('OK', { status: 200 });
} catch (error) {
console.error('Webhook error:', error);
return new NextResponse('Error', { status: 400 });
}
}
```
Resend retries failed deliveries with exponential backoff over ~6 hours. Emails are stored even if webhooks fail.
## Local Development with Tunneling
Your local server isn't accessible from the internet. Use tunneling to expose it:
| Option | Persistent URL? | Cost |
|--------|----------------|------|
| **ngrok (paid)** | Yes (static subdomain) | $8/mo |
| **Cloudflare named tunnel** | Yes (your own domain) | Free |
| **ngrok (free)** | No (changes on restart) | Free |
| **VS Code Port Forwarding** | No (changes per session) | Free |
For webhooks, persistent URLs matter — otherwise you re-register the URL every time the tunnel restarts. See the tunneling docs for each tool for setup instructions.
```bash
# ngrok (paid - recommended for persistent dev)
ngrok http --domain=myagent.ngrok.io 3000
# Cloudflare named tunnel (free but more setup)
cloudflared tunnel run my-agent-webhookFrom MoizIbnYousaf/marketing-cli, MIT.
More from MoizIbnYousaf/marketing-cli
- 0.589score
manim-composer
MoizIbnYousaf
Trigger when: (1) User wants to create an educational/explainer video, (2) User has a vague concept they want visualized, (3) User mentions "3b1b style" or…
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
direct-response-copy
MoizIbnYousaf
Write copy that converts.
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
keyword-research
MoizIbnYousaf
Strategic keyword research powered by web search and brand context.
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
landscape-scan
MoizIbnYousaf
Scan the current market landscape and produce a ground-truth ecosystem snapshot.
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
manimgl-best-practices
MoizIbnYousaf
Trigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains `from manimlib import *`, (3) User runs `manimgl` CLI commands, (4)…
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
brand-voice
MoizIbnYousaf
Define or extract a consistent brand voice that other skills can use.
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
competitive-intel
MoizIbnYousaf
Research and analyze competitors to find positioning gaps and strategic opportunities.
SkillBFreshness: B★ 32Claude Code +9 - 0.589score
audience-research
MoizIbnYousaf
Build detailed buyer personas and audience profiles from research.
SkillBFreshness: B★ 32Claude Code +9 - 0.585score
marketing-demo
MoizIbnYousaf
Record product demos and walkthroughs for marketing assets.
SkillBFreshness: B★ 32Claude Code +9 - 0.585score
churn-prevention
MoizIbnYousaf
Designs cancel flow UX, dunning email sequences, win-back campaigns, and retention triggers.
SkillBFreshness: B★ 32Claude Code +9 - 0.585score
email-sequences
MoizIbnYousaf
Build automated email flows that nurture, convert, and retain.
SkillBFreshness: B★ 32Claude Code +9 - 0.585score
conversion-flow-cro
MoizIbnYousaf
Optimizes multi-step conversion flows including signup, onboarding, upgrade, and checkout.
SkillBFreshness: B★ 32Claude Code +9
Signals
- Stars
- 32
- Forks
- 5
- Open issues
- 1
- Last commit (this folder)
- May 3, 2026 (5 months ago)
- Last release
- Aug 16, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/MoizIbnYousaf/marketing-cli
- Website
- www.marketing-cli.com/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MoizIbnYousaf
- 0.743score
verification-agent
MoizIbnYousaf
Verify claims, quotations, citations and references against live primary sources, and produce a reproducible audit record instead of an assertion.
SkillBFreshness: B★ 1.2KClaude Code +9 - 0.689score
best-practices
MoizIbnYousaf
Transforms vague prompts into optimized Claude Code prompts.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
browse-and-evaluate
MoizIbnYousaf
Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
audit-library-health
MoizIbnYousaf
Use when checking the overall health of a skills library.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
build-workspace-docs
MoizIbnYousaf
Use when regenerating README.md and WORK_AREAS.md in a managed library workspace.
SkillCFreshness: C★ 1.2KClaude Code +9 - 0.687score
curate-a-team-library
MoizIbnYousaf
Use when building a managed team skills library for a real stack.
SkillCFreshness: C★ 1.2KClaude Code +9
Cite this page
agent-email-inbox skill. Agent Mart. https://agentmart.dev/skills/moizibnyousaf-agent-email-inbox (last updated 2026-10-24)