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

sendgrid-automation发送网格自动化

Agent Skill

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

总安装

612

周安装

25

GitHub Stars

52

下载量

198
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill sendgrid-automation

简介

sendgrid-automation 用于查找、检索和筛选相关信息,支持基于关键词或场景匹配候选结果。

  • 它适用于需要快速聚合线索或数据的研究类 Agent 任务。
  • 通过 npx skills add 命令从指定仓库安装,具体用法需结合原始 SKILL.md 确认。
  • 使用前请评估是否需要联网权限,并注意技能是否依赖外部服务可用性。
  • 建议在安装后验证其在目标宿主中的响应准确性与稳定性。

SKILL.md

SendGrid Automation via Rube MCP

Automate SendGrid email delivery workflows including marketing campaigns (Single Sends), contact and list management, sender identity setup, and email analytics through Composio's SendGrid toolkit.

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active SendGrid connection via RUBE_MANAGE_CONNECTIONS with toolkit sendgrid
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit sendgrid
  3. If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Create and Send Marketing Campaigns (Single Sends)

When to use: User wants to create and send a marketing email campaign to a contact list or segment.

Tool sequence:

  1. SENDGRID_RETRIEVE_ALL_LISTS - List available marketing lists to target [Prerequisite]
  2. SENDGRID_CREATE_A_LIST - Create a new list if needed [Optional]
  3. SENDGRID_ADD_OR_UPDATE_A_CONTACT - Add contacts to the list [Optional]
  4. SENDGRID_GET_ALL_SENDER_IDENTITIES - Get verified sender ID [Prerequisite]
  5. SENDGRID_CREATE_SINGLE_SEND - Create the campaign with content, sender, and recipients [Required]

Key parameters for SENDGRID_CREATE_SINGLE_SEND:

  • name: Campaign name (required)
  • email__config__subject: Email subject line
  • email__config__html__content: HTML body content
  • email__config__plain__content: Plain text version
  • email__config__sender__id: Verified sender identity ID
  • email__config__design__id: Use instead of html_content for pre-built designs
  • send__to__list__ids: Array of list UUIDs to send to
  • send__to__segment__ids: Array of segment UUIDs
  • send__to__all: true to send to all contacts
  • email__config__suppression__group__id or email__config__custom__unsubscribe__url: One required for compliance

Pitfalls:

  • Setting send_at on CREATE does NOT schedule the send; it only prepopulates the UI date; use the Schedule endpoint separately
  • send_at: "now" is only valid with the Schedule endpoint, not CREATE
  • Must provide either suppression_group_id or custom_unsubscribe_url for unsubscribe compliance
  • Sender must be verified before use; check with SENDGRID_GET_ALL_SENDER_IDENTITIES
  • Nested params use double-underscore notation (e.g., email__config__subject)

2. Manage Contacts and Lists

When to use: User wants to create contact lists, add/update contacts, search for contacts, or remove contacts from lists.

Tool sequence:

  1. SENDGRID_RETRIEVE_ALL_LISTS - List all marketing lists [Required]
  2. SENDGRID_CREATE_A_LIST - Create a new contact list [Optional]
  3. SENDGRID_GET_A_LIST_BY_ID - Get list details and sample contacts [Optional]
  4. SENDGRID_ADD_OR_UPDATE_A_CONTACT - Upsert contacts with list association [Required]
  5. SENDGRID_GET_CONTACTS_BY_EMAILS - Look up contacts by email [Optional]
  6. SENDGRID_GET_CONTACTS_BY_IDENTIFIERS - Look up contacts by email, phone, or external ID [Optional]
  7. SENDGRID_GET_LIST_CONTACT_COUNT - Verify contact count after operations [Optional]
  8. SENDGRID_REMOVE_CONTACTS_FROM_A_LIST - Remove contacts from a list without deleting [Optional]
  9. SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS - Delete an entire list [Optional]
  10. SENDGRID_IMPORT_CONTACTS - Bulk import from CSV [Optional]

Key parameters for SENDGRID_ADD_OR_UPDATE_A_CONTACT:

  • contacts: Array of contact objects (max 30,000 or 6MB), each with at least one identifier: email, phone_number_id, external_id, or anonymous_id (required)
  • list_ids: Array of list UUID strings to associate contacts with

