skills/cmux-and-worktrees/SKILL.md
Manage parallel development with cmux-style git worktrees in one repository. Use this skill whenever the user asks to run multiple agents in parallel, create or resume isolated worktrees, list/switch/merge/remove worktrees, set up `.cmux/setup`, or recover from worktree conflicts. Use `cmux` commands in this environment.
npx skillsauth add psycho-baller/ai-agents-config cmux-and-worktreesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run concurrent coding sessions safely by isolating each task in a git worktree.
cmux for every command in this skill.git worktree in normal operation.cmux command fails, verify availability with type cmux first.git rev-parse --is-inside-work-tree
cmux is available:type cmux
rg -n '^\.worktrees/$' .gitignore || echo '.worktrees/' >> .gitignore
cmux ls
cmux new <branch>cmux start <branch>cmux cd [branch]cmux lscmux merge [branch] [--squash]cmux rm [branch | --all] [--force]cmux init [--replace]cmux config, cmux config set layout <nested|outer-nested|sibling> [--global]cmux updatecmux versioncd /path/to/repo
cmux ls
cmux start <existing-branch>
cmux cd <existing-branch>
bash .cmux/setup
Example:
cmux start eng-1296-onboarding-v2-question-view-context-dedupe
cmux cd eng-1296-onboarding-v2-question-view-context-dedupe
bash .cmux/setup
cd /path/to/repo
cmux new <new-branch>
cmux cd <new-branch>
bash .cmux/setup
Example:
cmux new codex/pr1-onboarding-demographics-profile-report
cmux cd codex/pr1-onboarding-demographics-profile-report
bash .cmux/setup
cmux init
cmux init --replace
.cmux/setup so future worktrees inherit setup automatically.cmux new and cmux start:bash .cmux/setup
new as "new branch + new worktree".start as "reuse existing worktree/session"..worktrees/<branch>/ in nested layout.feature/foo becomes feature-foo path name).cmux rm --all.cmux rm --force.cmux merge <branch> --squash for compact history unless user requests full merge commits.Not in a git repo: move to repo root, then rerun.Worktree not found: run cmux ls, then choose correct branch or create with cmux new <branch>.Branch already checked out: run cmux ls and use the existing worktree path.cmux rm --force only with explicit confirmation.expo/metro processes, restart from the target worktree with --clear, and reopen dev client.cd apps/mobile
npm run dev -- --clear --host lan
tools
Pre-task clarity ritual for Rami. Surfaces real intention, maps work to his pillars, and produces a Session Brief. Use when Rami is about to start a task or plan a work session.
testing
Find and retrieve notes from Rami's Obsidian vault by topic or theme using semantic search against Smart Connections embeddings. Use when asked to find notes about a specific subject, retrieve relevant vault content, or surface what Rami has written about a topic.
testing
Update living Obsidian pattern files from metadata-enriched transcriptions. Use when asked to populate or update pattern files for communication flaws, beliefs, fears, principles, or people/projects mentioned.
testing
Generate evidence-backed personal principles from markdown notes, reflections, and transcripts. Use when extracting life principles, decision rules, or lessons from journal entries and reflections.