Worktree Add — Git skill for Claude Code
Add a new git worktree from branch name or issue URL, copy settings, install deps, and open in current IDE.
How to install Worktree Add
Installs to ~/.claude/commands/christopher-buss-bedrock-worktree-add.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/christopher-buss/bedrock/HEAD/.claude/commands/worktree-add.md -o ~/.claude/commands/christopher-buss-bedrock-worktree-add.md Restart Claude Code, or start a new session, for it to be picked up.
What Worktree Add does
prettier-ignore
description: Add a new git worktree from branch name or issue URL, copy settings, install deps, and open in current IDE argument-hint: [optional-base-branch]
Git Worktree Setup
Create a new git worktree for branch: $ARGUMENTS
Alternatives in Git
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
- Gh Address Comments — Address review and issue comments on open GitHub PRs via CLI 14.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Setup Remote Editor
Make a worktree's branch link open in VS Code over Remote-SSH (writes env.CC_STATUSLINE_DIR_URL into user or p
Create Worktree + Spawn Agent
git worktree add ../feat-custom-templates -b feat/custom-templates origin/main cd ../feat-custom-templates &&
Kit Doctor
Onboarding preflight — check deps (Homebrew, git, gh, jq, perl, node, pnpm), authenticate gh + add scope:proje
Prepare
Prepare environment for a new Jira ticket: fetch details, detect repo, create branch, install deps
Prc
Ensure an open PR exists for the current branch (create it if needed, idempotent if one already exists), print
Ldd Install
Explicitly install or re-install the LDD plugin's project-local artifacts (.ldd/ldd_trace launcher, statusline
Related Agents
Implement Queue Worker
Implements a single GitHub issue in an isolated worktree via TDD. Installs deps, writes a failing test first,
CI Failure Responder
Triages and fixes CI failures for the devloop project. Given a branch name or gh run URL, pulls failure output
Code Author
Developer worker. Runs the project's implement-issue or fix-pr skill in a clean context and returns the PR num