git-worktrees
Use when starting feature work that needs isolation from current workspace. Creates isolated git worktrees with directory selection, safety verification, and baseline testing.
What this skill does
# Git Worktrees Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously. ## When to Use - MUST: When implementing features that need isolation - MUST: Before executing multi-task implementation plans - SHOULD: When parallel development on different features needed - MAY: For experimental work that might be discarded ## Directory Selection Priority ### 1. Check Existing Directories ```bash ls -d .worktrees 2>/dev/null # Preferred (hidden) ls -d worktrees 2>/dev/null # Alternative ``` **If found:** Use that directory. If both exist, `.worktrees` wins. ### 2. Check CLAUDE.md ```bash grep -i "worktree.*director" CLAUDE.md 2>/dev/null ``` **If preference specified:** Use it. ### 3. Ask User ``` No worktree directory found. Where should I create worktrees? 1. .worktrees/ (project-local, hidden) 2. ~/worktrees/<project-name>/ (global location) Which would you prefer? ``` ## Safety Verification ### MUST: Verify Directory is Ignored For project-local directories: ```bash git check-ignore -q .worktrees 2>/dev/null ``` **If NOT ignored:** 1. Add to .gitignore 2. Commit the change 3. Then proceed **Why:** Prevents accidentally committing worktree contents. ## Creation Steps ### Step 1: Detect Project Name ```bash project=$(basename "$(git rev-parse --show-toplevel)") ``` ### Step 2: Create Worktree ```bash # Create worktree with new branch git worktree add "$path" -b "$BRANCH_NAME" cd "$path" ``` ### Step 3: Run Project Setup ```bash # Auto-detect and run [ -f package.json ] && npm install [ -f Cargo.toml ] && cargo build [ -f requirements.txt ] && pip install -r requirements.txt [ -f go.mod ] && go mod download ``` ### Step 4: Verify Clean Baseline ```bash npm test # or cargo test / pytest / go test ./... ``` **If tests fail:** Report failures, ask whether to proceed. **If tests pass:** Report ready. ### Step 5: Report Location ``` Worktree ready at /path/to/worktree Tests passing (47 tests, 0 failures) Ready to implement <feature-name> ``` ## MUST/SHOULD/NEVER Rules ### MUST - MUST: Follow directory priority (existing > CLAUDE.md > ask) - MUST: Verify directory is ignored for project-local worktrees - MUST: Run baseline tests before starting work - MUST: Report worktree location when done ### SHOULD - SHOULD: Auto-detect and run project setup - SHOULD: Create feature branch with descriptive name - SHOULD: Use `.worktrees/` over `worktrees/` ### NEVER - NEVER: Create worktree without verifying it's ignored - NEVER: Skip baseline test verification - NEVER: Proceed with failing tests without asking - NEVER: Assume directory location when ambiguous ## Quick Reference | Situation | Action | |-----------|--------| | `.worktrees/` exists | Use it (verify ignored) | | `worktrees/` exists | Use it (verify ignored) | | Both exist | Use `.worktrees/` | | Neither exists | Check CLAUDE.md → Ask user | | Directory not ignored | Add to .gitignore + commit | | Baseline tests fail | Report failures + ask | ## Cleanup When work is complete, remove worktree: ```bash # From main repository git worktree remove <worktree-path> git branch -d <feature-branch> # if merged ``` ## Integration | Skill | Relationship | |-------|--------------| | `design-exploration` | May trigger worktree creation | | `implementation-planning` | Plans execute in worktree | | `branch-completion` | Handles worktree cleanup |
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.