worktree-parallel
Worktree Parallel
Workflow
- Confirm the repo root (use current working directory unless the user specifies another repo).
- Determine a feature slug and branch name.
- Default branch pattern:
feature/<slug>. - If the user already has a branch name, use it.
- Default branch pattern:
- Choose a base directory for linked worktrees.
- Default for this repo:
../<project_name>-wt(create it if missing).
- Default for this repo:
- Create the worktree.
- New branch:
git worktree add -b feature/<slug> <base>/<slug> - Existing branch:
git worktree add <base>/<slug> <branch>
- New branch:
- Bootstrap the new worktree dependencies.
cd <path> && pnpm run setup-worktree- If setup fails, resolve bootstrap issues before opening the parallel session.
- Open the worktree in the editor.
- Use
code -n <path>(Cursor supports thecodeCLI). - If
codeis unavailable, ask for the preferred editor command (e.g.,cursor -n,code, or another).
- Use
- Suggest a parallel Codex session in the new worktree.
cd <path> && codex
- Confirm with
git worktree listif needed. - If the new session will run tests, start and use a dev server from that same worktree only, then stop it after tests.
Safety
- Do not use
--forceunless the user explicitly asks. - Do not remove existing worktrees unless the user requests cleanup.
- Do not stop dev servers you did not start.
Optional Cleanup (only if asked)
git worktree remove <path>git branch -d <branch>
More from ghou533/agent-skills
feature-implementation-planner
Plan new product or engineering features into implementation-ready work for coding agents. Use when the user asks to scope a new feature, break work into phases or tickets, evaluate tradeoffs, define acceptance criteria, sequence delivery, or prepare an execution plan that agents can implement safely.
17vite
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
14tailwind-design-system
Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.
14chrome-devtools
Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests.
13