Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
The command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
File Explorer
2 files
Showing SKILL.md
SKILL.md
Source instructions · Read-only preview
name
mailchimp
description
Operate Mailchimp Marketing audiences, campaigns, reports, automations, journeys, and Mailchimp Transactional/Mandrill email through SecretRef-backed helper requests.
user-invocable
true
requires
{"bins":["node"]}
credentials
[{"id":"mailchimp-marketing-basic-auth","kind":"header","required":true,"secret_ref":{"source":"store","id":"MAILCHIMP_MARKETING_BASIC_AUTH"},"scope":"Mailchimp Marketing API Authorization Basic header secret for https://<dc>.api.mailchimp.com/3.0","how_to_obtain":"Create a Mailchimp Marketing API key with the narrowest useful role for\nthe account. Locally base64-encode `anystring:<api-key>`. Set only that\nencoded credential as `MAILCHIMP_MARKETING_BASIC_AUTH` through browser\nadmin at the active `/admin/secrets` route; if browser admin is\nunavailable, use\n`/secret set MAILCHIMP_MARKETING_BASIC_AUTH \"<base64-user-colon-api-key>\"`\nin browser `/chat` or TUI; local console fallback:\n`hybridclaw secret set MAILCHIMP_MARKETING_BASIC_AUTH \"<base64-user-colon-api-key>\"`.\nSet `MAILCHIMP_SERVER_PREFIX` to the data-center suffix after the last\nhyphen, for example `us21` from a key ending in `-us21`.\n"},{"id":"mailchimp-marketing-oauth-token","kind":"bearer","required":false,"secret_ref":{"source":"store","id":"MAILCHIMP_MARKETING_OAUTH_TOKEN"},"scope":"Mailchimp Marketing OAuth bearer token for https://login.mailchimp.com/oauth2/metadata and https://<dc>.api.mailchimp.com/3.0","how_to_obtain":"Complete Mailchimp's OAuth authorization flow outside this helper. Set\nthe resulting access token as `MAILCHIMP_MARKETING_OAUTH_TOKEN` through\nbrowser admin at the active `/admin/secrets` route; if browser admin\nis unavailable, use\n`/secret set MAILCHIMP_MARKETING_OAUTH_TOKEN \"<oauth-token>\"` in browser\n`/chat` or TUI; local console fallback:\n`hybridclaw secret set MAILCHIMP_MARKETING_OAUTH_TOKEN \"<oauth-token>\"`.\nUse helper commands with `--auth oauth`.\n"},{"id":"mandrill-api-key","kind":"api_key","required":false,"secret_ref":{"source":"store","id":"MANDRILL_API_KEY"},"scope":"Mailchimp Transactional / Mandrill API key for https://mandrillapp.com/api/1.0","how_to_obtain":"In a Mailchimp account with Transactional Email provisioned, create a\nTransactional API key. Set `MANDRILL_API_KEY` through browser admin at\n`/admin/secrets`; if browser admin is unavailable,\nuse `/secret set MANDRILL_API_KEY \"<mandrill-key>\"` in browser `/chat` or\nTUI; local console fallback:\n`hybridclaw secret set MANDRILL_API_KEY \"<mandrill-key>\"`.\n"}]
config_variables
[{"id":"mailchimp-server-prefix","env":"MAILCHIMP_SERVER_PREFIX","required":true,"scope":"Mailchimp Marketing API data-center prefix used in https://<dc>.api.mailchimp.com/3.0","how_to_obtain":"Use the suffix after the last hyphen in a Mailchimp Marketing API key,\nsuch as `us21`, or the data-center prefix returned by the OAuth metadata\nflow. Store it in chat with `/env set MAILCHIMP_SERVER_PREFIX us21`.\nFrom a local terminal, use\n`hybridclaw env set MAILCHIMP_SERVER_PREFIX us21`.\n"}]
metadata
{"hybridclaw":{"category":"marketing","short_description":"Mailchimp audiences, campaigns, reports, journeys, and Mandrill transactional email.","tags":["mailchimp","mandrill","email","marketing","campaigns"],"related_roadmap":["R21.67"],"issue":1136,"stakes_tiers":{"green":"[Truncated]","amber":"[Truncated]","red":"[Truncated]"},"escalation":{"writes":"confirm-each","route":"f14"},"cost_measurement":{"system":"UsageTotals","sub_limit_key":"mailchimp"}}}
Mailchimp
Use this skill for Mailchimp Marketing and Mailchimp Transactional work:
audience/list inspection, subscriber lookup and controlled mutations, tags,
merge fields, campaign draft operations, campaign content, scheduling/sending,
campaign reports, automation and journey readouts, and Mandrill transactional
message lookup or sends.
Default Workflow
Start with credential-check when setup is uncertain. The helper emits
gateway-resolved <env:...> and <secret:...> placeholders; it does not
read runtime env or secret values itself. Missing MAILCHIMP_SERVER_PREFIX,
MAILCHIMP_MARKETING_BASIC_AUTH, MAILCHIMP_MARKETING_OAUTH_TOKEN, or
MANDRILL_API_KEY is surfaced by the gateway placeholder resolver or by a
401/403 upstream response.
Do not run hybridclaw secret list, hybridclaw env list, grep, or local
file inspection from the agent sandbox to decide whether Mailchimp values
are configured; those checks can see the wrong runtime surface.
For stored OAuth access tokens, use oauth metadata --auth oauth to retrieve the
account-specific API endpoint and set MAILCHIMP_SERVER_PREFIX from the
returned API endpoint host.
Use mailchimp.cjs noun/verb commands for live work. Normal commands send
the helper-built request through the HybridClaw gateway /api/http/request
path, so the gateway resolves <env:...> and <secret:...> placeholders
server-side. Use --request only for dry-run/debug output; do not normally
reconstruct or relay httpRequest objects with the built-in http_request
tool.
Treat MAILCHIMP_MARKETING_BASIC_AUTH, MAILCHIMP_MARKETING_OAUTH_TOKEN,
and MANDRILL_API_KEY as SecretRefs only. Never ask the operator to paste
tokens into chat, never print raw Authorization headers, and never include
Mandrill keys in --body-json.
For audience writes, bulk subscriber plans, campaign draft/content writes,
campaign schedule/send, and Mandrill sends, first run approval-plan, show
the preview, and stop. After explicit operator approval for the named
audience, campaign, or message target, run the approved helper command
unchanged.
For 401 or 403, stop after the first failure and ask the operator to verify
the token, user role, Transactional provisioning, and data-center prefix. Do
not retry with broader permissions.
For 429, report rate-limit guidance from Retry-After or Mailchimp
rate-limit headers when present. Do not start retry loops.
Minimize subscriber PII in summaries. Prefer subscriber hashes for lookup and
archive/tag operations. Include email addresses only when required to create
or update a member.
Green operations are read-only inventory, lookup, report, automation, journey,
and message-status calls. Amber operations mutate external Mailchimp state but
do not send mail by themselves. Red operations can send or schedule external
email and require explicit operator approval for the named campaign or message
target.
--operator-grant is an approval-workflow marker for this helper, not an
access-control boundary. The gateway approval policy, network policy, and
credential resolver remain the actual enforcement layers for external writes
and sends.
Bulk member mutation is intentionally exposed as a preview/approval boundary,
not as a direct batch execution command. For more than one subscriber, run
approval-plan audience bulk-plan with the target list, operation, source
label, count, and a redacted sample row. After approval, generate exact
per-member helper commands and run them with --operator-grant. Do not call
Mailchimp batch endpoints from this skill.
Unsupported destructive operations include permanent member deletion, campaign
delete, audience delete, and Mandrill scheduled-message cancel/reschedule. The
helper exposes archive and tag changes, not irreversible data deletion.
Credential Notes
Mailchimp Marketing uses https://<dc>.api.mailchimp.com/3.0, where <dc> is
the data-center subdomain for the account. API keys usually include this as the
suffix after the last hyphen. The helper defaults to --auth api-key, which
uses Authorization: Basic <secret:MAILCHIMP_MARKETING_BASIC_AUTH> and
https://<env:MAILCHIMP_SERVER_PREFIX>.api.mailchimp.com/3.0/... so the
gateway resolves both values server-side. Store the secret value as the base64
encoding of anystring:<api-key>, not the raw API key in prompt text.
OAuth access tokens are supported with --auth oauth and
Authorization: OAuth <secret:MAILCHIMP_MARKETING_OAUTH_TOKEN>. This skill
uses an already stored OAuth access token; it does not perform the browser OAuth
authorization flow itself. Use oauth metadata --auth oauth to read the OAuth
token metadata endpoint and derive the account-specific data-center prefix
before calling Marketing API endpoints.
Mandrill requests place key: "<secret:MANDRILL_API_KEY>" in the JSON body so
the gateway performs placeholder replacement server-side. Do not include a
key field in --body-json; the helper rejects it.
Result Handling
Base answers on successful live API results only. For setup failures, report
which layer failed: missing MAILCHIMP_SERVER_PREFIX, gateway missing runtime
secret, gateway policy denial, outbound network failure, Mailchimp 401/403,
Mailchimp 429, or upstream validation error. Do not infer stale gateway state
or network isolation without checking hybridclaw gateway status, logs, and
the returned helper/gateway error body.