worktreelisted
Install: claude install-skill andrewr303/claude-codex-plugin-lab
# Git Worktree Skill
Create isolated worktrees for parallel development. Ends by providing commands to continue in the new worktree.
## Workflow
1. **Detect repo info**
```bash
REPO_NAME=$(basename -s .git $(git config --get remote.origin.url) 2>/dev/null || basename $(pwd))
SOURCE_REPO=$(git rev-parse --show-toplevel)
```
2. **Parse user description**
- Type: `fix` (bug, patch, fix) | `feat` (feature, add, implement) | `misc` (default)
- Branch: `{type}/{kebab-description}` (max 30 chars)
- Folder: `{type}-{kebab-description}`
- Path: `{SOURCE_REPO}/../{REPO_NAME}-worktrees/{folder}/`
- Version: `{kebab-description}` (for docker image tag)
3. **Create worktree**
```bash
git fetch origin main
mkdir -p "$(dirname "$WORKTREE_PATH")"
# --no-track: do NOT set the new branch's upstream to origin/main.
# Without it, a later `git push -u origin {branch}` can be reported by
# the server as also fast-forwarding main, landing commits on main.
git worktree add --no-track -b "{branch}" "$WORKTREE_PATH" origin/main
```
4. **Copy config files**
- **unstract repo:** Run `"$SOURCE_REPO/.claude/skills/worktree/worktree-setup.sh" "$WORKTREE_PATH" "$SOURCE_REPO"`
- **Other repos:** Ask user which config files to copy, then copy them
5. **Detect services from request** (unstract only)
Match keywords in user's request to services:
| Keywords | Services |
| ---------------------------