Dotfiles-nix worktree-parallel
Create and manage Git worktrees for parallel feature development. Use when user wants to work on multiple features simultaneously or needs isolated development environments.
install
source · Clone the upstream repo
git clone https://github.com/not-matthias/dotfiles-nix
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/not-matthias/dotfiles-nix "$T" && mkdir -p ~/.claude/skills && cp -r "$T/modules/home/programs/cli-agents/shared/skills/worktree-parallel" ~/.claude/skills/not-matthias-dotfiles-nix-worktree-parallel && rm -rf "$T"
manifest:
modules/home/programs/cli-agents/shared/skills/worktree-parallel/SKILL.mdsource content
<!-- Source: Original work -->
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
, or use user-provided branch namesfeat/<slug> - Set worktree directory — Typically
(created if needed)../<project_name>-wt - Execute worktree creation — Uses
with either new or existing branchesgit worktree add - Launch editor — Opens the worktree via
or alternative editor commandcode -n <path> - Initiate Codex session — Suggests running
in the new workspacecd <path> && codex - Verify setup — Optional confirmation using
git worktree list
Safety Guidelines
- Avoids
flags unless explicitly requested--force - 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.