Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

resend-cliresend CLI 命令行

Agent Skill

resend-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

549

周安装

22

GitHub Stars

公开资料未说明

下载量

178
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:resend-cli(resend CLI 命令行)
来源仓库:https://github.com/tristanmanchester/agent-skills
仓库路径:skills/resend-cli
安装命令:
npx skills add https://github.com/tristanmanchester/agent-skills --skill resend-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tristanmanchester/agent-skills --skill resend-cli

简介

resend-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于邮件发送、通知服务或 CLI 工具集成等场景。
  • 通过关键词匹配和来源仓库内容,提供 Resend 相关命令行工具或配置参考。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法和功能边界。

SKILL.md

Resend CLI

This skill is for agents that should operate Resend through the official CLI first, not by dropping straight to raw REST.

The goal is not just “know the commands”. The goal is to make an agent:

  1. choose the right Resend primitive,
  2. choose the right CLI command,
  3. run it in a deterministic non-interactive way,
  4. detect the important CLI coverage gaps before it gets stuck, and
  5. fall back to MCP/API only when the CLI genuinely does not cover the job.

Start here

Load only the files that match the task:

  • references/agent-operating-model.md — the default decision process for live Resend work
  • references/install-auth-and-profiles.md — install methods, auth priority, profiles, config paths
  • references/subprocess-contract.md — how agents should invoke resend safely and parse output
  • references/command-selection.md — fast routing from user intent to the right command(s)
  • references/sending-scheduling-and-batch.md — transactional sends, schedules, tags, attachments, batch limits
  • references/domains-dns-and-deliverability.md — domain creation, verification, receiving, TLS, tracking, 403/domain mismatch
  • references/webhooks-and-listeners.md — webhook creation, update, signature handling, temporary local listeners
  • references/inbound-receiving-and-threading.md — inbound list/get/attachments/forward/listen flows
  • references/contacts-topics-segments-and-broadcasts.md — subscription modelling, targeting, campaigns
  • references/templates-and-coverage-gaps.md — template lifecycle and the important current CLI gaps
  • references/diagnostics-and-fallbacks.md — debug order, CLI quirks, when to fall back to MCP/API
  • references/recipes.md — short end-to-end playbooks
  • references/sources.md — first-party source manifest and refresh notes

Machine-readable assets:

  • assets/command-catalog.json — command index with detail levels (source_inspected, readme_confirmed, tree_confirmed)
  • assets/task-router.json — route common tasks to command sequences
  • assets/error-map.json — fast-fail diagnosis hints
  • assets/coverage-gaps.json — current CLI limitations and ambiguities that matter to agents
  • assets/subprocess-contract.json — deterministic invocation defaults
  • assets/scaffold-index.json — reusable command/file scaffolds
  • assets/source-manifest.json — authoritative URLs used to build this skill

Bundled helper:

  • scripts/resend_cli.py — agent wrapper for probing, routing, scaffolding, batch linting, diagnosis, and safe subprocess execution

Core operating rules

1) Prefer the official CLI for live Resend work

Default order of preference:

  1. Official Resend CLI for live terminal/CI/agent operations
  2. Official Resend MCP server if the environment already exposes it and the CLI is unavailable
  3. Official SDK when editing app code inside an existing integration
  4. Raw REST only for stack-neutral examples, protocol debugging, or feature gaps

Do not choose raw REST just because it is familiar.

2) For agents, stay non-interactive by default

For bounded commands:

  • pass all required flags explicitly
  • use global --json -q
  • prefer RESEND_API_KEY or a stored profile over typing secrets interactively
  • set RESEND_NO_UPDATE_NOTIFIER=1 for deterministic output
  • capture both stdout and stderr defensively

3) Run doctor early when the environment is unknown

When you do not know whether the CLI is installed, authenticated, or pointed at the right account:

resend --json -q doctor

