Skip to main content
ClaudeWave
EN, English
Skill906 repo starsupdated 16d ago

add-integration

# add-integration The add-integration Claude Code skill guides users through connecting custom tools, APIs, or services to the Digital Marketing Pro plugin by configuring MCP server entries in the .mcp.json file. Users should employ this skill when they need to integrate external services like Ahrefs for backlink analysis or Stripe for payment data, whether through pre-built npm MCP packages or custom implementations for proprietary APIs and internal tools. The skill automates searching for existing MCP packages, generating proper configuration with credentials, testing connectivity, and documenting available tools.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/indranilbanerjee/digital-marketing-pro /tmp/add-integration && cp -r /tmp/add-integration/skills/add-integration ~/.claude/skills/add-integration
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# /digital-marketing-pro:add-integration

## Purpose

Guide users through adding a custom MCP server integration to the Digital Marketing Pro plugin. Search for existing MCP packages that provide the desired service connection, configure the server entry in `.mcp.json` with proper command, arguments, and environment variables, test connectivity to verify the integration works, and document the available tools. Supports both pre-built MCP servers from npm and custom implementations for proprietary APIs or internal tools.

## Input Required

The user must provide (or will be prompted for):

- **Service to integrate**: The name and purpose of the service to connect — e.g., "Ahrefs for backlink analysis", "Stripe for payment data", "our internal analytics API for custom dashboards". This determines the MCP package search terms and configuration approach
- **Integration type**: Whether to use a pre-built npm MCP package (preferred — faster setup, community-maintained) or build a custom MCP server (necessary for proprietary APIs, internal tools, or services without existing MCP packages). If unsure, the system searches for pre-built options first
- **Credentials available**: API keys, access tokens, OAuth client IDs, or other authentication credentials required by the service. The user should have these ready — the system will specify which environment variable names to use and where to store them, but will never ask the user to paste secrets into the conversation

## Process

