smithery.ai

shared-worktree

Git worktree setup and management for parallel agent development. Use when working in isolated git worktrees to avoid merge conflicts between Developer and Tech Artist agents.

First seen May 3, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,940 B
  • docs SUMMARY.md 198 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Worker Worktree Skill

"Parallel development without conflicts – each agent works in their own worktree."

Verification Checklist

Before starting work:

  • Worktree exists (git worktree list shows your worktree)
  • In worktree directory (pwd shows ../{agent}-worktree)
  • On correct branch (git branch shows {agent}-worktree)
  • Main branch merged (git merge origin/main completed)
  • No merge conflicts (git status is clean)
  • Latest changes pulled (git log shows recent main commits)

Quick Reference Commands

Action Command
List worktrees git worktree list
Create worktree git worktree add ../{agent}-worktree -b {agent}-worktree
Remove worktree git worktree remove ../{agent}-worktree
Navigate to worktree cd ../{agent}-worktree
Merge main git fetch origin main && git merge origin/main
Push worktree git push origin {agent}-worktree
Check current branch git branch --show-current

Worktree Naming Convention

MUST follow this pattern: {agent}-worktree

Agent Worktree Name Worktree Path Branch Name
Developer developer-worktree ../developer-worktree developer-worktree
Tech Artist techartist-worktree ../techartist-worktree techartist-worktree

Initial Setup (One-Time Per Agent)

# Check if worktree already exists
git worktree list

# If NOT in list, create worktree with dedicated branch
git worktree add ../{agent}-worktree -b {agent}-worktree

# Verify creation
git worktree list

Daily Workflow

Before Starting ANY Task

⚠️ CRITICAL: You MUST navigate to your worktree BEFORE doing any development work!

Why navigate to worktree first?

  • All code/asset edits MUST happen in worktree
  • Commits go to worktree branch, NOT main
  • QA validates from worktree, then merges to main
  • Prevents file conflicts between parallel agents

Why merge main first?

  • Ensures you have the latest changes from the other agent's work
  • Prevents out-of-date code conflicts
  • Both agents' work gets integrated through main

Unit, E2E, and Playwright MCP Testing Protocol

Remember to always run the tests in the target worktree branches for validation

  • Move to the target worktree
  • Load the correct skills for this scope
  • Run validation process
  • During validation process, always double check in which port the client is running for proper URL check
  • Investigate in case of issues and iterate until fixed
  1. Developer in worktree:

├── Reads PRD from master (Get-MasterPrdPath) ├── Reads messages from CLI --message argument ├── Updates PRD status in master (atomic write) ├── Writes response file for next agent ├── Writes code in worktree ├── Commits code to worktree branch └── Sends validation_request via response file

  1. PM in master:

├── Reads PRD (sees worker status updates) ├── Reads messages (sees worker messages) └── Coordinates everything

  1. QA in master:

├── Navigates to worktree for testing ├── If validation passes: merges to master └── If validation fails: sends bug_report via master queue