Batch handoff
Procedure for running a multi-iteration batch (count_iter > 1) — building the per-iteration workflow copies and executing them together. Activate after assembly when count_iter > 1.From its SKILL.md
npx -y skills add szprivate/agentY-mcp --skill batch-handoffAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.2 KB, as published. Nobody here has run it
Batch execution — multi-iteration procedure
Activate when count_iter > 1 in the brainbriefing. You build one workflow file per
iteration, collect their paths, then run them all with a single
execute_workflows_batch([...paths...], brainbriefing_json) call. That tool submits
every workflow up front, waits, and returns the output images for QA.
Two modes — determine from the brainbriefing:
variations == trueANDcount_iter > 1→ Variations modevariations == falseANDcount_iter > 1→ Identical mode
Mode A: Variations (distinct prompt per iteration)
Each iteration gets a unique prompt from output_workflows/multiprompt.json.
-
Generate the variation prompts (do this first if the file doesn't exist yet). Produce
count_iterdistinct, creative variations of thepromptfrom the brainbriefing and write them withwrite_text_filein a single call:path:output_workflows/multiprompt.jsoncontent: a JSON string with keysprompt1…promptN, where N equalscount_iter. Keys MUST be namedprompt1…promptNin order, and the number of keys MUST equalcount_iter.
Example for
count_iter = 3:{ "prompt1": "full positive prompt for variation 1", "prompt2": "full positive prompt for variation 2", "prompt3": "full positive prompt for variation 3" } -
Read
output_workflows/multiprompt.jsonviaread_text_file. -
Iteration 1 (base):
update_workflow(base_workflow_path, patches=[{"node_id": "<positive_prompt_node_id>", "input_name": "text", "value": "<prompt1>"}]). Start apathslist withbase_workflow_path. -
Iterations 2…N: for each
promptN:duplicate_workflow(base_workflow_path)→new_path.update_workflow(new_path, patches=[{"node_id": "<positive_prompt_node_id>", "input_name": "text", "value": "<promptN>"}]).- Append
new_pathtopaths.
-
execute_workflows_batch(paths, brainbriefing_json). Inspect the returned images.
Mode B: Identical (same prompt, different seeds)
All iterations share the assembled workflow; duplicate_workflow assigns a fresh
random seed to each copy.
- Iteration 1 (base): ensure
update_workflowreturnedstatus: "ok"in assembly. Start apathslist withbase_workflow_path. - Iterations 2…N:
duplicate_workflow(base_workflow_path)→new_path; append topaths. execute_workflows_batch(paths, brainbriefing_json). Inspect the returned images.
Rules (both modes)
- Build exactly
count_iterworkflow paths — never skip an iteration. - Do NOT call
submit_promptorexecute_workflowper iteration — collect the paths and make ONEexecute_workflows_batchcall. - If
duplicate_workflowfails, report it and stop; don't guess an alternative path. - If
update_workflowkeeps erroring on a duplicate, report the error and stop after 3 retries.