CRM Lifecycle Ops

v0.5.6
io.github.har5h98/crm-lifecycle-ops Checked 11 hours ago Published 21 days ago

Pre-send QA for Braze, Klaviyo and Iterable: email, SMS, push and in-app checks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_email Check an email

QA one email before it sends, using the team's house rules: HTML structure, Outlook conditionals, Gmail clipping, alt text, links (non-production hosts, unsubscribe, UTMs, approved domains), personalization rendered for several synthetic personas, subject line, sender, brand terms, spelling variant and required footer text. Pass HTML or a local file path. Read-only; sends nothing.

ParameterTypeDescription
platform *stringWhich platform's template language the email uses.
check_links_livebooleanAlso check each link over the network (HEAD requests only; unsubscribe and click-tracking links are never requested).
filestringAbsolute path to a local .html file, used when html is not given.
fromstringSender email address.
htmlstringThe email HTML, including template tags.
namestring
personasarraySynthetic test profiles. Leave empty to use the team's personas or auto-generated ones.
preheaderstring
subjectstring
transactionalbooleanReceipts, password resets and other transactional mail: skips the unsubscribe requirement.

check_message Check a push, SMS, in-app, content card or webhook

QA one push notification, SMS/MMS, in-app message, content card or webhook using the team's house rules: renders personalization for several synthetic personas, then checks length against lock-screen / segment / in-app / card limits, SMS encoding and billed segments, opt-out wording and sender name, deep links and other links (non-production hosts, malformed URIs), buttons, webhook URL, secrets in URLs and JSON bodies that break on quotes, brand terms and spelling. Read-only; sends nothing.

ParameterTypeDescription
body *stringPush body/alert, SMS text, or in-app message body (text or HTML).
channel *string
platform *stringWhich platform's template language the message uses.
buttonsarrayIn-app buttons.
deep_linkstringTap-through destination: deep link or URL.
image_urlstring
namestring
opt_out_appendedbooleanTrue when the platform adds the SMS opt-out wording itself, so the text doesn't need its own.
personasarray
platform_channelstringThe platform's own channel name when it matters, e.g. "android_push" (Braze Android pushes need a title).
titlestringPush title or in-app header.
webhook_methodstringWebhook HTTP method (POST, GET…).
webhook_urlstringWebhook destination URL.

check_campaign Check a campaign or journey

QA every message in a campaign or journey (Canvas/flow): emails with content blocks expanded, push, SMS and in-app, plus its settings: audience, conversion events, naming and journey structure (dead ends, unreachable steps).

ParameterTypeDescription
name_or_id *string
platform *stringWhich platform.
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

save_sign_off_report Save a QA sign-off report

