Loading...
Loading...
Create isolated git worktrees for parallel feature work with monorepo-aware env file copying and node_modules symlinking.
npx skill4agent add marioxe301/super-worktree super-worktree.envnode_modulesbash scripts/worktree-manager.sh create <branch> [from-branch] [--config <file>]<branch>[from-branch]origin/HEADmain--config <file># Create feature branch from main
bash scripts/worktree-manager.sh create feature/new-login
# Create from develop branch with custom config
bash scripts/worktree-manager.sh create feature/payments --config .super-worktree.json
# Create from a specific commit
bash scripts/worktree-manager.sh create hotfix/urgent fix/abc123bash scripts/worktree-manager.sh delete <branch>bash scripts/worktree-manager.sh delete feature/new-loginbash scripts/worktree-manager.sh merge <branch>bash scripts/worktree-manager.sh merge feature/new-loginsuper-worktree.json{
"sync": {
"copyFiles": [
".env",
".env.*",
".envrc",
".local.*",
"*.secret",
"*.key",
".secrets.*",
"credentials.json",
"credentials.yml",
"credentials.env",
"auth.json",
"auth.yml",
"auth.env",
".dev.vars",
".prod.vars",
".staging.vars"
],
"symlinkDirs": [
"node_modules"
],
"exclude": [
"node_modules",
".git",
"dist",
"build",
".next",
"out",
"coverage",
".turbo",
".vercel",
".worktrees"
]
}
}~/.config/super-worktree/config.json.super-worktree.json--config <file>{
"$schema": "./schemas/super-worktree.schema.json",
"sync": {
"copyFiles": [".env", ".env.local"],
"symlinkDirs": ["node_modules", ".pnpm-store"],
"exclude": ["dist", "build"]
}
}.env.env.*.envrc.local.**.secret*.key.secrets.*credentials.jsoncredentials.ymlcredentials.envauth.jsonauth.ymlauth.env.dev.vars.prod.vars.staging.varsnode_modulesnode_modules.gitdistbuild.nextoutcoverage.turbo.vercel.worktreesbash scripts/worktree-manager.sh delete <branch>jq# macOS
brew install jq
# Ubuntu/Debian
sudo apt install jq
# CentOS/RHEL
sudo yum install jq# Verify
python3 --version
# Install (macOS)
brew install python3
# Install (Ubuntu)
sudo apt install python3git branch -a
git log --oneline -5chmod +x scripts/worktree-manager.shnode_modulesrm -rf .worktrees/<branch>/node_modules
bash scripts/worktree-manager.sh create <branch>npx skills add owner/super-worktree# Find your skills directory
ls -la ~/.config/opencode/skills/
# Copy files
cp -r super-worktree ~/.config/opencode/skills/bash scripts/worktree-manager.sh helpjqpython3