iterm-worktree
Manage git worktrees with iTerm2 integration. Use when user asks to create isolated development environments, work on features in parallel, manage worktrees, open worktrees in new tabs/windows, switch between worktrees, or close completed worktrees. Triggers on "create worktree", "new worktree", "feature branch with worktree", "open worktree", "switch worktree", "close worktree", "list worktrees", or mentions wanting to work on multiple features simultaneously.
What this skill does
# iTerm2 Worktree Manager Automate git worktree management with iTerm2 tab/window integration for parallel feature development. ## Quick Reference | Command | Description | |---------|-------------| | `create <branch>` | Create worktree + branch, open in iTerm2 | | `close <worktree>` | Safely remove worktree after validation | | `list` | Show all worktrees with iTerm2 tab status | | `switch <worktree>` | Focus existing worktree tab | | `open <worktree>` | Open existing worktree in new tab | ## Usage Run the script at `scripts/worktree.py`: ```bash python3 scripts/worktree.py <command> [options] ``` ### Create Worktree Create a new worktree with feature branch: ```bash python3 scripts/worktree.py create feature-auth python3 scripts/worktree.py create feature-auth --base develop python3 scripts/worktree.py create feature-auth --from-current # Branch from current branch python3 scripts/worktree.py create feature-auth --open-mode new_window python3 scripts/worktree.py create feature-auth --claude --task "Implement user authentication" ``` Options: - `--base, -b`: Base branch (default: main/master) - `--from-current, -f`: Branch from current branch instead of main/master - `--path, -p`: Custom worktree path (default: sibling directory) - `--open-mode, -o`: `new_tab`, `new_window`, `new_pane_right`, `new_pane_below` - `--no-iterm`: Skip iTerm2 automation - `--claude, -c`: Launch Claude in the new tab - `--task, -t`: Task description for Claude ### Close Worktree Safely remove a worktree after validating clean state: ```bash python3 scripts/worktree.py close feature-auth python3 scripts/worktree.py close feature-auth --delete-branch python3 scripts/worktree.py close feature-auth --force ``` Options: - `--force, -f`: Force removal despite uncommitted/unpushed changes - `--delete-branch, -d`: Also delete the branch ### List Worktrees Show all worktrees with iTerm2 tab indicators: ```bash python3 scripts/worktree.py list python3 scripts/worktree.py list --json ``` ### Switch to Worktree Focus an existing iTerm2 tab, or open new if not found: ```bash python3 scripts/worktree.py switch feature-auth ``` ### Open Worktree Open existing worktree in iTerm2: ```bash python3 scripts/worktree.py open feature-auth python3 scripts/worktree.py open feature-auth --open-mode new_pane_right python3 scripts/worktree.py open feature-auth --force # Open new tab even if exists ``` ## Typical Workflow 1. **Start feature**: `create feature-name` - Creates worktree + branch in new tab 2. **Work in isolation**: Each worktree has its own directory and git state 3. **Switch context**: `switch other-feature` - Jump between parallel features 4. **Complete feature**: Push changes, merge PR 5. **Cleanup**: `close feature-name --delete-branch` - Remove worktree and branch ## Safety Features - Validates no uncommitted changes before closing - Checks for unpushed commits before closing - Auto-detects default branch (main/master) - Prevents duplicate branch/path creation
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.