worktree-parallel

Create and manage a git worktree for parallel feature development, then open the new worktree in the editor (code/Cursor) for a second Codex session. Use when the user asks to work on another feature simultaneously, run multiple features in parallel, spin up a parallel workspace, or open a new worktree even if they do not mention worktree explicitly.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "worktree-parallel" with this command: npx skills add ghou533/agent-skills/ghou533-agent-skills-worktree-parallel

Worktree Parallel

Workflow

  1. Confirm the repo root (use current working directory unless the user specifies another repo).
  2. Determine a feature slug and branch name.
    • Default branch pattern: feature/<slug>.
    • If the user already has a branch name, use it.
  3. Choose a base directory for linked worktrees.
    • Default for this repo: ../<project_name>-wt (create it if missing).
  4. Create the worktree.
    • New branch: git worktree add -b feature/<slug> <base>/<slug>
    • Existing branch: git worktree add <base>/<slug> <branch>
  5. Bootstrap the new worktree dependencies.
    • cd <path> && pnpm run setup-worktree
    • If setup fails, resolve bootstrap issues before opening the parallel session.
  6. Open the worktree in the editor.
    • Use code -n <path> (Cursor supports the code CLI).
    • If code is unavailable, ask for the preferred editor command (e.g., cursor -n, code, or another).
  7. Suggest a parallel Codex session in the new worktree.
    • cd <path> && codex
  8. Confirm with git worktree list if needed.
  9. 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 --force unless 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>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

chrome-devtools

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

feature-implementation-planner

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

tailwind-design-system

No summary provided by upstream source.

Repository SourceNeeds Review