credential-switch
Installation
SKILL.md
/digital-marketing-pro:credential-switch
Purpose
Switch the active credential profile to a different brand for multi-client agency management. Validates all platform connections and reports which services are available for the target brand. Ensures the correct API keys, tokens, and environment variables are active before executing any platform operations — preventing cross-client data leakage, misrouted ad spend, or accidental operations on the wrong account.
Execution gate (MANDATORY — cannot be skipped)
- Present the validation summary — target brand, per-platform credential status, and any warnings — as an Execution Summary.
- If validation is clean and only one client credential profile is configured, the switch may proceed automatically. If more than one client profile exists, or any warning / missing / expiring credential is present, the user must type
yes(or an equivalent explicit approval) — ANY other input cancels. - Never proceed on ambiguous input. Never auto-retry a failed switch.
- When confirmation is required, record it with
python "${CLAUDE_PLUGIN_ROOT}/scripts/approval-manager.py" --brand {slug} --action create-approval --data '{"risk_level":"medium","summary":"credential switch to {slug}"}'before switching, thenpython "${CLAUDE_PLUGIN_ROOT}/scripts/approval-manager.py" --brand {slug} --action mark-executed --id {approval_id}after the switch verifies.
Input Required
The user must provide (or will be prompted for):