Skip to content

Add Claude Code skill for Resend CLI#96

Open
domumdigital wants to merge 11 commits intoresend:mainfrom
domumdigital:add-claude-code-skill
Open

Add Claude Code skill for Resend CLI#96
domumdigital wants to merge 11 commits intoresend:mainfrom
domumdigital:add-claude-code-skill

Conversation

@domumdigital
Copy link

@domumdigital domumdigital commented Mar 13, 2026

Summary

Adds a Claude Code skill that gives Claude direct access to all 53 Resend CLI
subcommands plus auth profiles, diagnostics, and utility commands.

What it does: When installed, Claude can send emails, manage domains, contacts,
broadcasts, templates, webhooks, and run diagnostics — all through the Resend CLI
with structured JSON output.

Safety: The skill enforces confirmation before destructive actions (sending
emails, deleting resources, etc.).

Repo: https://github.com/domumdigital/ResendCLI


Summary by cubic

Adds a Claude Code skill for the resend CLI so Claude can manage email infrastructure with structured --json output and confirmation before destructive actions. Covers emails, domains, contacts, broadcasts, templates, webhooks, auth, and diagnostics.

  • New Features

    • Access to all 53 resend subcommands with --json outputs.
    • Safety guardrails: confirm before sending emails, deleting resources, or other destructive actions.
    • Docs: added references and evals, and updated skills/ResendCLI/README.md with clearer install paths (standalone or bundled in resend-cli) and trigger behavior. Cleanup: removed stray skills/skillz, skills/evals, skills/ResendCLI/new, skills/references, skills/README.md, and skills/SKILL.md.
  • Migration

    • Requires resend CLI and a Resend API key (env var or resend login profile).
    • Install to ~/.claude/skills/ResendCLI (clone directly or copy from a bundled resend-cli repo).

Written for commit 5d1fcbd. Summary will update on new commits.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 issues found across 6 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="skills/skillz">

<violation number="1" location="skills/skillz:1">
P2: The newly added skill file is empty, so it does not implement any Resend CLI skill behavior described by the PR.</violation>
</file>

<file name="skills/evals/evals.json">

<violation number="1" location="skills/evals/evals.json:75">
P2: Send-email eval omits required message body option for `resend emails send`, allowing incomplete commands to pass.</violation>
</file>

<file name="skills/README.md">

<violation number="1" location="skills/README.md:28">
P2: Install instructions copy the repo root, but the skill files (SKILL.md, evals/, references/) live under skills/. This places SKILL.md one level too deep and Claude Code won’t discover the skill.</violation>
</file>

<file name="skills/references/commands.md">

<violation number="1" location="skills/references/commands.md:88">
P2: Pagination instructions incorrectly treat `has_more` as a cursor source; `has_more` is a boolean flag, while `--after`/`--before` require item ID cursors.</violation>
</file>

<file name="skills/SKILL.md">

<violation number="1" location="skills/SKILL.md:15">
P2: The skill mandates a single command wrapper that only reads `RESEND_API_KEY` from `.env.local`, but later instructions say keys may live in `.env`, under alternate names, or via profiles. Because the wrapper is described as required for every command, following it will ignore those valid auth setups and can leave `RESEND_API_KEY` empty even when a key exists elsewhere.</violation>

<violation number="2" location="skills/SKILL.md:43">
P2: Resend CLI docs state env vars override saved profile/config, but this line claims the profile takes precedence. This misstates auth resolution and could cause the skill to target the wrong account when RESEND_API_KEY is set.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@domumdigital
Copy link
Author

All 6 issues flagged by cubic-dev-ai have been addressed:

  • Deleted the empty "skillz" artifact (placeholder during creation)
  • Added body option requirement (--text/--html/--html-file) to the send-email eval
  • Fixed install instructions for both standalone and bundled contexts
  • Corrected pagination docs — has_more is a boolean, cursors use the last item's ID
  • Command wrapper now shows patterns for .env.local, .env, and CLI profiles
  • Fixed auth precedence to: --api-key flag > env-var > CLI profile
  • Restructured files under skills/ResendCLI/ so the directory can hold multiple skills

This skill gives Claude Code users direct access to all 53 Resend CLI subcommands with safety guardrails. Claude confirms before sending emails, deleting resources, or any destructive action. It includes a full command reference, troubleshooting workflows, and 10 eval test cases.

Happy to make any further changes if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant