Worktree Parallel Skill
This skill automates creating and managing Git worktrees for simultaneous feature development.
Key Purpose
"Create and manage a git worktree for parallel feature development, then open the new worktree in the editor" for concurrent coding sessions.
Core Workflow Steps
- •Confirm repository root — Use the current directory unless specified otherwise
- •Establish branch naming — Default pattern is
feat/<slug>, or use user-provided branch names - •Set worktree directory — Typically
../<project_name>-wt(created if needed) - •Execute worktree creation — Uses
git worktree addwith either new or existing branches - •Launch editor — Opens the worktree via
code -n <path>or alternative editor command - •Initiate Codex session — Suggests running
cd <path> && codexin the new workspace - •Verify setup — Optional confirmation using
git worktree list
Safety Guidelines
- •Avoids
--forceflags unless explicitly requested - •Preserves existing worktrees unless cleanup is requested
- •Offers optional removal commands only when the user asks
This skill streamlines parallel development workflows by eliminating manual setup steps.