execute-action

execute-action is a command for Claude Code from indranilbanerjee/digital-marketing-pro. It costs 54 tokens per session (1,246 once invoked), scanned A, original, MIT.

A command that sends a campaign or marketing action to its real external service instead of only showing what would happen. It reads access credentials from environment variables and records executions in an audit trail.

In plain words
What is it for?
Use it to inspect or launch supported marketing actions through connected services such as Slack, HubSpot, or Klaviyo, with dry runs and execution logging.
Why use it?
It separates previews from real changes and requires confirmation before write actions, reducing accidental updates. Read-only actions can run directly when execution is enabled.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the digital-marketing-pro plugin — 154 skills, 18 commands, 24 agents shipped together

Good fit Use it to inspect or launch supported marketing actions through connected services such as Slack, HubSpot, or Klaviyo, with dry runs and execution logging.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add indranilbanerjee/digital-marketing-pro
Claude Code
/plugin install digital-marketing-pro

Made for: Claude Code.

Or install digital-marketing-pro, the plugin that ships this one along with the rest of its 154 skills, 18 commands, 24 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for execute-action

README.md
[![agentmods](https://agentmods.dev/badge/commands/indranilbanerjee/digital-marketing-pro/execute-action/github.svg)](https://agentmods.dev/commands/indranilbanerjee/digital-marketing-pro/execute-action)
Your own site
<a href="https://agentmods.dev/commands/indranilbanerjee/digital-marketing-pro/execute-action"><img src="https://agentmods.dev/badge/commands/indranilbanerjee/digital-marketing-pro/execute-action/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for execute-action

Your own site · 80×15
<a href="https://agentmods.dev/commands/indranilbanerjee/digital-marketing-pro/execute-action"><img src="https://agentmods.dev/badge/commands/indranilbanerjee/digital-marketing-pro/execute-action.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01246
Opus 5 $0.00027 $0.00623
Sonnet 5 $0.00011 $0.00249
Haiku 4.5 $0.00005 $0.00125

Measured 9d ago against content hash f6a3be3387c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

execute-action scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Resolves an action via `connector_resolver` and (optionally) executes it via `connector_executor` using stdlib `urllib.request`. No third-party deps, no OAuth flow — credentials read from env vars only.
commands/execute-action.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/digital-marketing-pro:execute-action — Fire an Action Against Real API

Resolves an action via connector_resolver and (optionally) executes it via connector_executor using stdlib urllib.request. No third-party deps, no OAuth flow — credentials read from env vars only.

Three modes of operation

Flag combo What happens
no flags Dry-run: returns the resolved manifest (same as /digital-marketing-pro:doctor --action <id>) — no HTTP call
--execute only Read ops fire immediately. Write ops are BLOCKED with execute_blocked_reason.
--execute --confirm Write ops also fire. Execution is logged to ~/.claude-marketing/brands/{brand}/executions/.

Which connectors execute end-to-end via Python

These execute against the real API when the named env var is set (10 actions, 8 connectors):

Connector Env var Auth Verified endpoint
Slack SLACK_BOT_TOKEN Bearer xoxb- POST chat.postMessage
HubSpot HUBSPOT_PRIVATE_APP_TOKEN Bearer GET /automation/v4/flows, POST /marketing/v3/campaigns
Klaviyo KLAVIYO_PRIVATE_KEY Klaviyo-API-Key, revision 2026-04-15 GET /api/flows, PATCH /api/flows/{id} (vnd.api+json)
SendGrid SENDGRID_API_KEY Bearer SG. POST /v3/mail/send (202)
Brevo BREVO_API_KEY api-key: header (NOT Bearer) POST /v3/smtp/email
Customer.io CUSTOMERIO_APP_API_KEY Bearer (App API key, not Site/Track) POST /v1/send/email
Mailchimp MAILCHIMP_API_KEY Basic auth, dc from key suffix GET /3.0/automations
Ahrefs AHREFS_API_KEY Bearer GET /v3/site-explorer/metrics

Which connectors REQUIRE the MCP path (cannot execute from Python)

OAuth-only connectors return execute_blocked_reason: "use MCP path". Use Claude with the connector's MCP installed instead:

Google Ads, Meta Marketing, LinkedIn Marketing, LinkedIn Publishing, TikTok Ads, Twitter/X (OAuth 1.0a), Gmail, Google Calendar, Google Analytics, Google Search Console, Meta Graph (organic), Salesforce, Pipedrive, Zoho CRM, Buffer, Hootsuite, Cision, Muckrack, Amplitude, Similarweb, SEMrush, Moz, Intercom, Canva, Figma.

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 86 lines · 54 tokens per session scan A f6a3be3387c2

Subscribe to this mod's changes

execute-action is a command published in the GitHub repository indranilbanerjee/digital-marketing-pro (797 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 1,246 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.