Pitfalls:

  • SENDGRID_ADD_OR_UPDATE_A_CONTACT is asynchronous; returns 202 with job_id; contacts may take 10-30 seconds to appear
  • List IDs are UUIDs (e.g., "ca7a3796-e8a8-4029-9ccb-df8937940562"), not integers
  • List names must be unique; duplicate names cause 400 errors
  • SENDGRID_ADD_A_SINGLE_RECIPIENT_TO_A_LIST uses the legacy API; prefer SENDGRID_ADD_OR_UPDATE_A_CONTACT with list_ids
  • SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS is irreversible; require explicit user confirmation
  • Email addresses are automatically lowercased by SendGrid

3. Manage Sender Identities

When to use: User wants to set up or view sender identities (From addresses) for sending emails.

Tool sequence:

  1. SENDGRID_GET_ALL_SENDER_IDENTITIES - List all existing sender identities [Required]
  2. SENDGRID_CREATE_A_SENDER_IDENTITY - Create a new sender identity [Optional]
  3. SENDGRID_VIEW_A_SENDER_IDENTITY - View details for a specific sender [Optional]
  4. SENDGRID_UPDATE_A_SENDER_IDENTITY - Update sender details [Optional]
  5. SENDGRID_CREATE_VERIFIED_SENDER_REQUEST - Create and verify a new sender [Optional]
  6. SENDGRID_AUTHENTICATE_A_DOMAIN - Set up domain authentication for auto-verification [Optional]

Key parameters for SENDGRID_CREATE_A_SENDER_IDENTITY:

  • from__email: From email address (required)
  • from__name: Display name (required)
  • reply__to__email: Reply-to address (required)
  • nickname: Internal identifier (required)
  • address, city, country: Physical address for CAN-SPAM compliance (required)

Pitfalls:

  • New senders must be verified before use; if domain is not authenticated, a verification email is sent
  • Up to 100 unique sender identities per account
  • Avoid using domains with strict DMARC policies (gmail.com, yahoo.com) as from addresses
  • SENDGRID_CREATE_VERIFIED_SENDER_REQUEST sends a verification email; sender is unusable until verified

4. View Email Statistics and Activity

When to use: User wants to review email delivery stats, bounce rates, open/click metrics, or message activity.

Tool sequence:

  1. SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS - Get account-wide delivery metrics [Required]
  2. SENDGRID_GET_ALL_CATEGORIES - Discover available categories for filtering [Optional]
  3. SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIES - Get stats broken down by category [Optional]
  4. SENDGRID_FILTER_ALL_MESSAGES - Search email activity feed by recipient, status, or date [Optional]
  5. SENDGRID_FILTER_MESSAGES_BY_MESSAGE_ID - Get detailed events for a specific message [Optional]
  6. SENDGRID_REQUEST_CSV - Export activity data as CSV for large datasets [Optional]
  7. SENDGRID_DOWNLOAD_CSV - Download the exported CSV file [Optional]

Key parameters for SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS:

  • start_date: Start date YYYY-MM-DD (required)
  • end_date: End date YYYY-MM-DD
  • aggregated_by: "day", "week", or "month"
  • limit / offset: Pagination (default 500)

Key parameters for SENDGRID_FILTER_ALL_MESSAGES:

  • query: SQL-like query string, e.g., status="delivered", to_email="user@example.com", date ranges with BETWEEN TIMESTAMP
  • limit: 1-1000 (default 10)

Pitfalls:

  • SENDGRID_FILTER_ALL_MESSAGES requires the "30 Days Additional Email Activity History" paid add-on; returns 403 without it
  • Global statistics are nested under details[].stats[0].metrics, not a flat structure
  • Category statistics are only available for the previous 13 months
  • Maximum 10 categories per request in SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIES
  • CSV export is limited to one request per 12 hours; link expires after 3 days

5. Manage Suppressions

When to use: User wants to check or manage unsubscribe groups for email compliance.

Tool sequence:

  1. SENDGRID_GET_SUPPRESSION_GROUPS - List all suppression groups [Required]
  2. SENDGRID_RETRIEVE_ALL_SUPPRESSION_GROUPS_FOR_AN_EMAIL_ADDRESS - Check suppression status for a specific email [Optional]

Pitfalls:

  • Suppressed addresses remain undeliverable even if present on marketing lists
  • Campaign send counts may be lower than list counts due to suppressions

Common Patterns

ID Resolution

Always resolve names to IDs before operations:

  • List name -> list_id: SENDGRID_RETRIEVE_ALL_LISTS and match by name
  • Sender name -> sender_id: SENDGRID_GET_ALL_SENDER_IDENTITIES and match
  • Contact email -> contact_id: SENDGRID_GET_CONTACTS_BY_EMAILS with email array
  • Template name -> template_id: Use the SendGrid UI or template endpoints

