askill
git-worktrees

git-worktreesSafety 70Repository

Creates git worktrees for parallel development. Use when creating a git worktree, setting up multiple working directories, or working on features in parallel.

98 stars
2k downloads
Updated 2/5/2026

Package Files

Loading files...
SKILL.md

Git Worktrees

Directory Convention

Worktrees live in a sibling directory named <project>_worktrees:

parent/
├── myproject/              # main repo
└── myproject_worktrees/    # worktrees directory
    ├── feature_1/
    └── feature_2/

Branch Naming

Use <feature>_<N> pattern when creating multiple worktrees:

  • auth-refactor_1, auth-refactor_2
  • api-migration_1, api-migration_2

Workflow

  1. Get project name from current directory
  2. Create worktrees directory if needed: ../<project>_worktrees/
  3. Create worktree with new branch: git worktree add <path> -b <branch>

Creating Multiple Worktrees

When asked for N worktrees for a feature:

PROJECT=$(basename "$PWD")
WORKTREES_DIR="../${PROJECT}_worktrees"
mkdir -p "$WORKTREES_DIR"

for i in $(seq 1 N); do
    git worktree add "${WORKTREES_DIR}/<feature>_${i}" -b "<feature>_${i}"
done

Cleanup

Remove worktree and branch:

git worktree remove <path>
git branch -d <branch>

List all worktrees: git worktree list

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

80/100Analyzed 2/25/2026

Practical skill for git worktree management with clear directory conventions, branch naming patterns, and reusable bash scripts. Well-structured with good examples. Tags are somewhat mismatched (api, github-actions, security don't relate to git worktrees). Minor gaps in safety warnings and verification steps but overall highly actionable for the intended use case.

70
85
85
70
85

Metadata

Licenseunknown
Version-
Updated2/5/2026
Publisherlexler

Tags

apigithub-actionssecurity