Skip to main content
skill CX Codex

recoup-platform-email-helper — Claude Code skill

Sends mail through the Recoup API from a Node script: the body gets serialized properly, and an empty body stops the send instead of going out.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add recoupable/skills --skill recoup-platform-email-helper -a claude-code
Open on GitHub

What recoup-platform-email-helper does

Reach for this skill when a task calls for mailing a report, summary or notification to the account owner or another recipient. It ships one Node script, scripts/send-email.mjs, which handles body serialization on its own. Building the JSON by hand with curl and inline jq is the fragile path: bad quoting lets a footer-only message titled “Message from Recoup” go out while the API still answers success:true. The script drops shell serialization entirely.

Writing the body to a file is the safer route, especially for HTML, since escaping stops being a concern. The script takes --subject, --html-file or --html, --text-file or --text, --to, --cc and --chat-id. With --dry-run it validates the payload and prints it without sending, which works as a preview. Leave --to out and the message goes to the account's own address.

A body is mandatory and there must be exactly one: with no non-empty --html or --text the script exits with code 2 and sends nothing. A non-zero code means the mail did not leave — read stderr and fix it rather than reporting success. Credentials come from the environment as RECOUP_API_KEY or RECOUP_ACCESS_TOKEN plus RECOUP_API_BASE; never print them. Node only, no dependencies, and python3 is not guaranteed in the sandbox.

What it helps with

  • mail a daily report to the account owner
  • notify several recipients at once with --to
  • preview the message body before sending via --dry-run
  • stop hand-assembling JSON in the shell
  • catch a failed send by its exit code

Example prompts for the agent

  • Build the daily summary and email it to the account owner with recoup-platform-email-helper
  • Send a message with the subject “Weekly report” and the body from report.html to two addresses
  • Preview the email with --dry-run and don't send anything

How to install recoup-platform-email-helper

1Skills CLI (Vercel)

npx skills add recoupable/skills --skill recoup-platform-email-helper -a claude-code

2Manually: put the files in place

~/.claude/skills/recoup-platform-email-helper/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/recoup-platform-email-helper/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about recoup-platform-email-helper

How do I install recoup-platform-email-helper in Claude Code?

Run npx skills add recoupable/skills --skill recoup-platform-email-helper -a claude-code. The skill lands at ~/.claude/skills/recoup-platform-email-helper/SKILL.md.

What does recoup-platform-email-helper do?

It sends mail through the Recoup API by running the bundled Node script scripts/send-email.mjs. Serialization happens inside the script, so a footer-only empty message never goes out.

What does the skill need to work?

Node, plus RECOUP_API_KEY or RECOUP_ACCESS_TOKEN and RECOUP_API_BASE in the environment. Sending goes through recoup-platform-api-access.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set7

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor