Awesome-omni-skills sendgrid-automation
SendGrid Automation via Rube MCP workflow skill. Use this skill when the user needs 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 and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.
git clone https://github.com/diegosouzapw/awesome-omni-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/sendgrid-automation" ~/.claude/skills/diegosouzapw-awesome-omni-skills-sendgrid-automation && rm -rf "$T"
skills/sendgrid-automation/SKILL.mdSendGrid Automation via Rube MCP
Overview
This public intake copy packages
plugins/antigravity-awesome-skills-claude/skills/sendgrid-automation from https://github.com/sickn33/antigravity-awesome-skills into the native Omni Skills editorial shape without hiding its origin.
Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow.
This intake keeps the copied upstream files intact and uses
metadata.json plus ORIGIN.md as the provenance anchor for review.
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.
Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Prerequisites, Common Patterns, Known Pitfalls, Limitations.
When to Use This Skill
Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request.
- This skill is applicable to execute the workflow or actions described in the overview.
- Use when the request clearly matches the imported source intent: 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.
- Use when the operator should preserve upstream workflow detail instead of rewriting the process from scratch.
- Use when provenance needs to stay visible in the answer, PR, or review packet.
- Use when copied upstream references, examples, or scripts materially improve the answer.
- Use when the workflow should remain reviewable in the public intake repo before the private enhancer takes over.
Operating Table
| Situation | Start here | Why it matters |
|---|---|---|
| First-time use | | Confirms repository, branch, commit, and imported path before touching the copied workflow |
| Provenance review | | Gives reviewers a plain-language audit trail for the imported source |
| Workflow execution | | Starts with the smallest copied file that materially changes execution |
| Supporting context | | Adds the next most relevant copied source file without loading the entire package |
| Handoff decision | | Helps the operator switch to a stronger native skill when the task drifts |
Workflow
This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow.
- Verify Rube MCP is available by confirming RUBESEARCHTOOLS responds
- Call RUBEMANAGECONNECTIONS with toolkit sendgrid
- If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication
- Confirm connection status shows ACTIVE before running any workflows
- SENDGRIDRETRIEVEALL_LISTS - List available marketing lists to target [Prerequisite]
- SENDGRIDCREATEA_LIST - Create a new list if needed [Optional]
- SENDGRIDADDORUPDATEA_CONTACT - Add contacts to the list [Optional]
Imported Workflow Notes
Imported: 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.
- Verify Rube MCP is available by confirming
respondsRUBE_SEARCH_TOOLS - Call
with toolkitRUBE_MANAGE_CONNECTIONSsendgrid - If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication
- Confirm connection status shows ACTIVE before running any workflows
Imported: 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:
- List available marketing lists to target [Prerequisite]SENDGRID_RETRIEVE_ALL_LISTS
- Create a new list if needed [Optional]SENDGRID_CREATE_A_LIST
- Add contacts to the list [Optional]SENDGRID_ADD_OR_UPDATE_A_CONTACT
- Get verified sender ID [Prerequisite]SENDGRID_GET_ALL_SENDER_IDENTITIES
- Create the campaign with content, sender, and recipients [Required]SENDGRID_CREATE_SINGLE_SEND
Key parameters for SENDGRID_CREATE_SINGLE_SEND:
: Campaign name (required)name
: Email subject lineemail__config__subject
: HTML body contentemail__config__html__content
: Plain text versionemail__config__plain__content
: Verified sender identity IDemail__config__sender__id
: Use instead of html_content for pre-built designsemail__config__design__id
: Array of list UUIDs to send tosend__to__list__ids
: Array of segment UUIDssend__to__segment__ids
: true to send to all contactssend__to__all
oremail__config__suppression__group__id
: One required for complianceemail__config__custom__unsubscribe__url
Pitfalls:
- Setting
on CREATE does NOT schedule the send; it only prepopulates the UI date; use the Schedule endpoint separatelysend_at
is only valid with the Schedule endpoint, not CREATEsend_at: "now"- Must provide either
orsuppression_group_id
for unsubscribe compliancecustom_unsubscribe_url - 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:
- List all marketing lists [Required]SENDGRID_RETRIEVE_ALL_LISTS
- Create a new contact list [Optional]SENDGRID_CREATE_A_LIST
- Get list details and sample contacts [Optional]SENDGRID_GET_A_LIST_BY_ID
- Upsert contacts with list association [Required]SENDGRID_ADD_OR_UPDATE_A_CONTACT
- Look up contacts by email [Optional]SENDGRID_GET_CONTACTS_BY_EMAILS
- Look up contacts by email, phone, or external ID [Optional]SENDGRID_GET_CONTACTS_BY_IDENTIFIERS
- Verify contact count after operations [Optional]SENDGRID_GET_LIST_CONTACT_COUNT
- Remove contacts from a list without deleting [Optional]SENDGRID_REMOVE_CONTACTS_FROM_A_LIST
- Delete an entire list [Optional]SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS
- Bulk import from CSV [Optional]SENDGRID_IMPORT_CONTACTS
Key parameters for SENDGRID_ADD_OR_UPDATE_A_CONTACT:
: Array of contact objects (max 30,000 or 6MB), each with at least one identifier:contacts
,email
,phone_number_id
, orexternal_id
(required)anonymous_id
: Array of list UUID strings to associate contacts withlist_ids
Pitfalls:
is asynchronous; returns 202 withSENDGRID_ADD_OR_UPDATE_A_CONTACT
; contacts may take 10-30 seconds to appearjob_id- List IDs are UUIDs (e.g., "ca7a3796-e8a8-4029-9ccb-df8937940562"), not integers
- List names must be unique; duplicate names cause 400 errors
uses the legacy API; preferSENDGRID_ADD_A_SINGLE_RECIPIENT_TO_A_LIST
withSENDGRID_ADD_OR_UPDATE_A_CONTACTlist_ids
is irreversible; require explicit user confirmationSENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS- 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:
- List all existing sender identities [Required]SENDGRID_GET_ALL_SENDER_IDENTITIES
- Create a new sender identity [Optional]SENDGRID_CREATE_A_SENDER_IDENTITY
- View details for a specific sender [Optional]SENDGRID_VIEW_A_SENDER_IDENTITY
- Update sender details [Optional]SENDGRID_UPDATE_A_SENDER_IDENTITY
- Create and verify a new sender [Optional]SENDGRID_CREATE_VERIFIED_SENDER_REQUEST
- Set up domain authentication for auto-verification [Optional]SENDGRID_AUTHENTICATE_A_DOMAIN
Key parameters for SENDGRID_CREATE_A_SENDER_IDENTITY:
: From email address (required)from__email
: Display name (required)from__name
: Reply-to address (required)reply__to__email
: Internal identifier (required)nickname
,address
,city
: Physical address for CAN-SPAM compliance (required)country
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
sends a verification email; sender is unusable until verifiedSENDGRID_CREATE_VERIFIED_SENDER_REQUEST
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:
- Get account-wide delivery metrics [Required]SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS
- Discover available categories for filtering [Optional]SENDGRID_GET_ALL_CATEGORIES
- Get stats broken down by category [Optional]SENDGRID_RETRIEVE_EMAIL_STATISTICS_FOR_CATEGORIES
- Search email activity feed by recipient, status, or date [Optional]SENDGRID_FILTER_ALL_MESSAGES
- Get detailed events for a specific message [Optional]SENDGRID_FILTER_MESSAGES_BY_MESSAGE_ID
- Export activity data as CSV for large datasets [Optional]SENDGRID_REQUEST_CSV
- Download the exported CSV file [Optional]SENDGRID_DOWNLOAD_CSV
Key parameters for SENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS:
: Start date YYYY-MM-DD (required)start_date
: End date YYYY-MM-DDend_date
: "day", "week", or "month"aggregated_by
/limit
: Pagination (default 500)offset
Key parameters for SENDGRID_FILTER_ALL_MESSAGES:
: SQL-like query string, e.g.,query
,status="delivered"
, date ranges withto_email="user@example.com"BETWEEN TIMESTAMP
: 1-1000 (default 10)limit
Pitfalls:
requires the "30 Days Additional Email Activity History" paid add-on; returns 403 without itSENDGRID_FILTER_ALL_MESSAGES- Global statistics are nested under
, not a flat structuredetails[].stats[0].metrics - 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:
- List all suppression groups [Required]SENDGRID_GET_SUPPRESSION_GROUPS
- Check suppression status for a specific email [Optional]SENDGRID_RETRIEVE_ALL_SUPPRESSION_GROUPS_FOR_AN_EMAIL_ADDRESS
Pitfalls:
- Suppressed addresses remain undeliverable even if present on marketing lists
- Campaign send counts may be lower than list counts due to suppressions
Imported: Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active SendGrid connection via
with toolkitRUBE_MANAGE_CONNECTIONSsendgrid - Always call
first to get current tool schemasRUBE_SEARCH_TOOLS
Examples
Example 1: Ask for the upstream workflow directly
Use @sendgrid-automation to handle <task>. Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer.
Explanation: This is the safest starting point when the operator needs the imported workflow, but not the entire repository.
Example 2: Ask for a provenance-grounded review
Review @sendgrid-automation against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why.
Explanation: Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection.
Example 3: Narrow the copied support files before execution
Use @sendgrid-automation for <task>. Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding.
Explanation: This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default.
Example 4: Build a reviewer packet
Review @sendgrid-automation using the copied upstream files plus provenance, then summarize any gaps before merge.
Explanation: This is useful when the PR is waiting for human review and you want a repeatable audit packet.
Best Practices
Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution.
- Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support.
- Prefer the smallest useful set of support files so the workflow stays auditable and fast to review.
- Keep provenance, source commit, and imported file paths visible in notes and PR descriptions.
- Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate.
- Treat generated examples as scaffolding; adapt them to the concrete task before execution.
- Route to a stronger native skill when architecture, debugging, design, or security concerns become dominant.
Troubleshooting
Problem: The operator skipped the imported context and answered too generically
Symptoms: The result ignores the upstream workflow in
plugins/antigravity-awesome-skills-claude/skills/sendgrid-automation, fails to mention provenance, or does not use any copied source files at all.
Solution: Re-open metadata.json, ORIGIN.md, and the most relevant copied upstream files. Load only the files that materially change the answer, then restate the provenance before continuing.
Problem: The imported workflow feels incomplete during review
Symptoms: Reviewers can see the generated
SKILL.md, but they cannot quickly tell which references, examples, or scripts matter for the current task.
Solution: Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it.
Problem: The task drifted into a different specialization
Symptoms: The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. Solution: Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind.
Related Skills
- Use when the work is better handled by that native specialization after this imported skill establishes context.@00-andruia-consultant-v2
- Use when the work is better handled by that native specialization after this imported skill establishes context.@10-andruia-skill-smith-v2
- Use when the work is better handled by that native specialization after this imported skill establishes context.@20-andruia-niche-intelligence-v2
- Use when the work is better handled by that native specialization after this imported skill establishes context.@2d-games
Additional Resources
Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding.
| Resource family | What it gives the reviewer | Example path |
|---|---|---|
| copied reference notes, guides, or background material from upstream | |
| worked examples or reusable prompts copied from upstream | |
| upstream helper scripts that change execution or validation | |
| routing or delegation notes that are genuinely part of the imported package | |
| supporting assets or schemas copied from the source package | |
Imported Reference Notes
Imported: Quick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| List marketing lists | | , |
| Create list | | |
| Get list by ID | | |
| Get list count | | |
| Add/update contacts | | , |
| Search contacts by email | | |
| Search by identifiers | | , |
| Remove from list | | , |
| Delete list | | , |
| Import contacts CSV | | field mappings |
| Create Single Send | | , , |
| List sender identities | | (none) |
| Create sender | | , , |
| Verify sender | | , , |
| Authenticate domain | | |
| Global email stats | | , |
| Category stats | | , |
| Filter email activity | | , |
| Message details | | |
| Export CSV | | |
| Download CSV | | |
| List categories | | (none) |
| Suppression groups | | (none) |
| Get template | | |
| Duplicate template | | , |
Imported: Common Patterns
ID Resolution
Always resolve names to IDs before operations:
- List name -> list_id:
and match by nameSENDGRID_RETRIEVE_ALL_LISTS - Sender name -> sender_id:
and matchSENDGRID_GET_ALL_SENDER_IDENTITIES - Contact email -> contact_id:
with email arraySENDGRID_GET_CONTACTS_BY_EMAILS - Template name -> template_id: Use the SendGrid UI or template endpoints
Pagination
: Token-based withSENDGRID_RETRIEVE_ALL_LISTS
andpage_token
(max 1000)page_size
: Offset-based withSENDGRID_RETRIEVE_GLOBAL_EMAIL_STATISTICS
(max 500) andlimitoffset- 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
to confirm list growthGET_LIST_CONTACT_COUNT
Imported: 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
headersRetry-After - 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__subjectfrom__email
on CREATE_SINGLE_SEND only sets a UI default, does NOT schedulesend_at
uses legacy API;SENDGRID_ADD_A_SINGLE_RECIPIENT_TO_A_LIST
is Base64-encoded lowercase emailrecipient_id
andSENDGRID_RETRIEVE_ALL_LISTS
both exist; prefer RETRIEVE_ALL_LISTS for Marketing APISENDGRID_GET_ALL_LISTS- Contact adds are async (202); always verify after a delay
Legacy vs Marketing API
- Some tools use the legacy Contact Database API (
) which may return 403 on newer accounts/v3/contactdb/ - Prefer Marketing API tools:
,SENDGRID_ADD_OR_UPDATE_A_CONTACT
,SENDGRID_RETRIEVE_ALL_LISTSSENDGRID_CREATE_SINGLE_SEND
Imported: Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.