{"id":117815,"plugin_id":"plugin_asdk_app_6b05b38f87c88191940bdb3f43f5dff3","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-26T00:16:48.141Z","digest":"03693383d97ec97c99714e038c624dda21bb025828172a8231e5c1f47b03ce65","against":null,"payload":{"description":"Condense a long Voiceflow playbook or main-agent instructions without changing behavior, or move a separate job into its own playbook. Use when asked to shorten, clean up, or split instructions.","included_files":[{"relative_path":"LICENSE","size_in_bytes":1072},{"relative_path":"references/cli-commands.md","size_in_bytes":17918},{"relative_path":"references/documentation.md","size_in_bytes":8179},{"relative_path":"references/operations.md","size_in_bytes":7655},{"relative_path":"references/request-shapes.md","size_in_bytes":10461},{"relative_path":"references/split-main-agent.md","size_in_bytes":2058}],"name":"voiceflow-optimize-playbooks","skill_md_contents":"---\nname: voiceflow-optimize-playbooks\ndescription: Condense a long Voiceflow playbook or main-agent instructions without changing behavior, or move a separate job into its own playbook. Use when asked to shorten, clean up, or split instructions.\nlicense: MIT\n---\n\n# Condense or split long instructions\n\nFor questions about playbooks, instruction size, routing, or tests that this skill\ndoes not answer, follow the\n[docs MCP workflow](references/documentation.md) before answering\nor implementing. For every new Voiceflow troubleshooting issue, consult it even\nwhen this skill suggests a fix. Leave `why` out when it is optional; otherwise\nsend only the package/skill/stage tag described there. Reuse guidance for the\nsame issue; consult it whenever unsure.\n\nRead the [operation contract](references/operations.md). Resolve the\nworking environment first, as the \"Where to make a change\" section of the\n`voiceflow-environments` skill describes.\n\nThis skill makes a long playbook, or the main agent's instructions, shorter\nwithout changing what the agent does. It can also move a separate job into a\nplaybook of its own. Show one plan, ask once, then build every part and run the\nsame tests before and after.\n\n## Condense or split\n\nEach model call of the running agent sees the global prompt and the\ninstructions of the one active playbook. Other playbooks appear only as\ntransfer tools with a name and a description. So a split saves context only\nwhile a conversation stays inside one job. Each move between playbooks costs\none more model call, and a turn allows at most 10.\n\n- Condense first. Most long playbooks are one job that gathered corrections and\n  rules over time. A shorter text is the fix.\n- Split only when a part serves a different user job, has its own tools or its\n  own way in, such as a routing entry or a workflow step, and a conversation\n  usually stays inside one job.\n- Split by product or topic only when each product has its own steps and tools.\n  When the products share the steps and the detail comes from tools, condense.\n- A rule that holds for every job may belong in the global prompt. Suggest it\n  in the plan. Never move it there yourself.\n\nWhen the user asks only to optimize, condense, and say in the plan whether a\nsplit would help. When they ask to split, condense and move each separate job\nthat passes the split test. The main job, the one most rules serve, stays where\nit is; if every job seems to pass the test, the one with the most rules stays.\nNever leave the main agent with only routing.\n\n## Read everything first\n\nChange nothing until the user answers the plan.\n\n1. Every page of the text: `vf_playbook_read_instructions`, or\n   `vf_agent_read_instructions` for the main agent, from line 1. Call again with\n   `offset` set to `nextOffset` until `nextOffset` is null. A page holds at most\n   24,000 characters.\n2. What the playbook owns: `vf_playbook_get` for its settings and system tools,\n   `vf_tool_list` with its `playbookID` for its tools, and\n   `vf_playbook_list_paths` for its exit paths with their `requiredVariables`\n   and `messages`. For the main agent, call `vf_tool_list` with `global: true`\n   before you judge the split test: a tool its text names only in plain words\n   can still be one of its own tools.\n3. The routing list: `vf_agent_get`. Its `playbooks` list holds each entry's\n   `condition`, `description` and `requiredVariables`.\n4. The links into it: `vf_environment_search_text` with `pattern` set to the\n   playbook's ID. While `hasMore` is true, call again with `offset` set to\n   `nextOffset`. An `agent` hit is the playbook's entry in the routing list,\n   and an `agent_tool` hit is one of its own tools or exit paths, not a link\n   into it. A `workflow` hit with a `stepID` is a workflow step that runs\n   or lists the playbook. A `test` hit is a routing check. A `canvas` or\n   `initialization_workflow` hit is a step this skill cannot change, so\n   name it in the plan and condense instead of splitting. Search once more with\n   the playbook's name to find plain-text mentions. If a page says\n   `incomplete: true`, or the search is refused, say the list of links may be\n   short, and do not split.\n5. The tests: the routing checks from the `test` hits, and tests named for the\n   job in `vf_test_list`. Pick at most 10, the ones that route to it first.\n\n## The plan and the one question\n\nKeep the plan short and concrete:\n\n- the size now, in characters, and the size you aim for;\n- for a condense: what repeats and will merge, each contradiction the user\n  must decide, and what looks out of date, which stays unless the user says to\n  drop it. Every rule, every reference, the `## Inputs` section and the exit\n  criteria stay;\n- for a split: the new playbook's name, its job and when it runs, the sections\n  that move, how conversations reach it, and what changes in the original;\n- each routing entry and routing line you will change;\n- the tests you will run before and after, each outside system they can reach,\n  such as a tool that sends or books for real, and that every run uses credits.\n\nThen ask one question in plain text. It asks for the go-ahead, with the test\nruns named. When the plan moves a job, offer \"condense and move the job\" or\n\"condense only\". Never offer to move every job out of the main agent. List each\ncontradiction with both versions of the rule. When no test covers the\nplaybook, offer to create a few first, as\nthe `voiceflow-evaluations` skill describes. Change nothing\nbefore the user answers.\n\n## After the go-ahead\n\n1. Start the tests with `vf_test_create_many_runs`, and read each run until it\n   finishes, as the `voiceflow-evaluations` skill describes. Keep\n   each test's passed checks. A test run builds the environment first, so do\n   not compile.\n2. Make the changes, as below.\n3. Run the same tests again. Make no write after these runs, unless a test\n   failed because of the change. Then say so, fix the agent, never the test,\n   and run the same tests once more.\n4. Report once: what changed, the size before and after, and the passed checks\n   before and after for each test. Name any test that got worse and the likely\n   cause.\n\nOnce the first run starts, never create, change or delete a test, a turn or a\ncheck, not even to make it pass. If a check is wrong after the change, for\nexample one that expects the main agent to answer a job that moved, name it in\nthe report and leave it.\n\n## A condense is one whole replace\n\n1. Read every page of the text again, right before the replace.\n2. Send the whole new text in one `vf_playbook_update` with `instructions`. For\n   the main agent, send one `vf_agent_update` with `instructions`.\n3. Check `unresolvedMentions` in the result. It must be absent or empty. Fix a\n   name it lists with `vf_playbook_patch_instructions` or\n   `vf_agent_patch_instructions`.\n\nA condense keeps every distinct rule, even one stated once. It keeps every\nreference exactly as written: `name` for a tool, playbook or workflow, and\n`{name}` for a variable. It keeps the `## Inputs` section, the exit criteria,\nand the clearest WRONG and RIGHT example for each behavior. It removes repeats\nand words that add nothing, and keeps the order and headings. Sections marked\nwith tags such as `<rules>` become markdown headings. It drops a rule that looks\nout of date only when the user says so.\n\n## Split the main agent's instructions\n\nEvery tool on the main agent is global: every playbook can call it, and every\nworkflow in the main agent's `workflows` list too. So a new playbook can call\nthe main agent's tools and workflows, and this split moves text only. Follow [split the main agent](references/split-main-agent.md).\n\n## Split a playbook\n\nSplitting one playbook into two needs a copy that keeps its tools, exit paths\nand messages. The operations these skills name cannot make that copy yet, and\nrebuilding each tool by hand is easy to get wrong. Condense instead, and tell\nthe user that a split of this playbook is not available here yet.\n\nSources: [Playbooks](https://www.voiceflow.com/docs/documentation/build/playbooks),\n[Tests](https://www.voiceflow.com/docs/documentation/measure/tests).\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}