BehindTheMusicTree

Refresh Worktree — Git skill for Claude Code

Git community

Reuse the current git worktree for a new feature — stop any dev server still running for it, reset onto the integration branch, create the new branch, then scan for available ports and start the proje.

How to install Refresh Worktree

Installs to ~/.claude/skills/behindthemusictree-agent-config-refresh-worktree/SKILL.md

Terminal
mkdir -p ~/.claude/skills/behindthemusictree-agent-config-refresh-worktree && curl -fsSL https://raw.githubusercontent.com/BehindTheMusicTree/agent-config/HEAD/commands/refresh-worktree.md -o ~/.claude/skills/behindthemusictree-agent-config-refresh-worktree/SKILL.md

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

What Refresh Worktree does

Reuse the current git worktree for a new feature — stop any dev server still running for it, reset onto the integration branch, create the new branch, then scan for available ports and start the proje.

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Git MCP — GitHub Repo stars Free open-source remote MCP server for any GitHub project Git integration MCP 7.8k ★
  • Om Peer Scan — Peer PR Deep Scan 4.6k ★

Full documentation available on GitHub

View Source Repository