agentsclimarketplace

Batch handoff

Skill szprivate/agentY-mcp/skills/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

Install
npx -y skills add szprivate/agentY-mcp --skill batch-handoff

Assembled 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 == true AND count_iter > 1 → Variations mode
  • variations == false AND count_iter > 1 → Identical mode

Mode A: Variations (distinct prompt per iteration)

Each iteration gets a unique prompt from output_workflows/multiprompt.json.

  1. Generate the variation prompts (do this first if the file doesn't exist yet). Produce count_iter distinct, creative variations of the prompt from the brainbriefing and write them with write_text_file in a single call:

    • path: output_workflows/multiprompt.json
    • content: a JSON string with keys prompt1 … promptN, where N equals count_iter. Keys MUST be named prompt1 … promptN in order, and the number of keys MUST equal count_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"
    }
    
  2. Read output_workflows/multiprompt.json via read_text_file.

  3. Iteration 1 (base): update_workflow(base_workflow_path, patches=[{"node_id": "<positive_prompt_node_id>", "input_name": "text", "value": "<prompt1>"}]). Start a paths list with base_workflow_path.

  4. 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_path to paths.
  5. 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.

  1. Iteration 1 (base): ensure update_workflow returned status: "ok" in assembly. Start a paths list with base_workflow_path.
  2. Iterations 2…N: duplicate_workflow(base_workflow_path) → new_path; append to paths.
  3. execute_workflows_batch(paths, brainbriefing_json). Inspect the returned images.

Rules (both modes)

  • Build exactly count_iter workflow paths — never skip an iteration.
  • Do NOT call submit_prompt or execute_workflow per iteration — collect the paths and make ONE execute_workflows_batch call.
  • If duplicate_workflow fails, report it and stop; don't guess an alternative path.
  • If update_workflow keeps erroring on a duplicate, report the error and stop after 3 retries.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.