Pagination

  • SENDGRID_RETRIEVE_ALL_LISTS: Token-based with page_token and page_size (max 1000)
  • SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS: Offset-based with limit (max 500) and offset
  • Always paginate list retrieval to avoid missing existing lists

Async Operations

Contact operations (ADD_OR_UPDATE_A_CONTACT, IMPORT_CONTACTS) are asynchronous:

  • Returns 202 with a job_id
  • Wait 10-30 seconds before verifying with GET_CONTACTS_BY_EMAILS
  • Use GET_LIST_CONTACT_COUNT to confirm list growth

Known Pitfalls

ID Formats

  • Marketing list IDs are UUIDs (e.g., "ca7a3796-e8a8-4029-9ccb-df8937940562")
  • Legacy list IDs are integers; do not mix with Marketing API endpoints
  • Sender identity IDs are integers
  • Template IDs: Dynamic templates start with "d-", legacy templates are UUIDs
  • Contact IDs are UUIDs

Rate Limits

  • SendGrid may return HTTP 429; respect Retry-After headers
  • CSV export limited to one request per 12 hours
  • Bulk contact upsert max: 30,000 contacts or 6MB per request

Parameter Quirks

  • Nested params use double-underscore: email__config__subject, from__email
  • send_at on CREATE_SINGLE_SEND only sets a UI default, does NOT schedule
  • SENDGRID_ADD_A_SINGLE_RECIPIENT_TO_A_LIST uses legacy API; recipient_id is Base64-encoded lowercase email
  • SENDGRID_RETRIEVE_ALL_LISTS and SENDGRID_GET_ALL_LISTS both exist; prefer RETRIEVE_ALL_LISTS for Marketing API
  • Contact adds are async (202); always verify after a delay

Legacy vs Marketing API

  • Some tools use the legacy Contact Database API (/v3/contactdb/) which may return 403 on newer accounts
  • Prefer Marketing API tools: SENDGRID_ADD_OR_UPDATE_A_CONTACT, SENDGRID_RETRIEVE_ALL_LISTS, SENDGRID_CREATE_SINGLE_SEND

Quick Reference

TaskTool SlugKey Params
List marketing listsSENDGRID_RETRIEVE_ALL_LISTSpage_size, page_token
Create listSENDGRID_CREATE_A_LISTname
Get list by IDSENDGRID_GET_A_LIST_BY_IDid
Get list countSENDGRID_GET_LIST_CONTACT_COUNTid
Add/update contactsSENDGRID_ADD_OR_UPDATE_A_CONTACTcontacts, list_ids
Search contacts by emailSENDGRID_GET_CONTACTS_BY_EMAILSemails
Search by identifiersSENDGRID_GET_CONTACTS_BY_IDENTIFIERSidentifier_type, identifiers
Remove from listSENDGRID_REMOVE_CONTACTS_FROM_A_LISTid, contact_ids
Delete listSENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTSid, delete_contacts
Import contacts CSVSENDGRID_IMPORT_CONTACTSfield mappings
Create Single SendSENDGRID_CREATE_SINGLE_SENDname, email__config__*, send__to__list__ids
List sender identitiesSENDGRID_GET_ALL_SENDER_IDENTITIES(none)
Create senderSENDGRID_CREATE_A_SENDER_IDENTITYfrom__email, from__name, address
Verify senderSENDGRID_CREATE_VERIFIED_SENDER_REQUESTfrom_email, nickname, address
Authenticate domainSENDGRID_AUTHENTICATE_A_DOMAINdomain
Global email statsSENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICSstart_date, aggregated_by
Category statsSENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIESstart_date, categories
Filter email activitySENDGRID_FILTER_ALL_MESSAGESquery, limit
Message detailsSENDGRID_FILTER_MESSAGES_BY_MESSAGE_IDmsg_id
Export CSVSENDGRID_REQUEST_CSVquery
Download CSVSENDGRID_DOWNLOAD_CSVdownload_uuid
List categoriesSENDGRID_GET_ALL_CATEGORIES(none)
Suppression groupsSENDGRID_GET_SUPPRESSION_GROUPS(none)
Get templateSENDGRID_RETRIEVE_A_SINGLE_TRANSACTIONAL_TEMPLATEtemplate_id
Duplicate templateSENDGRID_DUPLICATE_A_TRANSACTIONAL_TEMPLATEtemplate_id, name

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.04%
按下载量换算71

Claude

30.3%
按下载量换算60

Cursor

20.07%
按下载量换算40

Gemini CLI

10.84%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills