barefootford

Worktree — Development skill for Claude Code

Development community

Create Worktree with Library.

How to install Worktree

Installs to ~/.claude/commands/barefootford-buttercut-worktree.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/barefootford/buttercut/HEAD/.claude/commands/worktree.md -o ~/.claude/commands/barefootford-buttercut-worktree.md

Restart Claude Code, or start a new session, for it to be picked up.

What Worktree does

Create Worktree with Library

Create a new git worktree with all libraries and media from main.

Arguments

`` - The name for the new branch and worktree

Example: `/worktree feature-test`

User provided: $ARGUMENTS

Instructions

  1. Parse the branch name from arguments
  2. Always use the main branch worktree at /Users/andrew/code/buttercut as the source
  3. Create a new git worktree at ../ with a new branch of the same name
  4. Copy the entire libraries/ dir

Alternatives in Development

  • Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
  • Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
  • Cancel Pua Loop — 取消当前活跃的 PUA Loop(原子级联:state + worktree + 记录) 19.5k ★

Full documentation available on GitHub

View Source Repository