1. **Load brand context**: Read `~/.claude-marketing/brands/_active-brand.json` for the active slug, then load `~/.claude-marketing/brands/{slug}/profile.json`. Check for agency credential profiles at `~/.claude-marketing/credentials/` — if agency mode is active, the new integration may need to be mapped to specific client credential sets. Check for agency SOPs at `~/.claude-marketing/sops/`. If no brand exists, ask: "Set up a brand first (/digital-marketing-pro:brand-setup)?" — or proceed with defaults.
2. **Search for existing MCP package**: Query npm registry and known MCP server directories for packages matching the requested service — search by service name, API name, and common variations. Evaluate candidates by download count, last update date, GitHub stars, and compatibility with the plugin's MCP configuration format. Present the best match (or top 3 if multiple viable options) with package name, description, supported tools, and any known limitations.
3. **Generate configuration for pre-built package**: If a suitable package is found, generate the complete `.mcp.json` entry — server name (following the plugin's naming convention: lowercase with hyphens), command (`npx` for npm packages), args array with the package name and any required flags, env object mapping environment variable names to credential references, and a description field summarizing what the integration provides. Show the user the exact JSON block to add.
4. **Provide custom MCP guidance if needed**: If no suitable pre-built package exists, provide a custom MCP server development template based on `skills/context-engine/custom-mcp-guide.md` — project structure, required tool definitions, input/output schemas, authentication handling, and error response patterns. Include a starter implementation skeleton for the specific API the user wants to connect, with placeholder endpoints and authentication flow.
5. **Configure environment variables**: Guide the user on environment variable setup — specify the exact variable names to use (following the `SERVICE_API_KEY` convention), where to add them (`.env` file in the project root or system environment variables for CI/CD), and how to reference them in the `.mcp.json` configuration. For agency setups, explain how to add the credentials to the appropriate credential profile at `~/.claude-marketing/credentials/`.
6. **Test MCP connectivity**: After the user confirms the configuration is in place, verify the integration works — check that the MCP server starts without errors, list the available tools it exposes, execute a basic read-only operation (e.g., fetching account info, listing resources, or a health check endpoint) to confirm authentication and connectivity. Report success or diagnose failure with specific error details and remediation steps.
7. **Map to agency credential profile (if applicable)**: For agency setups with multiple client brands, add the new integration's credential mapping to the appropriate profile — which environment variables are client-specific vs shared, how to switch credentials when switching brands, and how to verify the correct credentials are active.
8. **Document the integration**: Record the new integration in the brand's configuration — service name, MCP server name, tools available, credential requirements, any rate limits or usage constraints discovered during testing, and example usage patterns for team reference.

## Output

A complete integration setup report containing:

- **MCP configuration entry**: The exact JSON block ready to add to `.mcp.json` — server name, command, args, env, and description — formatted and validated against the plugin's configuration schema
- **Environment variable setup instructions**: Step-by-step guide for configuring the required credentials — variable names, where to set them, format requirements, and verification command to confirm they are loaded
- **Connectivity test results**: Server startup status, list of available tools with descriptions, and result of the basic read-only test operation — confirming the integration is working or providing specific error diagnostics
- **Credential profile mapping (if agency mode)**: How the new integration's credentials map to client profiles, switching instructions, and verification steps for multi-brand setups
- **Available tools documentation**: Complete list of tools exposed by the new MCP server — tool names, descriptions, required parameters, and example invocations for the most common ope
ab-test-planSkill

Design a statistically rigorous A/B or multivariate test plan — If/Then/Because hypothesis, control and variant specs, required sample size per variant (absolute vs relative MDE via sample-size-calculator.py), test duration, guardrail metrics, stopping rules, and go/no-go decision criteria. Triggers on \"/digital-marketing-pro:ab-test-plan\", \"set up an A/B test\", \"how long should my test run\", \"calculate sample size for an experiment\", \"is this test result significant\". Reads the brand profile and past campaign-tracker results to avoid re-testing validated hypotheses; finished tests are evaluated with significance-tester.py by the cro-specialist agent.

ad-creativeSkill

Generate 3-5 ad copy variations per platform — headlines, descriptions, and CTAs formatted to Google, Meta, LinkedIn, TikTok, X, and Pinterest specs — each scored 1-10 with policy-compliance flags, A/B testing groupings, and a message-match check against the landing page. Triggers on \"/digital-marketing-pro:ad-creative\", \"write ad copy for Meta\", \"give me RSA headline variations\", \"we need LinkedIn ad copy\", \"draft TikTok ad creative\". Reads the brand profile, guidelines, and compliance rules; routes video ad scripts to /digital-marketing-pro:video-script and gates AI-generated visuals for EU campaigns through /digital-marketing-pro:c2pa-metadata and /digital-marketing-pro:check.

aeo-auditSkill

Audit how a brand appears across the 6 canonical AI answer surfaces — ChatGPT, Perplexity, Google AI Mode, AI Overviews, Gemini, Copilot — probing 10-25 queries into a numbered output bundle with per-platform visibility scorecards, citation-accuracy checks, a competitor matrix, content gaps, and an optimization playbook behind a four-gate quality scorecard. Triggers on \"/digital-marketing-pro:aeo-audit\", \"does ChatGPT know about our brand\", \"check our AI search visibility\", \"how does Perplexity describe us\", \"are we showing up in AI Overviews\". Reads the brand profile; reconciles probes against GSC actuals via /digital-marketing-pro:gsc-ai-performance and defines the AI-visibility scoring standard reused by geo-monitor and share-of-voice.

aeo-geoSkill

Strategy module for Answer Engine / Generative Engine Optimization — audits AI visibility, restructures content for citation, runs entity-consistency checks across Knowledge Graph, Wikidata, Wikipedia, Crunchbase, and LinkedIn, and produces JSON-LD schema specs, monitoring frameworks, and a 90-day LLM content strategy. Triggers on \"/digital-marketing-pro:aeo-geo\", \"how do we get cited by AI\", \"optimize for AI Overviews\", \"fix our entity consistency\", \"do we need llms.txt\". Reads the brand profile, compliance rules, and industry benchmarks; its measurement counterpart is /digital-marketing-pro:aeo-audit, with GSC actuals via /digital-marketing-pro:gsc-ai-performance.

agency-dashboardSkill

Generate a portfolio-level dashboard across ALL client brands — per-client RAG health scores, campaign activity, budget pacing, aggregate KPIs, team utilization, pending approvals, upcoming deadlines, and an alerts panel — built for agency standups and weekly reviews. Triggers on \"/digital-marketing-pro:agency-dashboard\", \"how are all our clients doing\", \"portfolio health check\", \"budget pacing across accounts\", \"which accounts are at risk\". Enumerates every brand under ~/.claude-marketing/brands/ and pulls data via campaign-tracker.py, execution-tracker.py, and team-manager.py; drill into a single client with /digital-marketing-pro:performance-report or /digital-marketing-pro:client-report.

agency-operationsSubagent

Invoke when the user needs to manage multiple client brands, view portfolio-level dashboards, generate client reports, manage SOPs, switch credential profiles, assign team tasks, configure regions, or generate executive summaries. Triggers on requests involving multi-client management, agency workflows, client onboarding, or portfolio oversight.

analytics-analystSubagent

Invoke when the user needs help with marketing measurement, KPI definition, dashboard design, attribution reporting, performance analysis, competitive benchmarking, or translating data into marketing decisions. Triggers on requests involving metrics, reporting, analytics setup, or data interpretation.

analytics-insightsSkill

Marketing measurement module — builds KPI trees per business model, reporting templates (weekly, monthly, QBR, campaign), anomaly root-cause diagnosis, MMM and incrementality guidance, dark-social tracking, and privacy-first cookieless measurement architecture, including the GA4 AI Assistant channel group for attributing AI-referred traffic. Triggers on \"/digital-marketing-pro:analytics-insights\", \"why did traffic drop\", \"define our KPIs\", \"design an executive dashboard\", \"can we do marketing mix modeling\". Reads the brand profile, industry benchmarks, and campaign history; pairs with /digital-marketing-pro:gsc-ai-performance and /digital-marketing-pro:aeo-audit to triangulate AI-surface impressions against actual traffic.