一键导入
worktree
Git worktree commands and usage. Triggers on 'worktree', 'worktrees', 'create worktree', 'git worktree'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Git worktree commands and usage. Triggers on 'worktree', 'worktrees', 'create worktree', 'git worktree'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | worktree |
| description | Git worktree commands and usage. Triggers on 'worktree', 'worktrees', 'create worktree', 'git worktree'. |
| version | 0.2.8 |
Git worktrees allow working on multiple branches simultaneously in separate directories.
# Create worktree with new branch
git worktree add <path> -b <new-branch>
# Create worktree for existing branch
git worktree add <path> <existing-branch>
git worktree list
# Remove worktree (directory must be clean)
git worktree remove <path>
# Force remove (even if dirty)
git worktree remove --force <path>
git worktree prune
git worktree add ../feature-123 -b feature-123
cd ../feature-123
# work on feature
git worktree add ../hotfix -b hotfix/urgent-fix origin/main
cd ../hotfix
# fix the issue
git push
cd -
git worktree remove ../hotfix
git worktree add ../review-pr-456 origin/feature-branch
cd ../review-pr-456
# review code
cd -
git worktree remove ../review-pr-456
.git objects - efficient disk usagegit worktree lock <path> to prevent accidental removalThis skill should be used when the user mentions "bd", "beads", "what's next", "add task", "add epic", or asks about issue tracking. First check if a .beads directory exists in the project - if not, this skill does not apply.
Launch and manage loosely coupled cmux subagents: parallel interactive Codex sessions in cmux columns for user-given subtasks, using explicit sttts-* branches and the bundled codex-worktree wrapper. Use when the user says 'start cmux codex subagent', 'cmux codex session', 'codex cmux session', asks to launch a Codex subagent in cmux, or asks to start, check status, tail output, focus, or close a cmux subagent.
Record prompts to git notes and MR/PR descriptions. Triggers on 'record prompt', 'prompt recording', 'log prompts'.
Tilt local development and e2e testing. Triggers on tilt, kind cluster, e2e tests, test/tilt, local dev cluster.
Clean up worktrees for merged branches. Triggers on 'prune worktrees', 'cleanup worktrees', 'remove merged worktrees'.
Opinionated worktree workflow with .git/checkouts convention. Load explicitly with /worktree-workflow.