From m2m-developer
This skill should be used when the user asks to "create a worktree", "set up a worktree", "work in a new branch", "start a new task branch", "worktree for issue", or wants to work on a separate branch without disrupting their current working directory. Manages git worktrees for parallel development.
npx claudepluginhub month2month/m2m-developer-plugin --plugin m2m-developerThis skill uses the workspace's default tool permissions.
You are setting up a git worktree so the user can work on a task in an isolated branch without disrupting their current working directory.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Guides TDD-style skill creation: pressure scenarios as tests, baseline agent failures, write docs to enforce compliance, verify with RED-GREEN-REFACTOR.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
You are setting up a git worktree so the user can work on a task in an isolated branch without disrupting their current working directory.
Confirm the current directory is inside a git repository. If not, stop and inform the user.
Based on the user's input ($ARGUMENTS), decide whether to use an existing branch or create a new one:
Search local and remote branches for a match:
git branch -a
If no matching branch exists, or the user described a task rather than a branch name:
fix/login-redirect, feat/user-avatar-upload).feat/, fix/, chore/, refactor/, docs/ as appropriate.git fetch origin
git branch <new-branch> origin/<default-branch>
All worktrees go in ~/dev/.worktrees/. Create the directory if it doesn't exist.
Use the repo name and branch to build the worktree path:
~/dev/.worktrees/<repo-name>/<branch-name>
For example, if the repo is my-app and the branch is feat/new-login, the worktree goes at ~/dev/.worktrees/my-app/feat/new-login.
mkdir -p ~/dev/.worktrees/<repo-name>
git worktree add ~/dev/.worktrees/<repo-name>/<branch-name> <branch>
If there's a naming conflict, inform the user and ask how to proceed.
This is critical. Change the working directory to the new worktree:
cd ~/dev/.worktrees/<repo-name>/<branch-name>
Confirm you are now in the worktree directory before proceeding.
Check if the project needs environment setup by looking for common indicators:
package.json): Run npm install or yarn install or pnpm install (match the lockfile).requirements.txt, pyproject.toml, Pipfile): Set up venv and install dependencies.Gemfile): Run bundle install.Cargo.toml): Run cargo build.go.mod): Run go mod download..env.example): Copy to .env if .env doesn't exist, and alert the user they may need to fill in secrets.Ask the user before running any install commands. If the project type is unclear, ask what setup is needed.
Summarize what was done:
Then ask the user what they'd like to work on in this worktree, or begin working on the task they originally described.
git worktree add with --force unless the user explicitly requests it.git worktree remove <path> from the main repo.