From 99a8f00918cbb221b7070ce117c782718be112e2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2026 08:09:45 +0000 Subject: [PATCH] docs: link 360 parallel sample from claude-workflow-conversion reference Add sample 360 (parallel destructuring) to the example programs table in claude-workflow-conversion.md. The [a, b] = await parallel([...]) pattern is the most common Claude dynamic workflow idiom for a fixed set of concurrent calls and had no entry in the conversion guide. Also add the back-link to claude-workflow-conversion.md in the 360 sample header, consistent with 320 and 330. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- skills/rig/references/claude-workflow-conversion.md | 1 + skills/rig/samples/360-parallel-branch-analysis-workflow.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/skills/rig/references/claude-workflow-conversion.md b/skills/rig/references/claude-workflow-conversion.md index ad2fac9..7f331b6 100644 --- a/skills/rig/references/claude-workflow-conversion.md +++ b/skills/rig/references/claude-workflow-conversion.md @@ -162,6 +162,7 @@ workflow patterns — use them as starting points when converting a script: | [310-workflow-audit-verify.md](../samples/310-workflow-audit-verify.md) | `args`→`input`, `parallel`, `pipeline`, `phase`, `call.json` — mirrors the canonical find-and-verify pattern | | [320-budget-aware-crawler.md](../samples/320-budget-aware-crawler.md) | `log`, `budget.remaining()`, `until` convergence loop | | [330-nested-workflow-composition.md](../samples/330-nested-workflow-composition.md) | `call.workflow` (rig equivalent of `workflow(ref, args)`) sharing the parent's limiter and budget | +| [360-parallel-branch-analysis-workflow.md](../samples/360-parallel-branch-analysis-workflow.md) | `const [a, b] = await parallel([...])` destructuring — the common Claude pattern for a fixed set of concurrent calls | ## Related references diff --git a/skills/rig/samples/360-parallel-branch-analysis-workflow.md b/skills/rig/samples/360-parallel-branch-analysis-workflow.md index 882a827..da58e24 100644 --- a/skills/rig/samples/360-parallel-branch-analysis-workflow.md +++ b/skills/rig/samples/360-parallel-branch-analysis-workflow.md @@ -5,6 +5,9 @@ dynamic workflows. `parallel` respects the shared concurrency limiter and converts failures to `null` holes. Use it instead of `Promise.all` when porting a Claude dynamic workflow. +See [claude-workflow-conversion.md](../references/claude-workflow-conversion.md) +for the full primitive mapping. + ```rig import { agent, p, s, workflow } from "rig";