parallel-worktrees
Skill9 starsChanged 3 months agoMITView on GitHub
Git worktree setup for zero dead time. Work on multiple branches simultaneously without switching branches or stashing. Ideal for running tests on main while implementing on a feature branch.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
- chinthakat/agent-skillstheir own version, first seen Sep 21, 2026
- theexperiencecompany/gaiatheir own version, first seen Sep 17, 2026
- mqmalagris/agent-skillstheir own version, first seen Aug 7, 2026
- TheBeardedBearSAS/claude-crafttheir own version, first seen Jul 22, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- rohitg00/pro-workflow★ 2.9ksame name
- theexperiencecompany/gaia★ 306same name
- TheBeardedBearSAS/claude-craft★ 106same name
- chinthakat/agent-skills★ 0same name
- mqmalagris/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-alive-updatesSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Use this skill when you need to:
- Distinctive: line 22
Run the test suite on main while implementing on a feature branch
- Distinctive: line 23
Keep a clean reference copy of the code for comparison during refactors
- Distinctive: line 25
Avoid git stash / git checkout cycles that interrupt flow
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: parallel-worktrees
When to Use
Use this skill when you need to:
- Run the test suite on
mainwhile implementing on a feature branch - Keep a clean reference copy of the code for comparison during refactors
- Work on a hotfix without disturbing in-progress feature work
- Avoid
git stash/git checkoutcycles that interrupt flow
Concept
Git worktrees let you check out multiple branches of the same repo into different
directories simultaneously. Each worktree shares the .git database but has its
own working tree and index.
/home/user/local-llm-server/ ← main worktree (your current branch)
/home/user/local-llm-server-main/ ← linked worktree (main branch, read reference)
/home/user/local-llm-server-hotfix/ ← linked worktree (hotfix branch)Instructions
Step 1 — Create a worktree for reference/parallel work
# Create a linked worktree for the main branch (read reference)
git worktree add ../local-llm-server-main main
# Create a linked worktree for a new feature branch
git worktree add ../local-llm-server-feature -b feature/my-feature
# Create a linked worktree for an existing remote branch
git worktree add ../local-llm-server-hotfix origin/hotfix/issue-42Step 2 — List active worktrees
git worktree listOutput shows each worktree's path, HEAD commit, and branch.
Step 3 — Work across worktrees
Each worktree is an independent directory. You can:
# Run tests on main without switching branches
cd ../local-llm-server-main && pytest -x
# Edit files in the feature worktree
cd ../local-llm-server-feature && $EDITOR proxy.py
# Compare files across worktrees
diff ../local-llm-server-main/proxy.py ./proxy.pyStep 4 — Remove a worktree when done
# Remove the linked worktree (does not delete the branch)
git worktree remove ../local-llm-server-main
# Force remove if worktree has uncommitted changes
git worktree remove --force ../local-llm-server-main
# Prune stale worktree references
git worktree pruneCommon Patterns
Pattern A — Test main while you implement
# Terminal 1: implement on feature branch
cd /home/user/local-llm-server
git checkout -b feature/scout-agent
# Terminal 2: run tests continuously on main
git worktree add ../llm-server-main main
cd ../llm-server-main
pytest --watch # or: watch -n 5 pytest -xPattern B — Review reference during refactor
# Keep a clean reference copy while refactoring
git worktree add ../llm-server-ref HEAD
# Compare your changes against the original
diff -r ../llm-server-ref/router/ ./router/Pattern C — Hotfix without disturbing feature work
# You're mid-feature on main worktree
# Create a hotfix worktree without stashing anything
git worktree add ../llm-server-hotfix -b hotfix/auth-bypass
# Work in the hotfix worktree, merge, then remove
cd ../llm-server-hotfix
# ... fix, test, commit ...
git worktree remove ../llm-server-hotfixConstraints
- You cannot check out the same branch in two worktrees simultaneously.
- Worktrees share the
.gitdatabase — commits in one are visible in all. - The
.venvvirtual environment is not shared automatically. Each worktree needs its own activated environment or you can symlink:ln -s /home/user/local-llm-server/.venv ../llm-server-main/.venv
Acceptance Checks
git worktree listshows the expected worktrees- Each worktree is on the intended branch
- Work completed in worktrees is committed before removal
git worktree prunerun after removing worktrees
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

