Back to list
JStaRFilms

git-worktree

by JStaRFilms

A comprehensive suite of protocols, meta-prompts, and orchestration tools designed to streamline software development workflows, project management, and team collaboration. Includes the VibeCode Protocol Suite with web interface, user manuals, and reusable templates for efficient development processes.

9🍴 1📅 Jan 20, 2026

SKILL.md


name: git-worktree description: Manage git worktrees for parallel agent development. Create, sync, and remove isolated dev environments.

Git Worktree Skill

Manage parallel development environments without manual path juggling.

When to Use

  • Setting up parallel agents
  • Multi-agent development
  • When "worktree" is mentioned
  • Need isolated environments for different features

Status Check

git worktree list
git branch --list

Actions

[NEW] Create Agent Environment

  1. Name the Agent: Short identifier (e.g., frontend-refactor, agent-3)

  2. Define Paths:

    • Branch: [agent-name]
    • Folder: ../[repo-name]-[agent-name]
  3. Execute:

git branch [branch_name]
git worktree add [folder_path] [branch_name]
  1. Validate: git worktree list

  2. Context Migration (ask user):

cp .env [worktree_path]/.env
# If SQLite:
mkdir -p [worktree_path]/prisma
cp prisma/dev.db [worktree_path]/prisma/dev.db
  1. Initialize: pnpm install in new worktree

[SYNC] Synchronize Agents

  1. Ask: Sync ALL or SPECIFIC worktree?
  2. Execute:
git fetch origin
cd [worktree_path]
git merge origin/main  # or rebase
cd -

[KILL] Teardown Agent

  1. Select worktree from list
  2. Execute:
git worktree remove [worktree_path]
git branch -d [branch_name]  # Ask before deleting!
git worktree prune

Troubleshooting

  • "already checked out": Use a new branch name
  • Stale entries: Run git worktree prune
  • Files still tracked: Directory was deleted manually—prune first

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon