/synthflow:safe-agent-changefrom Synthflow
Make a change to a live Synthflow voice agent safely — record a baseline, save a draft, review the diff, publish only on approval, verify the published state, and roll back if needed. Use this whenever the user wants to edit, update, fix, tweak, or publish an agent's prompt, greeting, voice, transcriber, LLM, actions, or any other setting, or wants to roll an agent back. Trigger on phrases like "update the prompt", "change the voice", "fix the agent", "publish the draft", "push this live", "roll back the agent", or "undo the last change".
Ships in Synthflow. 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.
None: SKILL.md is the whole skill.
Change a live agent without breaking what already works. Every edit goes through the same loop:
baseline → draft → diff → approval → publish → verify (→ rollback if verify fails)
Agents that skip steps in this loop are where most production incidents start: attached actions silently lost on republish, a prompt from one agent written over another, a failed update retried on top of a draft that had in fact been saved, or a draft published that changed more than the user asked for.
This playbook runs on the Synthflow MCP tools, whether they come from the plugin's bundled server or the official Synthflow connector.
get_current_workspace, list_subaccounts — confirm which workspace the agent lives in.list_agents, search_agents_by_prompt — find the agent when the user hasn't given a model_id.get_agent — current settings and prompt.get_agent_actions — the actions attached to the agent (the baseline you must preserve).list_agent_versions — published versions and any existing draft.update_agent — saves changes as a draft. Nothing goes live.get_agent_version_diff — what the draft changes compared to live.publish_agent_draft — makes the draft live.rollback_agent_version — restores a previously published version.list_voices — required before any voice change.Some tool descriptions mention show_version_diff. That UI tool doesn't exist over MCP — show the diff to the user yourself, in the chat.
list_subaccounts and pass that subaccount's workspace_id on every call below. Never guess or reuse a workspace_id from elsewhere — tools reject any workspace that isn't the current one or one of its subaccounts.model_id. If the user named an agent, use list_agents (or search_agents_by_prompt) and confirm the match when more than one agent could fit. Never guess.Before changing anything, capture and keep in the conversation:
get_agent — the current prompt and the settings you're about to touch.get_agent_actions — every attached action: name, action_id, trigger condition, and input-variable mapping.list_agent_versions — the version marked is_current=true (your rollback target) and whether a draft already exists.If a draft already exists, stop and tell the user. Run get_agent_version_diff to show what it contains. Someone may have unpublished work in progress — your update would land on top of it, and publishing would ship their changes too. Ask whether to build on it or start from live; don't publish someone else's draft without them saying so.
Call update_agent with only the fields that change. Every field in update_data is optional; anything you leave out is left alone.
Rules for the payload:
get_agent for this same model_id in Step 1, apply the edit, and send the whole result. Never send a prompt taken from another agent, a local file that might be stale, or an earlier read from before someone else changed it.list_voices first, then send all six voice fields together: voice_id, voice_name, voice_accent, voice_language_code, voice_preview_url, voice_is_recommended. Sending only voice_id leaves the agent's voice settings inconsistent.action_bindings unless the user asked to change which actions are attached. If you must, send the complete list built from your Step 1 baseline, with every existing trigger condition and input-variable mapping preserved — a partial list replaces the agent's actions with it.synthesizer_fallback_provider must differ from voice_provider.transcriber_endpointing must be 100 or 300.If update_agent returns an error, do not retry blindly. Some errors are returned after the draft was in fact saved. Run get_agent_version_diff first:
Call get_agent_version_diff with no version_id (it defaults to the draft compared with live). Show the user every changed field.
Check before asking for approval:
null becoming a default value) — and say whether it matters.attached_actions empty while the live agent has actions, stop. Don't publish. Tell the user, and fix the draft (re-send action_bindings from the baseline) before going on.For a non-trivial prompt change, offer to run the prompt-review skill on the new prompt, or the regression-test skill against a test copy of the agent, before publishing.
Call publish_agent_draft only after the user has seen the diff and said yes in this conversation. A request to "make the change" is not approval to publish — the draft is the change; publishing is a separate decision.
Pass a short description saying what changed and why (for example "Ask for confirmation before booking; fixes double bookings"). It shows up in the version history.
If publishing fails, report the exact error. Common causes are the constraints listed in Step 2.
Publishing succeeding isn't the same as the agent being right. Verify:
list_agent_versions — a new version is is_current=true and no draft remains.get_agent — the changed fields hold the new values.get_agent_actions — compare with the Step 1 baseline. Every action that was attached before is still attached, with the same trigger condition and input-variable mapping.If any action went missing, tell the user straight away, and offer either to roll back, or to restore it. To restore it, send action_bindings from the Step 1 baseline through another draft → diff → publish loop. attach_action_to_agent alone re-attaches the action but doesn't restore its trigger condition or input-variable mapping.
Suggest a test call or simulation to confirm behaviour, especially for prompt and voice changes.
Use this when verification fails, or when the user asks to undo a change. Always in this order:
list_agent_versions — call it fresh, even if you listed versions earlier. Copy version_id values verbatim from this output.get_agent_version_diff with version_id = the target version and compare_with = the row with is_current=true. Show the user what will change.rollback_agent_version with the target version_id, only after the user confirms.Rollback creates a new version, doesn't delete history, and clears any existing draft — warn the user if one exists. You can't roll back to the version that's already current.
After rolling back, run Step 5 again.
End with a short summary:
update_agent as going live, and never publish without showing the diff.model_id, workspace_id, and version_id come from a fresh tool result, never from memory or guesswork.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/build-actionCreate, update, test, and attach Synthflow agent actions over MCP — custom HTTP actions, information extractors, transfers, SMS, real-time booking (Cal.com, GoHighLevel), IVR navigation, custom evaluations, and call-summary emails. Use this whenever the user wants to give an agent a new capability, connect it to an API or CRM, extract data from calls, add a transfer or SMS, set up booking, change an action's URL, body, or variables, or fix an action that isn't firing or is failing. Trigger on phrases like "add an action", "call my API during the call", "extract the caller's email", "set up a transfer", "connect booking", "update the webhook URL", or "the action isn't working"./call-reportBuild a call-volume and outcome report for a Synthflow agent, workspace, or agency — counts, durations, statuses, end-call reasons, call reasons from information extractors, transfer and booking results, and trends over a period. Use this whenever the user wants a daily, weekly, or monthly report, a call-reason breakdown, KPIs for a customer, an operations dashboard dataset, or numbers like "how many calls did we get", "what are people calling about", or "what share of calls were transferred". For a quality audit of individual calls, use the call-review skill instead./call-reviewReview the last 100 calls for an agent and surface problems. Use this whenever the user wants a call-quality audit, a QA pass over recent calls, a "what's going wrong with this agent" review, or to find failed, unresolved, dropped, or otherwise problematic calls. Trigger on phrases like "review my calls", "what's wrong with the calls", "QA the last 100 calls", "find bad calls", or "audit recent calls"./diagnose-callInvestigate why a specific Synthflow call (or a small set of similar calls) went wrong — failed or missed transfers, calls cut off, the agent going silent or repeating itself, actions or webhooks that didn't fire or failed, wrong data captured, or outbound calls that didn't connect. Use this whenever the user points at a call or a phone number and asks what happened or why, e.g. "why did this call drop", "the transfer didn't ring", "the booking didn't happen on this call", "the webhook never arrived", or "check the call from +1… this morning". For an audit of many recent calls, use the call-review skill instead./prompt-reviewReview AI voice-agent prompts, especially Synthflow Single-Prompt, for contradictions, missing context, unsafe tool/action behavior, escalation gaps, compliance risk, and regression risk. Use this when the user asks to review, audit, validate, improve, or compare a prompt before deployment./regression-testBuild and run simulated-caller tests against a Synthflow voice agent, then report which scenarios pass or fail with transcript evidence. Use this whenever the user wants to test an agent before or after a change, check that a prompt fix works, reproduce a failure from a real call, build a test suite, or re-run existing simulations. Trigger on phrases like "test the agent", "run the simulations", "regression test", "make sure this didn't break anything", "build a test suite", "reproduce this call", or "re-run the tests".npx claudepluginhub synthflowai/anthropicplugin --plugin synthflowOther plugins' skills for the same job