Skip to main content
BuildOfficialCertifiedAI reviewed Jul 21, 2026

Parallel Features

Dispatch independent feature work in parallel git worktrees. Spawns one agent per feature, each in its own isolated worktree, then merges sequentially. Triggers: 3+ independent features need shipping and would otherwise run serially.

v1.0.1New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install parallel-features
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/parallel-features/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous parallel-feature dispatcher. You take a list of independent features and ship them in parallel worktrees, then merge sequentially. Do NOT ask the user questions — decide on the spot.

This skill exists because doing 3+ independent features in sequence on a single branch wastes wall-clock time. Pet-sitter recall 2026-05-22 identified two textbook cases: Mar 31 evening (3 features run serially in 30 min) and May 21 web shell (11 independent screen passes serial in 7 hours). Worktree-based parallel execution cuts wall-clock 30-50% on multi-feature sprints.

TARGET: $ARGUMENTS

Arguments format: one of

  • <feature1>; <feature2>; <feature3> — semicolon-separated feature descriptions
  • --file <path> — read newline-separated feature list from path
  • --backlog — auto-detect from docs/backlog.md or docs/feature-backlog.md

Optional flags:

  • --max-parallel <N> — concurrency cap (default 4)
  • --base <branch> — base branch (default: current branch or main)
  • --dry-run — show the plan, do not create worktrees
  • --no-merge — leave worktrees in place after agents complete (for review)

PHASE 0: SAFETY CHECKS


Before doing anything:

  1. Clean working tree gate: git status --porcelain must be empty. If there are uncommitted changes, REFUSE with: "Refusing to dispatch — uncommitted changes in working tree. Stash or commit first." Don't try to stash for the user — it's their work.
  2. Base branch up to date: fetch + check we're at-or-ahead-of origin. If behind, pull first.
  3. Feature count sanity: if N < 2, refuse with "Parallelism requires 2+ features. Run /feature or /story-implementer for a single feature." If N > 8, warn and require explicit --max-parallel <N> to confirm.

PHASE 1: INDEPENDENCE ANALYSIS


The single biggest failure mode is dispatching features that touch the same files — you'd get merge conflicts on every fan-in. Detect this BEFORE spawning agents.

For each feature description, predict its file touch set:

  1. Use Agent (subagent_type: Plan) per feature with prompt: "Given this feature description and the current repo, list the files you would touch to implement it. Be concrete (paths, not categories). Do NOT implement — just list."
  2. Collect file lists in parallel.
  3. Build a touch-set matrix and detect overlaps:
    • Hard conflict (same file): feature pair cannot run in parallel.
    • Soft conflict (sibling files in same module): allow but warn.
  4. Construct a parallelizable schedule:
    • Start with all features independent of each other → batch 1
    • Any feature in hard-conflict with batch 1 → batch 2
    • And so on.
  5. If batch 1 is empty (every feature conflicts with every other), refuse with the conflict matrix and recommend running them serially.

Report the schedule to the user:

Parallel plan ({N} features in {B} batches):
  Batch 1 ({k} features): A, C, D
  Batch 2 ({k} features): B
  ...
Estimated wall-clock saving vs serial: ~{X}%

If --dry-run, stop here.


PHASE 2: WORKTREE CREATION (per batch)


For each batch (sequentially across batches, parallel within):

  1. For each feature in the batch, in parallel via Agent:
    git worktree add ../worktrees/<slug-of-feature> -b feat/<slug>
    
    Use a deterministic slug derived from the feature description (kebab-case, max 40 chars).
  2. Verify the worktree directory exists and is on the new branch.

If any worktree creation fails, abort the batch and clean up partial worktrees.


PHASE 3: PARALLEL DISPATCH


For each feature in the current batch, in parallel via Agent (subagent_type: general-purpose):

Each agent gets a self-contained prompt:

You are implementing one feature in an isolated git worktree at <worktree-path>.

Feature: <description>

Run from the worktree path. Do NOT touch other worktrees. Do NOT push to origin.

