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
Create Worktree + Spawn Agent
git worktree add ../feat-custom-templates -b feat/custom-templates origin/main cd ../feat-custom-templates &&
Prc
Ensure an open PR exists for the current branch (create it if needed, idempotent if one already exists), print
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
Ldd Install
Explicitly install or re-install the LDD plugin's project-local artifacts (.ldd/ldd_trace launcher, statusline
CursorLens
GitHub Repo stars Open-source dashboard for Cursor.sh IDE Cursor monitoring panel
Related Agents
Implement Queue Worker
Implements a single GitHub issue in an isolated worktree via TDD. Installs deps, writes a failing test first,
Code Author
Developer worker. Runs the project's implement-issue or fix-pr skill in a clean context and returns the PR num
Add Skill
Install agent skills onto your coding agents from any git repository.