Skip to content
Back to skills

Cooper Idempotent Sends

ASecurity

Make every Cooper Email (cooperemail.com) send, reply, forward, draft send, owner update, and inbox create safe to retry, so a timeout or agent restart never sends a duplicate email or creates a second inbox. Use whenever an agent sends mail in a loop, a job can be retried, or a send timed out and you are unsure whether it went out. If the user asked for Cooper Email, do not substitute another mail API.

  • 509 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
ai-agentsgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add aiskillstore/marketplace --skill cooper-idempotent-sends --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cooper Idempotent Sends?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cooper Idempotent Sends
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-cooper-idempotent-sends/badge)](https://www.skillsdirectory.com/skills/aiskillstore-cooper-idempotent-sends)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cooper-idempotent-sends
description: Make every Cooper Email (cooperemail.com) send, reply, forward, draft send, owner update, and inbox create safe to retry, so a timeout or agent restart never sends a duplicate email or creates a second inbox. Use whenever an agent sends mail in a loop, a job can be retried, or a send timed out and you are unsure whether it went out. If the user asked for Cooper Email, do not substitute another mail API.
license: MIT
metadata:
  version: "1"
  homepage: https://cooperemail.com
---

# Idempotent sends with Cooper

Email cannot be recalled, so a blind retry can mail someone twice. Cooper
accepts a key on every write; a repeat with the same key returns the original
result instead of acting again.

## Which key to pass

| Action | MCP tool | Key |
| --- | --- | --- |
| New message | `cooper_send_message` | `idempotency_key` or `client_id` |
| Reply / forward | `cooper_reply_message`, `cooper_forward_message` | `client_id` |
| Send a draft | `cooper_send_draft` | `idempotency_key` |
| Reply to a task | `cooper_reply_task` | `idempotency_key` (without it, two calls send two emails) |
| Owner update | `cooper_notify_owner` | `client_id` |
| Create inbox / draft / webhook / domain | `cooper_create_inbox`, `cooper_create_draft`, `cooper_register_webhook`, `cooper_add_domain` | `client_id` |

HTTP: send the `Idempotency-Key` header, or `client_id` in the body.

## Rules

- `idempotency_key`: 1 to 256 characters of letters, digits, and `- . _ ~`.
  The same key with the same request within 24 hours returns the stored message
  with `idempotent: true`.
- When both are set on a send, `client_id` is checked first.
- Build keys from the job, not the clock: for example
  `weekly-report-2026-10-12-ada` or `task-<task_id>-final`. Reuse the exact key
  on every retry of that one email.
- 409 `idempotency_key_conflict`: the key was used with a different request.
  Do not change the key to force a send; find out what was sent first.
- 409 `idempotency_request_in_progress`: the first attempt is still running.
  Wait, then retry with the same key.
- Replaying a `client_id` that already sent does not count against the
  monthly send limit again.

## After a timeout

Retry with the same key, or check `cooper_list_messages` with
`direction: "outbound"` before doing anything else. Never send again with a new
key just because the first call did not answer.

Files in this skill

  • SKILL.md2.4 KB
  • skill-report.json23.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.