Re-run the campaign check and save the result as a Markdown QA sign-off report (verdict, findings per message, what wasn't verified, reviewer sign-off) under ~/.crm-lifecycle-ops/reports/. Returns the path and the Markdown. Use after check_campaign when someone wants a record for a launch ticket.

ParameterTypeDescription
name_or_id *string
platform *stringWhich platform.
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

list_checks List all checks

Every check, with its id, default severity and what it catches, plus which ones are locked (can't be turned off). Use to explain a finding or fill in a problem report.

get_house_rules Show house rules

The team's rulebook (what counts as right for them) and where it's stored. Returns defaults if /setup hasn't run.

save_house_rules Save house rules

Replace the team's rulebook. Always show the person the changes and get a yes first. Locked checks can't be overridden. Schema: locale, brand, links, compliance, senders, personalization, style, naming, severity, exceptions.

ParameterTypeDescription
rules *objectThe full rulebook object (get it with get_house_rules, edit, save).

add_exception Mark a finding as fine for us

Record that a finding is acceptable for this team (not a tool bug), with a reason. Optionally scoped by `match` text. Locked checks can't be waived. For tool bugs use /report-problem instead.

ParameterTypeDescription
check_id *string
reason *string
matchstringOnly waive findings whose message/evidence contains this text.

learn_from_email Learn conventions from a good email

Read an email the team considers correct and propose house rules from it: link domains, UTM params and values, sender, name fallback, US/GB spelling, subject style, footer and postal address. Proposals only; confirm with the person before saving.

ParameterTypeDescription
filestring
fromstring
htmlstring
subjectstring

connection_status Connection status

Which platforms have keys set (keys themselves are never shown), test each connection, and list the environment variables each platform needs.

ParameterTypeDescription
testbooleanAlso make one read-only call per connected platform.

refresh_account Refresh account snapshot

Pull the latest campaigns, journeys, segments, templates and content blocks into a local snapshot (read-only API calls), then report what changed since the previous one. Set demo: true to load the fictional Fernbrook Market demo account instead.

ParameterTypeDescription
platform *stringWhich platform.
demoboolean

list_items Find campaigns, journeys, segments or blocks

Search the latest snapshot by name. Use it to resolve what the person means before checking, mapping or analysing impact.

ParameterTypeDescription
platform *stringWhich platform.
active_onlyboolean
kindstring
limitintegerMax results per kind (default 50).
querystring
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

record_audience Record an audience seen on screen

Fill an API gap: record which segment/list a campaign or journey targets, as read from the platform's dashboard (e.g. via Claude in Chrome). Stored as 'seen-on-screen' with today's date on the latest snapshot.

ParameterTypeDescription
item *stringCampaign or journey name or id.
platform *stringWhich platform.
segment *stringSegment or list name or id.
modestring
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

what_breaks What breaks if I change this

Everything that depends on an attribute, segment/list, content block, event, message or piece of text, live items first, each with how we know (api-verified, parsed from template, seen on screen…) and a list of live items we can't rule out.

ParameterTypeDescription
kind *string
platform *stringWhich platform.
value *stringName or id, e.g. loyalty_tier, VIP members, footer_v2, Order Placed, or a phrase/URL.
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

what_changed What changed in the account

Differences between the latest snapshot and the previous one (or the newest one taken before `since`): added, removed, status changes, content, audience and structure edits. Live items first.

ParameterTypeDescription
platform *stringWhich platform.
sincestringISO date, e.g. 2026-11-01
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

show_journey Show a journey

A Mermaid diagram of a live journey (Canvas/flow) with subject lines, plus structural problems (dead ends, unreachable steps, empty message steps).

ParameterTypeDescription
name_or_id *string
platform *stringWhich platform.
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

find_overlaps Find overlaps with live programs

For a planned journey or campaign: which live campaigns/journeys already target the same segments or lists, trigger on the same events, or use the same attributes, and which live items can't be ruled out.

ParameterTypeDescription
platform *stringWhich platform.
attributesarray
eventsarray
listsarray
segmentsarray
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

bulk_edit_preview Preview a bulk edit

Find text (or a regex) across every subject, preheader, body and content block and preview the replacement, live items first. Preview only; nothing is written.

ParameterTypeDescription
find *string
platform *stringWhich platform.
replace *string
active_onlyboolean
regexboolean
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

how_to Platform-specific build or edit instructions

Step-by-step instructions for a build or edit task in Braze, Klaviyo or Iterable, in that platform's own terms, from a procedure library verified against the vendors' docs (with links). Filled in with the team's house rules (naming, sender, UTMs, fallback syntax, footer, channel limits) and, when a snapshot exists, the account: segments and blocks to reuse, whether the target is live, and shared content that would change other live programs. The plugin never edits the account; a person follows the steps. Tasks: create-campaign (Create a one-off or scheduled campaign); create-journey (Create a…

ParameterTypeDescription
platform *stringWhich platform.
task *string
attributesarrayPersonalization attributes the copy will use.
audiencestringWho it's for, in plain words, to find segments to reuse.
channelsarray
targetstringExisting campaign or journey being changed (edit tasks).
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

launch_health Launch health

Recent delivery numbers for a campaign or journey (sent, delivered, bounces, unsubscribes, spam complaints, opens, clicks) judged against stated thresholds. Needs a connected account.

ParameterTypeDescription
name_or_id *string
platform *stringWhich platform.
workspacestringWorkspace label. Defaults to the connected one, or "demo" when nothing is connected.

ops_report Ops report

From the usage log: messages and campaigns checked, blocking problems caught, most common findings, weekly trend and estimated hours saved (assumption stated). With team: true, totals every operator's log in the shared team folder and breaks it down per operator.

ParameterTypeDescription
daysinteger
minutes_per_manual_checknumber
teambooleanReport across the whole team (needs the team report folder set in plugin settings).