Command Palette

Search for a command to run...

Back to skills
skill № 37548

parallelize

Use when plan.md is approved and the QRSPI pipeline needs a parallelization plan — analyzes task dependencies and file overlap, decides execution mode…

FreeNo executable scripts
dfrysingerby dfrysinger★ 42 GitHub stars

Install parallelize in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Parallelize (QRSPI Step 8)

PRECONDITION: Invoke qrspi:using-qrspi skill to ensure global pipeline rules are in context. (Idempotent on session re-entry. Subagents are exempt — SUBAGENT-STOP in using-qrspi handles that.)

Announce at start: "I'm using the QRSPI Parallelize skill to analyze task dependencies and produce a parallelization plan."

Overview

Plan-time artifact for the current phase. Analyze dependencies and file overlap across tasks/*.md (or fix-task batches), determine execution mode (sequential/parallel/hybrid), and write parallelization.md containing a Dependency Analysis table, a symbolic Branch Map, and (if needed) a Stage Commits table. Get human approval, then hand off to Implement — which is the runtime owner of branch creation, worktrees, baseline tests, and the per-task orchestration loop.

Parallelize never creates branches, never runs baseline tests, never dispatches per-task subagents. Anything that requires resolving a symbolic base to a real commit happens in Implement.

Why This Skill Is Separate From Implement

Earlier QRSPI revisions folded planning and runtime into a single Worktree skill. This created a half-static / half-runtime artifact: the Branch Map's Base column referenced stage commits that did not exist at plan time, so the document changed meaning between approval and execution. Splitting Parallelize (plan-time, symbolic) from Implement (runtime, concrete) restores QRSPI's "one skill = one artifact + one human gate" symmetry. Parallelize owns parallelization.md and the parallelization-plan gate; Implement owns the per-task orchestration loop and the batch gate.

Iron Law

NO TASK DISPATCH WITHOUT AN APPROVED PARALLELIZATION PLAN

Parallelize is the skill that produces and gates the plan; Implement is the skill that consumes and enforces it.

Parallelize OWNS / Parallelize DEFERS

!cat skills/parallelize/owns-defers.md

Artifact Gating

Required inputs:

  • plan.md with status: approved
  • tasks/*.md (current phase) or fixes/{type}-round-NN/*.md (for fix-task routing)
  • phasing.md with status: approved (phase definitions and slice ownership)
  • config.md

If any required artifact is missing or not approved, refuse to run and tell the user which artifact is needed.

Config Validation

Apply the Config Validation Procedure in using-qrspi/SKILL.md. Parallelize validates pipeline, route, and (when pipeline: quick) question_budget.

Do NOT mark `parallelization.md` approved while Waves overlap on files. Do NOT include forward-only dependencies (task-N depending on task-M where M > N within a sequential chain) in the Dependency Analysis. Do NOT name a Base in the Branch Map that the Branch Model does not authorize (see Branch Model below). This applies regardless of how simple the phase appears.

Execution Modes

Mode When Branch Map shape
Sequential Tasks form a chain (A→B→C) Each task's base is the previous task's tip
Parallel Tasks are independent and file-disjoint Every task in the Wave shares the Wave's base
Hybrid Mix of independent and dependent tasks Waves share a base; downstream Waves fork from a stage commit, a single prior tip, or task-00 per the Branch Model

Branch Model (Symbolic — Resolved by Implement)

parallelization.md records every task's Base as a symbolic reference. Implement resolves each symbolic reference to a concrete commit at runtime — including creating stage commits when needed.

  1. Feature branch: qrspi/{slug}/main (e.g., qrspi/user-auth/main). Created by Implement from the current branch (typically main) at the start of the first phase. For subsequent phases, the feature branch already exists.

    Why /main, not bare qrspi/{slug} (F-14): git stores refs hierarchically and cannot have both a leaf ref qrspi/{slug} and a namespace qrspi/{slug}/... simultaneously. Naming the feature branch qrspi/{slug}/main makes it a sibling of the task branches under the qrspi/{slug}/ namespace — all four kinds of branches (feature main, task-NN, task-NNa, stage-after-W{N}) coexist as namespace siblings. Bare qrspi/{slug} would deadlock the very first task-branch creation with fatal: cannot lock ref ... 'refs/heads/qrspi/{slug}' exists.

  2. Task branches — base depends on execution mode:

    • Wave: A set of tasks that share a base AND have no file overlap. Wave numbering does not imply dispatch ordering — Implement's runtime rule is "dispatch every Wave whose dependencies are satisfied each tick."
    • Parallel: Every task in the Wave shares the Wave's base tip (see Hybrid below for Waves beyond Wave 1; Wave 1's base is the feature branch tip). Tasks in a Wave are independent by construction (no file overlap, no logical dependency).
    • Sequential chain: Task-N's base is task-(N-1)'s tip — not the f
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • owns-defers.md
  • references/worked-examples.md

FAQ

What does the parallelize skill do?

Use when plan.md is approved and the QRSPI pipeline needs a parallelization plan — analyzes task dependencies and file overlap, decides execution mode, produces parallelization.md with a symbolic branch map; hands off to Implement

How do I install the parallelize skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the parallelize skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare parallelize with