Skip to main content

worktree-isolation

Git worktree management for safe, isolated feature development. Creates, manages, and cleans up worktrees with branch naming and dependency setup.

来源信息

仓库
a5c-ai/babysitter
最近来源活动
2026年6月1日 07:46
检测到的 SKILL.md 语言
英语
星标
1,832
分支
113

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
worktree-isolation
description
Git worktree management for safe, isolated feature development. Creates, manages, and cleans up worktrees with branch naming and dependency setup.
# Create worktree with feature branch git worktree add .claude/worktrees/<slug> -b feature/<slug> cd .claude/worktrees/<slug> npm install # or equivalent package manager ``` ### 2. Worktree Detection - Check if currently inside a worktree - Identify the base branch - Detect worktree state (clean, dirty, conflicts) ### 3. Worktree Sync - Pull latest changes from base branch into worktree - Rebase feature branch on updated base - Resolve conflicts if needed ### 4. Worktree Diff - Generate diff between worktree and base branch - Summarize changes by file and type - Calculate diff statistics ### 5. Worktree Cleanup - Remove worktree after successful merge - Delete feature branch - Prune stale worktree references ### 6. Worktree Status - List all active worktrees - Show branch and status for each - Identify orphaned worktrees ## Branch Naming Convention | Mode | Pattern | Example | |------|---------|---------| | Feature | `feature/<slug>` | `feature/add-user-auth` | | Bugfix | `bugfix/<slug>` | `bugfix/fix-payment-race` | | Quick | `quick/<number>` | `quick/042` | ## Multiple Parallel Sessions Worktrees enable multiple Pilot Shell sessions to work simultaneously without interference, as each operates in its own filesystem directory with its own branch.
在 GitHub 查看