worktree-parallel

worktree-parallel is a skill for Claude Code, Codex from Crearize/ai-dev-helm. It costs 40 tokens per session (3,666 once invoked), scanned A, original, MIT.

A set of rules for running several independent tasks from one Git repository at the same time. It standardizes separate work folders, branches, server ports, copied environment files, and cleanup.

In plain words
What is it for?
Use it to organize one Git worktree per issue and branch, assign project ports, copy environment files, and remove worktrees when tasks finish.
Why use it?
It prevents parallel tasks from changing each other’s files, using the same server port, or leaving abandoned Git work folders behind.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to organize one Git worktree per issue and branch, assign project ports, copy environment files, and remove worktrees when tasks finish.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crearize/ai-dev-helm/worktree-parallel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Crearize/ai-dev-helm --skill worktree-parallel
Clone the repo
git clone --depth 1 https://github.com/Crearize/ai-dev-helm

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for worktree-parallel

README.md
[![agentmods](https://agentmods.dev/badge/skills/crearize/ai-dev-helm/worktree-parallel/github.svg)](https://agentmods.dev/skills/crearize/ai-dev-helm/worktree-parallel)
Your own site
<a href="https://agentmods.dev/skills/crearize/ai-dev-helm/worktree-parallel"><img src="https://agentmods.dev/badge/skills/crearize/ai-dev-helm/worktree-parallel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for worktree-parallel

Your own site · 80×15
<a href="https://agentmods.dev/skills/crearize/ai-dev-helm/worktree-parallel"><img src="https://agentmods.dev/badge/skills/crearize/ai-dev-helm/worktree-parallel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,666 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.03666
Opus 5.5 $0.00016 $0.01466
Sonnet 5.5 $0.00008 $0.00733
Haiku 4.5 $0.00004 $0.00367

Measured 15d ago against content hash ef1bd8131483, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

worktree-parallel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/project/worktree-parallel/SKILL.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Worktree Parallel Skill - Git Worktree 並列開発支援

導入先の補足ファイル documents/development/project/worktree-parallel.md があれば、その段で読む。補足ファイルは製品への当てはめ(コマンド・パス・ポート等)だけを持ち、本スキルの規則を緩めない。食い違えば本スキルが優先する。

目的

同一リポジトリ内で複数の独立タスクを並列に進める際、worktree の配置、ブランチ、ポート、環境ファイル、終了処理を統一する。

SuperPowers の using-git-worktrees で分離ワークスペースを確保したうえで、このスキルのプロジェクト固有ルールを適用する。


最重要ルール

  • 1 worktree = 1 ブランチ = 1 Issue を原則とする
  • worktree はリポジトリルートの .worktrees/ 配下に作成する
  • worktree 名はブランチ名の / を - に置換したものにする
  • worktree 内のエージェントは自分の worktree 外のファイルを変更しない
  • 書き込みをするエージェントやセッションは、1 つの worktree に 1 つだけ。HEAD や index を共有しない
  • 他の作業のファイルを stash・restore・clean しない
  • worktree でサーバーを起動する場合は、必ずメインチェックアウト直下のポートレジストリで割り当てられたポートのみを使う
  • 作業完了後は git worktree remove と git worktree prune で孤児状態を残さない

Step 0: 前提確認

git branch --show-current
git status --short --untracked-files=no
git worktree list

--untracked-files=no は、main のチェックアウトで実行したときに、ユーザーの未追跡ファイル(作業中の資料など)の長い一覧を出さないため(前提確認に要るのは追跡ファイルの変更だけ)。

確認すること:

  • 現在のブランチが main / master ではない、またはこれから新規ブランチを作る
  • 未コミット変更がある場合、その変更が現在のタスクに関係する
  • 既に同じ Issue / ブランチ用の worktree が存在しない

Step 1: .worktrees/ の安全確認

.worktrees/ は必ず Git 追跡対象外にする。

bash:

# パスは末尾スラッシュ付きで指定すること(ディレクトリ未作成でも正しく判定するため)
git check-ignore -q .worktrees/ || echo ".worktrees/" >> .gitignore

PowerShell:

git check-ignore -q .worktrees/
if ($LASTEXITCODE -ne 0) { Add-Content -Path .gitignore -Value ".worktrees/" }

.gitignore を変更した場合は、worktree 作成前にその変更をコミット対象として扱う。未追跡の worktree 内容が誤ってコミットされないことを最優先する。


Step 2: Worktree 作成

bash:

BRANCH_NAME="[type]/[description]-[issue-number]"
WORKTREE_NAME="${BRANCH_NAME//\//-}"
WORKTREE_PATH=".worktrees/${WORKTREE_NAME}"

git worktree add "${WORKTREE_PATH}" -b "${BRANCH_NAME}"

PowerShell:

$BranchName = "[type]/[description]-[issue-number]"
$WorktreeName = $BranchName -replace '/', '-'
$WorktreePath = ".worktrees/$WorktreeName"

git worktree add $WorktreePath -b $BranchName

Read the full file on GitHub · 287 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed · +4 lines ef1bd8131483
  2. 1mo ago Changed 54ff0679cb3a
  3. 1mo ago Changed · +2 lines 6bfb42968b51
  4. 1mo ago Changed · +2 lines 4a5a81fd01ac
  5. 1mo ago Changed · +12 lines b6ac06527fc8
  6. 3mo ago First seen · 267 lines · 40 tokens per session scan A 345213043b52

Subscribe to this mod's changes

worktree-parallel is a skill published in the GitHub repository Crearize/ai-dev-helm (6 stars, last pushed 8d ago), licensed MIT. It adds 40 tokens to every session and 3,666 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

worktree-parallel compared with skills from other repositories

worktree-parallel next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
worktree-parallelCrearize/ai-dev-helmSkill68d agoMITA40Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91kyesterdayMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15k3d agoApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.7ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3kyesterdayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA51Claude Code
codex-autoresearchleo-lilinxiao/codex-autoresearchSkill3.3k11d agoMITA39Codex