This is usually the fastest first read on:

  • CLI availability/version
  • whether an API key is being resolved
  • whether verified domains exist
  • whether the machine looks like an AI-agent environment

4) Choose the primitive before the command

  • One logical transactional email → emails send
  • Up to 100 distinct transactional emails in one request → emails batch
  • Scheduled transactional email mutation → emails update / emails cancel
  • Campaign to a segment → broadcasts create / broadcasts send
  • Reusable hosted content → templates *
  • Sender or receiving setup → domains *
  • Inbound processing → emails receiving * + webhooks *
  • Scoped credentials → api-keys *
  • Recipient data and preferences → contacts, contact-properties, topics, segments
  • Local dev event loop → webhooks listen or emails receiving listen

5) Know the current CLI gaps

This version of the skill treats these as especially important:

  • Template send gap: the CLI manages templates, but the current emails send command surface does not expose a direct --template-id/template-vars flow.
  • Domain capability update gap: domains update exposes TLS/open/click tracking, but not an explicit sending/receiving capability toggle, while inbound help text references such a toggle.
  • Stream commands are special: webhooks listen and emails receiving listen are long-running and should be treated as NDJSON/event streams in agent mode.
  • JSON error channel discrepancy: the README promises machine JSON on stdout only, but the current source writes JSON errors with console.error, so wrappers must parse stderr too.

6) Keep IDs and file paths

Most multi-step flows become much easier if the agent persists:

  • domain IDs
  • email IDs
  • webhook IDs
  • topic IDs
  • segment IDs
  • template IDs/aliases
  • API key IDs
  • the file paths it generated for HTML or batch JSON

The mutation ladder

For state-changing live operations:

  1. classify the task
  2. confirm the command sequence
  3. make any needed file assets (.html, batch JSON)
  4. run with --json -q
  5. verify with get, list, or a follow-up check
  6. persist returned IDs and next-step context
  7. only then continue to the next mutation

Bundled helper script

scripts/resend_cli.py is intentionally agent-oriented.

Commands:

  • probe — find the CLI, report install hints, and show environment basics
  • catalog — list known commands from the bundled catalogue
  • info — inspect one command and its notes/gaps
  • recommend — route a free-text task to the best CLI sequence
  • scaffold — print or materialise sample commands/files
  • lint-batch — statically validate an emails batch JSON file
  • doctor — explain likely causes of common CLI/API failures
  • run — execute the official CLI with deterministic defaults and tolerant JSON parsing

Examples:

python3 scripts/resend_cli.py probe
python3 scripts/resend_cli.py catalog --resource emails
python3 scripts/resend_cli.py info "emails send"
python3 scripts/resend_cli.py recommend "send 70 different shipment notifications"
python3 scripts/resend_cli.py scaffold batch-send --write-dir ./tmp
python3 scripts/resend_cli.py lint-batch ./tmp/batch-emails.json
python3 scripts/resend_cli.py doctor --command "emails send" --status 403 --message "1010 forbidden"
python3 scripts/resend_cli.py run -- emails list --limit 5

Response shape this skill should produce

A strong answer usually includes:

  1. the exact Resend primitive,
  2. the exact CLI command or command sequence,
  3. any file scaffolding the user needs,
  4. the operational caveats that matter here,
  5. the verification step,
  6. the fallback path if the CLI does not currently cover the flow.

Example prompts this skill should handle

  • “Use the Resend CLI to send a scheduled password reset email”
  • “Should I use emails send, emails batch, or broadcasts create?”
  • “Create a sending + receiving domain in eu-west-1
  • “Set up local webhook listening with ngrok”
  • “Why is my batch file failing?”
  • “How do I manage multiple Resend accounts from one agent?”
  • “Can the CLI send a hosted template directly?”
  • “How should my agent parse resend output safely?”

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.16%
按下载量换算63

Claude

33.68%
按下载量换算60

Cursor

18.3%
按下载量换算33

Gemini CLI

10.2%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills