parallelize
Use when plan.md is approved and the QRSPI pipeline needs a parallelization plan — analyzes task dependencies and file overlap, decides execution mode…
by 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
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.mdwithstatus: approvedtasks/*.md(current phase) orfixes/{type}-round-NN/*.md(for fix-task routing)phasing.mdwithstatus: 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.
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.
Feature branch:
qrspi/{slug}/main(e.g.,qrspi/user-auth/main). Created by Implement from the current branch (typicallymain) at the start of the first phase. For subsequent phases, the feature branch already exists.Why
/main, not bareqrspi/{slug}(F-14): git stores refs hierarchically and cannot have both a leaf refqrspi/{slug}and a namespaceqrspi/{slug}/...simultaneously. Naming the feature branchqrspi/{slug}/mainmakes it a sibling of the task branches under theqrspi/{slug}/namespace — all four kinds of branches (featuremain,task-NN,task-NNa,stage-after-W{N}) coexist as namespace siblings. Bareqrspi/{slug}would deadlock the very first task-branch creation withfatal: cannot lock ref ... 'refs/heads/qrspi/{slug}' exists.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
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
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…