New Worktree And Serve — Git skill for Claude Code
Create a git worktree and branch for a new task, then start the repo's dev servers in it if it has a dev-up.sh script.
How to install New Worktree And Serve
Installs to ~/.claude/skills/behindthemusictree-agent-config-new-worktree-and-serve/SKILL.md
mkdir -p ~/.claude/skills/behindthemusictree-agent-config-new-worktree-and-serve && curl -fsSL https://raw.githubusercontent.com/BehindTheMusicTree/agent-config/HEAD/commands/new-worktree-and-serve.md -o ~/.claude/skills/behindthemusictree-agent-config-new-worktree-and-serve/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What New Worktree And Serve does
description: Create a git worktree and branch for a new task, then start the repo's dev servers in it if it has a dev-up.sh script. model: haiku
Same as `new-worktree`, plus starting dev servers in the new worktree — for when you know you'll want the servers running right away, not just the worktree set up.
The branch name is: **$ARGUMENTS**
If no branch name was given, ask for one before proceeding. Optionally the user may also specify a base ref (e.g. "off develop") — if so, pass it
Alternatives in Git
- Codexia — Agent Workstation for Codex CLI + Claude Code — with task scheduler, git worktree & remote control, skills man 638 ★
- Worktree New — Create a new git worktree with full dev environment for parallel work 387 ★
- Hybrid Worktree — Start a new task in an isolated Git worktree with Hybrid Ralph PRD mode 123 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Refresh Worktree
Reuse the current git worktree for a new feature — stop any dev server still running for it, reset onto the in
Worktree Spawn
Spawn an isolated git worktree with a deterministic PORT_BASE so heavy multi-port dev servers can run in paral
Start Worktree Task
description: Create new git worktree for isolated task development
Parallel Tickets
Work several tickets at once — create one git worktree per ticket (detached at the base) and open a separate i
Merged
The PR is merged; confirm it landed, clean up its worktree and branch, then pick the next task
Wb Dev PR
Load directions via mcpwork-buddywb_run("agent_docs", {"path": "dev/dev-pr-directions", "depth": "full"}), the
Related Agents
Orchestration Implementer
Implements exactly one ticket end-to-end in an isolated git worktree, TDD red-green, then opens a PR to the co
Hr Task Worker
Implements exactly one hrs task inside its own git worktree during a parallel batch. Give it the brief printed
Wh Builder
Build-phase agent. Executes exactly one task from plan.md using test-driven development inside an isolated git