/mindbox:email-opsfrom mindbox
Performs operational actions for Mindbox emails: preview, template management, campaign metadata/recipient editing, gallery asset search, and image uploads via MCP.
Ships in mindbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The project-aware executor of all integration actions. The JSX generator is
email; this skill does not invent email content and does not change JSX
silently. Preview, editor and save errors go back verbatim — to the generator when they are about the
JSX (they are the editor's text, with line numbers), to the user otherwise; do not rephrase, classify or
repair them silently.
JSX, internal IDs and rowVersion are internal execution details. In normal conversation with the
user say "email", "email layout", "content", "preview" and "saving",
not JSX, the campaign's internalId, variantInternalId, formatInternalId, rowVersion
or visualTemplateRowVersion. Do not show raw JSX or GUIDs unless the user explicitly asked for code,
export, markup or technical details.
A working automated campaign keeps its email in two versions, and the user sees both: the "active" one,
which goes out to customers, and the "draft", which the user will apply in the editor. Call them exactly
that. A campaign that is not working has one version: do not call it a "draft" and do not name the
version at all — the user sees one email. The tools call the draft "version being prepared" — that is
their language for the agent, not addressed to the user. "Working" is what campaign_get says in its
editability line ("This campaign is working, and …"), not a guess from kind: an automated campaign in
in development or ready to send has not gone anywhere yet and is not working.
The MCP feedback of the current Mindbox/email MCP server is an optional channel for passing
confirmed feedback about the skill's work to the developers. Use one of two entry points:
The sending protocol is mandatory in both cases:
[skill-feedback:v1], followed by the fields skill=<email|email-ops> (the skill whose
instructions the problem is about), skillVersion=<metadata.version of that skill's SKILL.md>, source=user-report|agent-observation,
problem and context. problem is the essence: what gets in the way, what went
wrong. For user-report, write the user's exact words into problem, and
add context yourself. For agent-observation, you write both fields. context —
briefly: input data and requests, how the current situation came about, verbatim
backend error texts, reproduction facts (run date, a throwaway
campaign). Add area=<layout|save|preview|gallery|personalization|other>
only if the area is obvious.feedback specifically in the current Mindbox/email MCP server through which
this skill's operations are performed, and only after unambiguous confirmation.
If the user asks to change the text, show the corrected version again
and get confirmation again.| Task | Route |
|---|---|
| New JSX email | target discovery (§1–§2) if a save is needed → images → Generator → preview → confirmation and save (§4–§5) |
| Editing an existing email by ID | campaign_get → §1–§7 |
| Editing JSX the user supplied | Generator makes only the requested changes → preview → confirmation and save, if there is a target campaign |
| Saved templates: an email "by template X", "show my templates", change, rename, create ("save this email as a template"), copy | references/saved-template.md |
| A saved editor block | visual_template_saved_block_list → the user chooses in the panel → visual_template_saved_block_get with the internalId from their message → the Generator places it; a row the get refuses — ask for another block, no look-alike |
Change the content inside a <QuokkaBlock> of an email that was read or of a library block | visual_template_quokka_block_describe by the block's templateId → the Generator → §4–§5 |
Change the content inside a <SyncBlock> | not through MCP: say it is a «Сквозной блок» (in English «Universal block»), edited only in the editor |
| «заголовок» ("heading"), hero, content in the email body | the visual workflow, not subject |
| «оформление», «дизайн», «общие стили», «стиль всех кнопок/заголовков» ("styling", "shared styles", "the style of all buttons/headings") | the email's shared styles: visual_template_theme_get and <Theme> in the JSX (§3), not subject |
| Change the template type: "rebuild it in the visual editor", "convert it to HTML" | "Changing the template type" |
| «тема письма» ("email subject"), sender, preheader | campaign_get → campaign_edit_content |
| Name, UTM, schedule | campaign_get → campaign_edit |
| A block or a row only for a segment, or hidden from one | segments_list with entityType: User, only segments of Active segmentations, the user picks by name → show or hide → the Generator writes targeting → the line in the save confirmation |
| Set recipients: a segment or a filter | references/recipients.md |
| A new campaign from scratch | "New campaign from scratch" |
| Test send of an email | "Test send" |
| An image: in the gallery / from the user's machine / by an HTTPS link | "Images" |
| PNG, desktop/mobile, HTML check | "Checks, preview and QA" |
If data is missing:
variantInternalId + formatInternalId of the version you write into) or no save confirmation — stop and ask;internalId, variantInternalId, formatInternalId, a URL, a gallery asset or a fileName.Live send/activate/delete, applying the draft, creating a format and recipients from a one-off file are not available in MCP. The agent does not do them on the user's behalf — neither in the editor nor through browser automation: name the action, say it is done in the campaign UI, and stop.
Ops chooses nothing silently; target discovery comes first (Quickstart, "New JSX email"). Generator always gets the
pair {url, fileName} from the tool output or the panel line.
gallery_images_list by the name from the user's request.{url, fileName}, fileName as printed in the same row.fileName; size/date only if present, the URL only if the options cannot be told apart without it. One social
network often has several icon designs — ask. A missing network — ask for a link or a file; no look-alike.In a client that supports MCP Apps, every gallery_images_list call also opens a picker panel with a search
box and thumbnails; the user marks images and presses "send to chat", and the message carries one
file name — URL line per image. The text answer is the same with or without the panel.
url from the line and the file name as fileName. For an image stored in WebP this is a link to its
PNG copy — that is normal.gallery_image_upload — how to use it is in its description and responses. The skill adds:
http:// — ask for an https one or a file; a
data:/blob:/file:/cid: string is not a link — ask to save the picture as a file and use the panel.If a gallery tool returned an error, pass its meaning to the user and stop the image-dependent part. Do not invent a cause, do not ask for local credentials, do not substitute a similar image. Without a URL from the tool the email can be built only without this image, by agreement.
visual_template_preview of the turn's final JSX — the
user has to see what was built. Open both snapshots yourself first (with a mockup — compare them with it,
email/SKILL.md step 4), then give the user the widget and the htmlUrl link. Operations without JSX —
metadata, recipients, a test send — get none; a campaign that is not edited from here may get one as read-only.email.tags.template, "In the preview".Internal server error without a line number is not a value-shape error (those come
back named): pass it on, do not retry blindly. A sync block not found on preview or save: after the editor's
text, offer to remove its <SyncBlock> or to open the email in the editor.HTML download, diagnostics of a specific rendering problem, PNG links missing — you MUST read
references/preview-qa.md first.
The only detailed workflow for reading, editing and writing JSX.
campaign_get. Record its name, internalId and rowVersion,
variants, formats and pre-existing validation errors.variantInternalId + formatInternalId from those
campaign_get lists. A working automated campaign lists two: the edit goes into the draft; if there is none
yet, write into the active one — the save itself creates the draft and says so.Mindboxeditor — the visual workflow is allowed;Rawhtml with html: yes — existing raw HTML, never a visual target: say the email is edited in the
editor; a request to convert it — "Changing the template type";Rawhtml with html: no — an empty-bootstrap candidate: go to visual_template_get (§2);variantInternalId is the A/B variant, not the JSX attribute themeVariant.visual_template_get of the campaign's template of the target version.
visualTemplateRowVersion belongs to exactly that version: never pass it into another one.visualTemplateRowVersion came back — an existing visual template; keep the exact JSX as the
snapshot. If the format has html: no, first do attachment recovery: after confirmation, save exactly this
JSX with the campaign's current rowVersion and the template's visualTemplateRowVersion, then check it as a
first bootstrap save (§5 item 6). No edits and no new version until recovery succeeds.
visual_template_get, visual_template_theme_get).visual_template_theme_get on the campaign's
template with its JSX. The email's styles are its own — the second question is mandatory, with
three answers: build in these styles (headings and buttons follow them and change with the whole email),
new styles, or reset to platform defaults. Already platform defaults — do not ask.
The question is mandatory because a full overwrite does not erase the styles: they belong to the format and
survive the save. Reset values come from the same tool with no template. Say plainly that a complete
"as if nobody had configured it" is not available: the styles stay the email's own, just equal to the
platform defaults.No visual template was saved for — check the original campaign_get:
html: no with Mindboxeditor or Rawhtml — a bootstrap: there is no snapshot and no
visualTemplateRowVersion; the first save goes after confirmation, without visualTemplateRowVersion;html: yes or emptiness not confirmed — not a bootstrap, do not overwrite: there may be raw HTML. The
exception is a draft the save itself has just created (§5 item 5): it has a body as a copy of the
active version, but no editor template yet — the retry goes per §5 item 5.<Theme> or check values after the
move — visual_template_theme_get on the campaign's template with the current JSX; give the fragment to the
generator as is. Platform defaults (no template yet) are never relayed to the user as their email's styling.The state of the shared styles is needed only when the document names a look, and needs no separate call: no
format or No visual template was saved for … — platform defaults; an email in the format — item 2, only when the
generator needs the values. The tool's response is large; do not call it for this question alone.
A meaningful change to the email — a new email, or an edit the user asked for is done — ends with the offer to
save it, in the same reply as the preview. Before visual_template_save, one explicit confirmation of the version
the user saw in the last preview:
- campaign: <name and internalId if needed>
- A/B variant: <a human-readable description, show only if the campaign has several variants>
- where the edit goes: for a campaign that is not working, do not name it — there is one email; for a
working one, say plainly that the edit goes into the draft, not into the email customers receive now
- change: a short description
- targeting: per targeted block, in words — «<block>» only to «<segment>» / to everyone except «<segment>»; a new
email (the first save into an empty format, or one replacing the format's email) with none, and segments never
touched in the conversation — ask once whether some block should go only to a segment; "no" holds to the end of the
conversation
- shared styles: this line is mandatory in **every** confirmation and is read directly from the document, not
from memory of the questions asked — three mutually exclusive cases:
- the document has `<Theme>` → "the email's shared styles are set by this document";
- there is no `<Theme>`, and the nodes name their own look → "the email is saved with its own styles on each
element";
- there is no `<Theme>` and the nodes name no look → "the email's shared styles stay as they are, the nodes follow
them".
No line — the confirmation is incomplete. Separately from the line: if the document meets the condition of
step 5 of `email/SKILL.md`, and the offer has not been made in this
conversation — make it right here, together with the other save parameters: "Save
this email's styles as its shared styles? Then you'll be able to change headings and buttons across the whole
email at once." One conversation — one such question: the answer holds until its end, and neither a second
save nor edits re-trigger it
- existing email: only if the format already had a visual template and replacement was chosen —
"the email in the format is replaced entirely"
- style move: only if the edit moves the nodes' styles into the email's shared styles — "the styles move
into the email's shared styles, the look does not change; from then on they can be edited across the whole email at once"
- applying line: only for a working campaign — "customers will see the edit after it is applied in
the editor"
An ambiguous target is asked about earlier and separately from the write confirmation.
references/saved-template.md).
Moving styles into the shared ones is one save: <Theme>, the nodes the styles left and themeVariant in
one document — saved apart, the email is left without a look in between.rowVersion and the visualTemplateRowVersion of the version you write into.
A bootstrap: the campaign's rowVersion only. A draft the save itself creates needs no template version either.ChangeConflict (§7). The tool names the right version — take it from the refusal text, not from memory.rowVersion. The retry goes into that version with
that rowVersion and without visualTemplateRowVersion. Only the save's own response confirms
success here: the draft is a copy of the active version and shows Mindboxeditor/html: yes before any write.campaign_get and find the same formatInternalId. Success only
if it became Mindboxeditor with html: yes. Stayed Rawhtml/html: no, disappeared, or unclear — do not
say "saved", do not repeat automatically: report that the template did not attach; continue only via
attachment recovery (item 7) after visual_template_get and a new confirmation.The template itself WAS stored — only the campaign was not): keep the returned visualTemplateRowVersion, do not create a new template. After a fresh
campaign_get and §1 items 2–3 again, attachment recovery saves exactly the same JSX with that version.campaign_get from those the edit introduced.campaign_get/visual_template_get only if the response is
incomplete, the version is lost or the next operation needs it — and always after the first bootstrap save.ChangeConflictChangeConflict is a concurrency event, not a way to find out the current version. On a conflict re-read
campaign_get (§1 items 2–3: still edited from here, same target), then visual_template_get, and compare the
fresh JSX with the original snapshot from §2, not with the edited JSX.
campaign_get and find
the same formatInternalId: continue only if it still has html: no with Mindboxeditor or Rawhtml,
otherwise stop as above. Then visual_template_get: a template has appeared — attachment recovery with it and
its visualTemplateRowVersion; still none — show the unchanged target, get a new confirmation, one bootstrap
retry with the campaign's fresh rowVersion. A second conflict — stop."Rebuild it in the visual editor", "convert it to HTML" — the template type belongs to the format and
does not change through MCP: there is no tool, visual_template_save into Rawhtml with html: yes is forbidden,
and htmlBody can only do the reverse. The formats of one campaign are of the same type, so looking inside
it for a format for a different route is pointless. The refusal is known in advance, so iterating over tools,
saving "as a try" and retrying after a refusal are forbidden.
The only path is a new campaign in which the same email is built straight away in the needed
editor; the original stays untouched. Offer it and wait for explicit consent; without it
nothing is created. After consent: "New campaign from scratch" with
the same mailingKind, carrying over the subject/sender/preheader through campaign_edit_content,
the name/UTM — through campaign_edit, then the visual workflow. Take the email's source
from campaign_get with includeBodyForVariants; do not reconstruct it from memory. Say in advance that
recipients, segment, subscription and schedule are not copied, and that table layout and non-standard
HTML are not carried over one-to-one into editor blocks.
campaign_edit, campaign_edit_content, campaign_createNo preview for metadata edits. An explicit request with a specific campaign and exact new values counts as confirmation. Show the exact diff and ask separately if the target/value was inferred by the agent, the plan changed, or only part of the request is being performed. Always confirm changes to the schedule, transactional/restriction flags and ignoring of restrictions separately.
Before any metadata write, read the editability line in campaign_get. Neither tool is used when:
Then stop and tell the user to edit such a campaign in the editor, where it is visible what exactly will go out.
The restriction lives here, not in the tool: the tool will accept such an edit. htmlBody is the email, not a
field: it has a draft, and on a working campaign the edit goes there without changing what is being sent.
The campaign's rowVersion is one token for the campaign tools and visual_template_save, not
visualTemplateRowVersion; each write returns the next one.
rowVersion,
take it, success or not. So campaign_send_test from the draft is a write in this chain too.campaign_get before the next write.campaign_edit or campaign_edit_content — as ChangeConflict (§7, "matches the
snapshot"), comparing the fields you are changing with the ones read before.Ask for the folder and the brand in words, not as identifiers, and the time zone. Find
the values for campaign_create yourself: entities_list(entityType: "Folder") returns
the folder's internalId and its brands, entities_list(entityType: "Brand") — the brand's system name.
Nothing found or several candidates —
show what was found and let the user choose, but do not ask them to dictate a GUID. Settings the user names now
(name, UTM, schedule, restrictions) go in after creation; the rest — "What the campaign still needs to go
out".
mailingKind is a decision, not an optional field: the kind does not change after creation — only a new
campaign fixes it:
Automatic — an automated campaign ("Automated campaigns" in the UI): sent by a flow in response to an
event — an abandoned cart, viewed products, welcome, order status, reactivation, a birthday, any "when the
customer …". Such an email has the event's data — the order, the cart, the views.Manual — a bulk campaign ("Bulk campaigns" in the UI): a one-off send to a segment launched from the
interface — a promotion, an announcement, a digest.The kind cannot be read unambiguously from the request — ask one question before creation. A Manual
campaign has no event to read, so parameters marked (automated only) and product rows / editor-template
collections on mechanics that look at the customer's action (the cart, viewed products, order items) make no
sense there; recommendations and product lists work in both. An email that relies on event data needs
Automatic — say so before creation.
campaign_create → immediately campaign_get; the collected fields go in through the tools its description
names; from then on follow the version chain.
The email body: the empty format (html: no) goes through visual_template_get and the bootstrap branch of
§2 item 3. No format found — do not invent an ID and do not save "as a try": say the format needs to be
initialized in the UI. The campaign link comes back from the first save; until then report the internalId
and the name, never an address built by hand.
After the email is saved — "What the campaign still needs to go out".
After the first save of an email into a campaign that is not ready to send (readyForSending: no in
campaign_get), and whenever the user asks to prepare it for sending, read campaign_get and name what is still
missing, in words, offering to fill in what MCP can:
subject: not set: offer one written from the email's content, and a preheader with it; set
them after the user agrees or gives their own;not set — ask for the name and the address, there is no list of senders to pick from;Recipients: not selected: offer a segment or a filter
(references/recipients.md); an automated campaign takes its audience from the flow;Fields go in through campaign_edit_content and campaign_edit by the version chain. Subscription topic and the
launch itself are done in the UI — say so last, and offer a test send of the email.
campaign_edit_contenthtmlBody only on an explicit request for raw HTML — never as a fallback for visual_template_save, and never
offered for an email built in the visual editor. Through the skill only a single-variant campaign is edited:
several A/B variants — stop and direct to the UI.
Write the report as a consequence, not as a version: the tool names it on a separate line — relay it and do
not make up the other case. A campaign closed for editing refuses htmlBody; do not offer "the subject
instead" — such a campaign is not edited at all, per the prohibition above. Do not clear subject/preheader to
empty/null — not described by the contract: report the limitation and direct to the UI; do not use
preHeaderPresentationMode.
A test email is a real send to staff test recipients, not a preview. The saved content of the chosen version goes out, not what is in your context.
campaign_test_recipients → the user explicitly chooses the recipients, even with one candidate.campaign_send_test. Several A/B variants — the user chooses. A working campaign — ask what to show: what
customers receive now, or the draft, and send from that version. Relay where the email went
out from.campaign_get. Offer a test from the active version only
on a working campaign, where it is visible.transactional: yes: the platform then checks neither the unsubscribe
link nor synchronization. Do not present it as "the email is fine": the real check is the preview and the test
email by eye. A transactional campaign is edited by the general rules.| Situation / signal | File | What's there |
|---|---|---|
You are composing MCP feedback text and it is unclear how to write problem/context | references/feedback-examples.md | Examples of user-report and agent-observation from real runs + anti-examples |
| HTML download, rendering diagnostics, PNG links missing | references/preview-qa.md | The extended QA procedure: download HTML, MCP PNG links, diagnosing complaints, repeats and fallback |
| Saved templates | references/saved-template.md | Picking a template; an email by it; changing, creating, copying |
| Set or change the campaign's recipients: a segment or a filter | references/recipients.md | Choosing the method, segments_list / the filter-building skill (filter-build), confirmation, writing |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/analyticsAnswer questions about a project's analytics with figures from the analytics datamarts. Use when asked for a figure, why a figure changed, how campaigns or flows performed, or for a summary of a period. Russian triggers: "сколько выручки", "почему упала выручка", "итоги рассылки", "как сработал сценарий", "сводка за месяц". English triggers: "how much revenue", "why did revenue drop", "how did the campaign perform", "summary for last month". Don't use when: the request is to build or change a flow, a mailing or a filter — those have their own skills; the user needs a list of customers rather than a figure./emailCreates and edits emails for the Mindbox email editor from a text description. Use when the user asks to create or change an email, describes an email template, or says 'сделай рассылку' / 'make a campaign'. The technical layout is handed over for preview and saving through the companion skill email-ops./filter-buildnpx claudepluginhub mindbox-cloud/agent-skills --plugin mindbox2 plugins ship this exact skill · first indexed Nov 21, 2026