Steps:
1. cd <worktree-path>
2. Implement the feature following the repo's CLAUDE.md conventions.
3. Run the project's test suite (detect from package.json/pubspec.yaml). Tests
   must pass before you commit.
4. Commit per the project's commit message conventions. Use a single commit
   per feature unless the diff genuinely needs splitting (see /story-implementer
   COMMIT GRANULARITY RULES if available).
5. Report: success or failure, with summary of what changed and the commit SHA.

You have at most 30 turns. If you hit a blocker that needs user input, STOP
and report it — do not guess.

Collect per-feature outcomes:

| Feature | Status | Commit | Files Touched | Notes |


PHASE 4: PER-WORKTREE VERIFICATION (per feature)


Before merging, each worktree must independently satisfy:

  1. Tests green: re-run the project's test command in the worktree. Must pass.
  2. Build green: pnpm build / flutter build / equivalent. Must succeed.
  3. No uncommitted changes in the worktree.
  4. Branch is exactly 1 commit ahead of base (or N commits if the feature genuinely needed splitting — log this).

Any worktree that fails verification stays on its branch and is NOT merged. Report it as a manual-review item.


PHASE 5: SEQUENTIAL MERGE TO BASE


Merges happen SEQUENTIALLY (never in parallel) to keep the base branch's history clean and to surface unexpected interactions one at a time.

For each verified feature branch:

  1. cd <base-repo-path>
  2. git checkout <base>
  3. git pull origin <base> (in case anyone else pushed)
  4. git merge --no-ff feat/<slug> (use no-ff so each feature is a discoverable merge in the history)
  5. Run the project's test suite ONE MORE TIME against the merged state. Tests must pass.
  6. If tests fail post-merge (a hidden interaction between two features), git reset --hard ORIG_HEAD and leave the feature branch unmerged for manual reconciliation. Report it.
  7. Move to the next feature.

After all merges, push base once:
git push origin <base>


PHASE 6: CLEANUP


For each successfully merged feature:

  1. git worktree remove ../worktrees/<slug>
  2. git branch -d feat/<slug> (safe delete — refuses if branch isn't fully merged)

For each unmerged feature (failure or --no-merge):

  • Leave the worktree and branch in place.
  • Report path + branch name so the user can finish manually.

OUTPUT


Parallel Features Report — {YYYY-MM-DD}

Plan

  • Features: N
  • Batches: B (max parallel: K)
  • Estimated saving vs serial: ~X%

Per-Feature Outcomes

#FeatureWorktreeBranchStatusCommitNotes

Merged to {base}

  • {count} features merged sequentially, base pushed.

Manual Review Required

  • {feature} — {reason} — branch left at feat/{slug} (worktree at ../worktrees/{slug})

Wall-Clock

  • Actual: {min}m
  • Serial estimate: {min}m
  • Saving: {%}

CONSTRAINTS:

  • NEVER push feature branches to origin (only merge to base and push base).
  • NEVER force-push.
  • NEVER git worktree remove --force unless the user explicitly opts in.
  • NEVER spawn more agents than --max-parallel allows.
  • ALWAYS run tests in each worktree before allowing a merge.
  • ALWAYS test the merged base before moving to the next merge.

NEXT STEPS:

  • "If unmerged features remain, finish them manually with /story-implementer."
  • "Run /qa once all features are merged to verify the combined state."
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..133 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.642 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.546 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.353 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.252 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.179 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about parallel-features

What does the parallel-features skill do?

Dispatch independent feature work in parallel git worktrees. Spawns one agent per feature, each in its own isolated worktree, then merges sequentially. Triggers: 3+ independent features need shipping and would otherwise run serially. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the parallel-features skill?

Run `npx @skills-hub-ai/cli install parallel-features` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/parallel-features/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does parallel-features work with?

parallel-features runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the parallel-features skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use parallel-features after installing it?

In Claude Code, type `/parallel-features` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the parallel-features skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.