[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CM8JX4K8VPJAZ2MQN5E7TC":3,"skill-same:01M6CM8JX4K8VPJAZ2MQN5E7TC":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6CM8JX4K8VPJAZ2MQN5E7TC","using-git-worktrees",null,"Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools, git worktree fallback, or non-git copy fallback","openteams-lab\u002Fopenteams","openteams-lab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260174438?v=4","01M6CJ3RQG7RNB6WD3MZHXA49K","Open Teams","01M6CJ3RVFC9PN20ARS8AP0S0R",589,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"using git worktrees","git","git worktrees","worktrees","worktree","Tools","git worktree","workspace","work","use","implementation","fallback","2026-11-10 10:12:30",false,"---\nname: using-git-worktrees\ndescription: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools, git worktree fallback, or non-git copy fallback\n---\n\n# Using Git Worktrees\n\n## Overview\n\nEnsure work happens in an isolated workspace. Prefer your platform's native worktree tools. Fall back to manual git worktrees only when no native tool is available. If git is unavailable or the project is not a git repository, create an isolated filesystem copy instead.\n\n**Core principle:** Detect existing isolation first. Then use native tools. Then fall back to git. Then use a non-git copy fallback. Never fight the harness.\n\n**Announce at start:** \"I'm using the using-git-worktrees skill to set up an isolated workspace.\"\n\n## Step 0: Detect Git Availability And Existing Isolation\n\n**Before creating anything, check whether git can be used here.**\n\n```bash\ncommand -v git >\u002Fdev\u002Fnull 2>&1\ngit rev-parse --is-inside-work-tree >\u002Fdev\u002Fnull 2>&1\n```\n\n**If git is not installed:** Skip git-specific detection and go to Step 2 (Non-Git Copy Fallback).\n\n**If the current directory is not inside a git work tree:** Skip git-specific detection and go to Step 2 (Non-Git Copy Fallback).\n\n**If git is available and the project is a git repository, check if you are already in an isolated workspace.**\n\n```bash\nGIT_DIR=$(cd \"$(git rev-parse --git-dir)\" 2>\u002Fdev\u002Fnull && pwd -P)\nGIT_COMMON=$(cd \"$(git rev-parse --git-common-dir)\" 2>\u002Fdev\u002Fnull && pwd -P)\nBRANCH=$(git branch --show-current)\n```\n\n**Submodule guard:** `GIT_DIR != GIT_COMMON` is also true inside git submodules. Before concluding \"already in a worktree,\" verify you are not in a submodule:\n\n```bash\n# If this returns a path, you're in a submodule, not a worktree - treat as normal repo\ngit rev-parse --show-superproject-working-tree 2>\u002Fdev\u002Fnull\n```\n\n**If `GIT_DIR != GIT_COMMON` (and not a submodule):** You are already in a linked worktree. Skip to Step 3 (Project Setup). Do NOT create another worktree.\n\nReport with branch state:\n- On a branch: \"Already in isolated workspace at `\u003Cpath>` on branch `\u003Cname>`.\"\n- Detached HEAD: \"Already in isolated workspace at `\u003Cpath>` (detached HEAD, externally managed). Branch creation needed at finish time.\"\n\n**If `GIT_DIR == GIT_COMMON` (or in a submodule):** You are in a normal repo checkout.\n\nHas the user already indicated their worktree preference in your instructions? If not, ask for consent before creating a worktree or copy:\n\n> \"Would you like me to set up an isolated workspace? It protects your current directory from changes.\"\n\nHonor any existing declared preference without asking. If the user declines consent, work in place and skip to Step 3.\n\n## Step 1: Create Isolated Workspace\n\n**You have two git-aware mechanisms. Try them in this order.**\n\n### 1a. Native Worktree Tools (preferred)\n\nThe user has asked for an isolated workspace (Step 0 consent). Do you already have a way to create a worktree? It might be a tool with a name like `EnterWorktree`, `WorktreeCreate`, a `\u002Fworktree` command, or a `--worktree` flag. If you do, use it and skip to Step 3.\n\nNative tools handle directory placement, branch creation, and cleanup automatically. Using `git worktree add` when you have a native tool creates phantom state your harness can't see or manage.\n\nOnly proceed to Step 1b if you have no native worktree tool available and git is usable in the project.\n\n### 1b. Git Worktree Fallback\n\n**Only use this if Step 1a does not apply** - you have no native worktree tool available, git is installed, and the current project is a git repository. Create a worktree manually using git.\n\n#### Directory Selection\n\nFollow this priority order. Explicit user preference always beats observed filesystem state.\n\n1. **Check your instructions for a declared worktree directory preference.** If the user has already specified one, use it without asking.\n\n2. **Check for an existing project-local worktree directory:**\n   ```bash\n   ls -d .worktrees 2>\u002Fdev\u002Fnull     # Preferred (hidden)\n   ls -d worktrees 2>\u002Fdev\u002Fnull      # Alternative\n   ```\n   If found, use it. If both exist, `.worktrees` wins.\n\n3. **Check for an existing global directory:**\n   ```bash\n   project=$(basename \"$(git rev-parse --show-toplevel)\")\n   ls -d ~\u002F.config\u002Fsuperpowers\u002Fworktrees\u002F$project 2>\u002Fdev\u002Fnull\n   ```\n   If found, use it (backward compatibility with legacy global path).\n\n4. **If there is no other guidance available**, default to `.worktrees\u002F` at the project root.\n\n#### Safety Verification (project-local directories only)\n\n**MUST verify directory is ignored before creating worktree:**\n\n```bash\ngit check-ignore -q .worktrees 2>\u002Fdev\u002Fnull || git check-ignore -q worktrees 2>\u002Fdev\u002Fnull\n```\n\n**If NOT ignored:** Add to .gitignore, commit the change, then proceed.\n\n**Why critical:** Prevents accidentally committing worktree contents to repository.\n\nGlobal directories (`~\u002F.config\u002Fsuperpowers\u002Fworktrees\u002F`) need no verification.\n\n#### Create the Worktree\n\n```bash\nproject=$(basename \"$(git rev-parse --show-toplevel)\")\n\n# Determine path based on chosen location\n# For project-local: path=\"$LOCATION\u002F$BRANCH_NAME\"\n# For global: path=\"~\u002F.config\u002Fsuperpowers\u002Fworktrees\u002F$project\u002F$BRANCH_NAME\"\n\ngit worktree add \"$path\" -b \"$BRANCH_NAME\"\ncd \"$path\"\n```\n\n**Sandbox fallback:** If `git worktree add` fails with a permission error (sandbox denial), tell the user the sandbox blocked worktree creation and you're working in the current directory instead. Then run setup and baseline tests in place.\n\n**Other git worktree failure:** If `git worktree add` fails because git metadata is broken, the repository has unsupported layout, or worktree commands are unavailable, go to Step 2 (Non-Git Copy Fallback).\n\n## Step 2: Non-Git Copy Fallback\n\nUse this when git is not installed, the current directory is not a git repository, or git worktree creation is impossible for a non-permission reason.\n\n**Goal:** Preserve the user's current workspace by copying source files to a sibling or project-local isolated directory, then work from the copy.\n\n### Directory Selection\n\nFollow this priority order. Explicit user preference always beats observed filesystem state.\n\n1. **Check your instructions for a declared isolated workspace directory preference.** If the user has already specified one, use it without asking.\n\n2. **Check for an existing project-local isolation directory:**\n   ```bash\n   ls -d .worktrees 2>\u002Fdev\u002Fnull\n   ls -d worktrees 2>\u002Fdev\u002Fnull\n   ```\n   If found, use it. If both exist, `.worktrees` wins.\n\n3. **If the project has a parent directory you can write to**, default to a sibling directory named `\u003Cproject-name>-workspace\u002F\u003Ctask-name-or-timestamp>`.\n\n4. **If a sibling directory is not possible**, default to `.worktrees\u002F\u003Ctask-name-or-timestamp>` inside the current project.\n\n### Copy Rules\n\nCopy source files while excluding generated, dependency, cache, and runtime artifacts. At minimum exclude:\n\n```text\n.git\u002F\n.worktrees\u002F\nworktrees\u002F\n.openteams\u002F\nnode_modules\u002F\ntarget\u002F\ndist\u002F\nbuild\u002F\n.next\u002F\n.turbo\u002F\n.cache\u002F\n__pycache__\u002F\n.pytest_cache\u002F\nvenv\u002F\n.venv\u002F\n```\n\nPrefer a platform-native copy tool that supports excludes:\n\n```bash\n# rsync-style environments\nrsync -a --exclude-from=\u003Cexclude-file> \"$source\u002F\" \"$dest\u002F\"\n\n# Windows PowerShell fallback\nrobocopy \"$source\" \"$dest\" \u002FE \u002FXD .git .worktrees worktrees .openteams node_modules target dist build .next .turbo .cache __pycache__ .pytest_cache venv .venv\n```\n\n**If no safe exclude-capable copy tool is available:** Ask the user before copying, because dependency\u002Fbuild directories can be large and noisy.\n\n### Report Non-Git Isolation\n\nReport clearly that this is a copy, not a git worktree:\n\n```\nGit is unavailable or this is not a git repository.\nCreated isolated copy at \u003Cfull-path>.\nChanges in this copy will not be tracked by git unless the project is initialized later.\n```\n\n## Step 3: Project Setup\n\nAuto-detect and run appropriate setup:\n\n```bash\n# Node.js\nif [ -f package.json ]; then npm install; fi\n\n# Rust\nif [ -f Cargo.toml ]; then cargo build; fi\n\n# Python\nif [ -f requirements.txt ]; then pip install -r requirements.txt; fi\nif [ -f pyproject.toml ]; then poetry install; fi\n\n# Go\nif [ -f go.mod ]; then go mod download; fi\n```\n\n## Step 4: Verify Clean Baseline\n\nRun tests to ensure workspace starts clean:\n\n```bash\n# Use project-appropriate command\nnpm test \u002F cargo test \u002F pytest \u002F go test .\u002F...\n```\n\n**If tests fail:** Report failures, ask whether to proceed or investigate.\n\n**If tests pass:** Report ready.\n\n### Report\n\nFor git worktrees:\n\n```\nWorktree ready at \u003Cfull-path>\nTests passing (\u003CN> tests, 0 failures)\nReady to implement \u003Cfeature-name>\n```\n\nFor non-git copies:\n\n```\nIsolated copy ready at \u003Cfull-path>\nTests passing (\u003CN> tests, 0 failures)\nReady to implement \u003Cfeature-name>\n```\n\n## Quick Reference\n\n| Situation | Action |\n|-----------|--------|\n| Git not installed | Non-git copy fallback (Step 2) |\n| Not inside a git repository | Non-git copy fallback (Step 2) |\n| Already in linked worktree | Skip creation (Step 0) |\n| In a submodule | Treat as normal repo (Step 0 guard) |\n| Native worktree tool available | Use it (Step 1a) |\n| No native tool | Git worktree fallback (Step 1b) |\n| Git worktree unavailable for non-permission reason | Non-git copy fallback (Step 2) |\n| `.worktrees\u002F` exists | Use it (verify ignored) |\n| `worktrees\u002F` exists | Use it (verify ignored) |\n| Both exist | Use `.worktrees\u002F` |\n| Neither exists | Check instruction file, then default `.worktrees\u002F` |\n| Global path exists | Use it (backward compat) |\n| Directory not ignored | Add to .gitignore + commit |\n| Permission error on create | Sandbox fallback, work in place |\n| Tests fail during baseline | Report failures + ask |\n| No package.json\u002FCargo.toml | Skip dependency install |\n\n## Common Mistakes\n\n### Fighting the harness\n\n- **Problem:** Using `git worktree add` when the platform already provides isolation\n- **Fix:** Step 0 detects existing isolation. Step 1a defers to native tools.\n\n### Skipping detection\n\n- **Problem:** Creating a nested worktree inside an existing one\n- **Fix:** Always run Step 0 before creating anything\n\n### Assuming git exists\n\n- **Problem:** Running `git rev-parse` in a non-git project or on a machine without git blocks isolation entirely\n- **Fix:** Step 0 checks git availability and repository status before git-specific commands\n\n### Skipping ignore verification\n\n- **Problem:** Worktree contents get tracked, pollute git status\n- **Fix:** Always use `git check-ignore` before creating project-local worktree\n\n### Assuming directory location\n\n- **Problem:** Creates inconsistency, violates project conventions\n- **Fix:** Follow priority: existing > global legacy > instruction file > default\n\n### Copying too much in non-git fallback\n\n- **Problem:** Dependency, build, cache, or runtime directories make the isolated copy huge and noisy\n- **Fix:** Use exclude-capable copy commands and exclude common generated directories\n\n### Proceeding with failing tests\n\n- **Problem:** Can't distinguish new bugs from pre-existing issues\n- **Fix:** Report failures, get explicit permission to proceed\n\n## Red Flags\n\n**Never:**\n- Create a worktree when Step 0 detects existing isolation\n- Use `git worktree add` when you have a native worktree tool (e.g., `EnterWorktree`). This is the #1 mistake - if you have it, use it.\n- Skip Step 1a by jumping straight to Step 1b's git commands\n- Run git-specific worktree commands before confirming git exists and the project is a git repository\n- Create worktree without verifying it's ignored (project-local)\n- Copy generated dependency\u002Fbuild\u002Fcache directories in non-git fallback\n- Skip baseline test verification\n- Proceed with failing tests without asking\n\n**Always:**\n- Run Step 0 detection first\n- Prefer native tools over git fallback\n- Use non-git copy fallback when git is unavailable or the project is not a git repository\n- Follow directory priority: existing > global legacy > instruction file > default\n- Verify directory is ignored for project-local\n- Auto-detect and run project setup\n- Verify clean test baseline\n","# Using Git Worktrees\n\n## Overview\n\nEnsure work happens in an isolated workspace. Prefer your platform's native worktree tools. Fall back to manual git worktrees only when no native tool is available. If git is unavailable or the project is not a git repository, create an isolated filesystem copy instead.\n\n**Core principle:** Detect existing isolation first. Then use native tools. Then fall back to git. Then use a non-git copy fallback. Never fight the harness.\n\n**Announce at start:** \"I'm using the using-git-worktrees skill to set up an isolated workspace.\"\n\n## Step 0: Detect Git Availability And Existing Isolation\n\n**Before creating anything, check whether git can be used here.**\n\n```bash\ncommand -v git >\u002Fdev\u002Fnull 2>&1\ngit rev-parse --is-inside-work-tree >\u002Fdev\u002Fnull 2>&1\n```\n\n**If git is not installed:** Skip git-specific detection and go to Step 2 (Non-Git Copy Fallback).\n\n**If the current directory is not inside a git work tree:** Skip git-specific detection and go to Step 2 (Non-Git Copy Fallback).\n\n**If git is available and the project is a git repository, check if you are already in an isolated workspace.**\n\n```bash\nGIT_DIR=$(cd \"$(git rev-parse --git-dir)\" 2>\u002Fdev\u002Fnull && pwd -P)\nGIT_COMMON=$(cd \"$(git rev-parse --git-common-dir)\" 2>\u002Fdev\u002Fnull && pwd -P)\nBRANCH=$(git branch --show-current)\n```\n\n**Submodule guard:** `GIT_DIR != GIT_COMMON` is also true inside git submodules. Before concluding \"already in a worktree,\" verify you are not in a submodule:\n\n```bash\n# If this returns a path, you're in a submodule, not a worktree - treat as normal repo\ngit rev-parse --show-superproject-working-tree 2>\u002Fdev\u002Fnull\n```\n\n**If `GIT_DIR != GIT_COMMON` (and not a submodule):** You are already in a linked worktree. Skip to Step 3 (Project Setup). Do NOT create another worktree.\n\nReport with branch state:\n- On a branch: \"Already in isolated workspace at `\u003Cpath>` on branch `\u003Cname>`.\"\n- Detached HEAD: \"Already in isolated workspace at `\u003Cpath>` (detached HEAD, externally managed). Branch creation needed at finish time.\"\n\n**If `GIT_DIR == GIT_COMMON` (or in a submodule):** You are in a normal repo checkout.\n\nHas the user already indicated their worktree preference in your instructions? If not, ask for consent before creating a worktree or copy:\n\n> \"Would you like me to set up an isolated workspace? It protects your current directory from changes.\"\n\nHonor any existing declared preference without asking. If the user declines consent, work in place and skip to Step 3.\n\n## Step 1: Create Isolated Workspace\n\n**You have two git-aware mechanisms. Try them in this order.**\n\n### 1a. Native Worktree Tools (preferred)\n\nThe user has asked for an isolated workspace (Step 0 consent). Do you already have a way to create a worktree? It might be a tool with a name like `EnterWorktree`, `WorktreeCreate`, a `\u002Fworktree` command, or a `--worktree` flag. If you do, use it and skip to Step 3.\n\nNative tools handle directory placement, branch creation, and cleanup automatically. Using `git worktree add` when you have a native tool creates phantom state your harness can't see or manage.\n\nOnly proceed to Step 1b if you have no native worktree tool available and git is usable in the project.\n\n### 1b. Git Worktree Fallback\n\n**Only use this if Step 1a does not apply** - you have no native worktree tool available, git is installed, and the current project is a git repository. Create a worktree manually using git.\n\n#### Directory Selection\n\nFollow this priority order. Explicit user preference always beats observed filesystem state.\n\n1. **Check your instructions for a declared worktree directory preference.** If the user has already specified one, use it without asking.\n\n2. **Check for an existing project-local worktree directory:**\n   ```bash\n   ls -d .worktrees 2>\u002Fdev\u002Fnull     # Preferred (hidden)\n   ls -d worktrees 2>\u002Fdev\u002Fnull      # Alternative\n   ```\n   If found, use it. If both exist, `.worktrees` wins.\n\n3. **Check for an existing global directory:**\n   ```bash\n   project=$(basename \"$(git rev-parse --show-toplevel)\")\n   ls -d ~\u002F.config\u002Fsuperpowers\u002Fworktrees\u002F$project 2>\u002Fdev\u002Fnull\n   ```\n   If found, use it (backward compatibility with legacy global path).\n\n4. **If there is no other guidance available**, default to `.worktrees\u002F` at the project root.\n\n#### Safety Verification (project-local directories only)\n\n**MUST verify directory is ignored before creating worktree:**\n\n```bash\ngit check-ignore -q .worktrees 2>\u002Fdev\u002Fnull || git check-ignore -q worktrees 2>\u002Fdev\u002Fnull\n```\n\n**If NOT ignored:** Add to .gitignore, commit the change, then proceed.\n\n**Why critical:** Prevents accidentally committing worktree contents to repository.\n\nGlobal directories (`~\u002F.config\u002Fsuperpowers\u002Fworktrees\u002F`) need no verification.\n\n#### Create the Worktree\n\n```bash\nproject=$(basename \"$(git rev-parse --show-toplevel)\")\n\n# Determine path based on chosen location\n# For project-local: path=\"$LOCATION\u002F$BRANCH_NAME\"\n# For global: path=\"~\u002F.config\u002Fsuperpowers\u002Fworktrees\u002F$project\u002F$BRANCH_NAME\"\n\ngit worktree add \"$path\" -b \"$BRANCH_NAME\"\ncd \"$path\"\n```\n\n**Sandbox fallback:** If `git worktree add` fails with a permission error (sandbox denial), tell the user the sandbox blocked worktree creation and you're working in the current directory instead. Then run setup and baseline tests in place.\n\n**Other git worktree failure:** If `git worktree add` fails because git metadata is broken, the repository has unsupported layout, or worktree commands are unavailable, go to Step 2 (Non-Git Copy Fallback).\n\n## Step 2: Non-Git Copy Fallback\n\nUse this when git is not installed, the current directory is not a git repository, or git worktree creation is impossible for a non-permission reason.\n\n**Goal:** Preserve the user's current workspace by copying source files to a sibling or project-local isolated directory, then work from the copy.\n\n### Directory Selection\n\nFollow this priority order. Explicit user preference always beats observed filesystem state.\n\n1. **Check your instructions for a declared isolated workspace directory preference.** If the user has already specified one, use it without asking.\n\n2. **Check for an existing project-local isolation directory:**\n   ```bash\n   ls -d .worktrees 2>\u002Fdev\u002Fnull\n   ls -d worktrees 2>\u002Fdev\u002Fnull\n   ```\n   If found, use it. If both exist, `.worktrees` wins.\n\n3. **If the project has a parent directory you can write to**, default to a sibling directory named `\u003Cproject-name>-workspace\u002F\u003Ctask-name-or-timestamp>`.\n\n4. **If a sibling directory is not possible**, default to `.worktrees\u002F\u003Ctask-name-or-timestamp>` inside the current project.\n\n### Copy Rules\n\nCopy source files while excluding generated, dependency, cache, and runtime artifacts. At minimum exclude:\n\n```text\n.git\u002F\n.worktrees\u002F\nworktrees\u002F\n.openteams\u002F\nnode_modules\u002F\ntarget\u002F\ndist\u002F\nbuild\u002F\n.next\u002F\n.turbo\u002F\n.cache\u002F\n__pycache__\u002F\n.pytest_cache\u002F\nvenv\u002F\n.venv\u002F\n```\n\nPrefer a platform-native copy tool that supports excludes:\n\n```bash\n# rsync-style environments\nrsync -a --exclude-from=\u003Cexclude-file> \"$source\u002F\" \"$dest\u002F\"\n\n# Windows PowerShell fallback\nrobocopy \"$source\" \"$dest\" \u002FE \u002FXD .git .worktrees worktrees .openteams node_modules target dist build .next .turbo .cache __pycache__ .pytest_cache venv .venv\n```\n\n**If no safe exclude-capable copy tool is available:** Ask the user before copying, because dependency\u002Fbuild directories can be large and noisy.\n\n### Report Non-Git Isolation\n\nReport clearly that this is a copy, not a git worktree:\n\n```\nGit is unavailable or this is not a git repository.\nCreated isolated copy at \u003Cfull-path>.\nChanges in this copy will not be tracked by git unless the project is initialized later.\n```\n\n## Step 3: Project Setup\n\nAuto-detect and run appropriate setup:\n\n```bash\n# Node.js\nif [ -f package.json ]; then npm install; fi\n\n# Rust\nif [ -f Cargo.toml ]; then cargo build; fi\n\n# Python\nif [ -f requirements.txt ]; then pip install -r requirements.txt; fi\nif [ -f pyproject.toml ]; then poetry install; fi\n\n# Go\nif [ -f go.mod ]; then go mod download; fi\n```\n\n## Step 4: Verify Clean Baseline\n\nRun tests to ensure workspace starts clean:\n\n```bash\n# Use project-appropriate command\nnpm test \u002F cargo test \u002F pytest \u002F go test .\u002F...\n```\n\n**If tests fail:** Report failures, ask whether to proceed or investigate.\n\n**If tests pass:** Report ready.\n\n### Report\n\nFor git worktrees:\n\n```\nWorktree ready at \u003Cfull-path>\nTests passing (\u003CN> tests, 0 failures)\nReady to implement \u003Cfeature-name>\n```\n\nFor non-git copies:\n\n```\nIsolated copy ready at \u003Cfull-path>\nTests passing (\u003CN> tests, 0 failures)\nReady to implement \u003Cfeature-name>\n```\n\n## Quick Reference\n\n| Situation | Action |\n|-----------|--------|\n| Git not installed | Non-git copy fallback (Step 2) |\n| Not inside a git repository | Non-git copy fallback (Step 2) |\n| Already in linked worktree | Skip creation (Step 0) |\n| In a submodule | Treat as normal repo (Step 0 guard) |\n| Native worktree tool available | Use it (Step 1a) |\n| No native tool | Git worktree fallback (Step 1b) |\n| Git worktree unavailable for non-permission reason | Non-git copy fallback (Step 2) |\n| `.worktrees\u002F` exists | Use it (verify ignored) |\n| `worktrees\u002F` exists | Use it (verify ignored) |\n| Both exist | Use `.worktrees\u002F` |\n| Neither exists | Check instruction file, then default `.worktrees\u002F` |\n| Global path exists | Use it (backward compat) |\n| Directory not ignored | Add to .gitignore + commit |\n| Permission error on create | Sandbox fallback, work in place |\n| Tests fail during baseline | Report failures + ask |\n| No package.json\u002FCargo.toml | Skip dependency install |\n\n## Common Mistakes\n\n### Fighting the harness\n\n- **Problem:** Using `git worktree add` when the platform already provides isolation\n- **Fix:** Step 0 detects existing isolation. Step 1a defers to native tools.\n\n### Skipping detection\n\n- **Problem:** Creating a nested worktree inside an existing one\n- **Fix:** Always run Step 0 before creating anything\n\n### Assuming git exists\n\n- **Problem:** Running `git rev-parse` in a non-git project or on a machine without git blocks isolation entirely\n- **Fix:** Step 0 checks git availability and repository status before git-specific commands\n\n### Skipping ignore verification\n\n- **Problem:** Worktree contents get tracked, pollute git status\n- **Fix:** Always use `git check-ignore` before creating project-local worktree\n\n### Assuming directory location\n\n- **Problem:** Creates inconsistency, violates project conventions\n- **Fix:** Follow priority: existing > global legacy > instruction file > default\n\n### Copying too much in non-git fallback\n\n- **Problem:** Dependency, build, cache, or runtime directories make the isolated copy huge and noisy\n- **Fix:** Use exclude-capable copy commands and exclude common generated directories\n\n### Proceeding with failing tests\n\n- **Problem:** Can't distinguish new bugs from pre-existing issues\n- **Fix:** Report failures, get explicit permission to proceed\n\n## Red Flags\n\n**Never:**\n- Create a worktree when Step 0 detects existing isolation\n- Use `git worktree add` when you have a native worktree tool (e.g., `EnterWorktree`). This is the #1 mistake - if you have it, use it.\n- Skip Step 1a by jumping straight to Step 1b's git commands\n- Run git-specific worktree commands before confirming git exists and the project is a git repository\n- Create worktree without verifying it's ignored (project-local)\n- Copy generated dependency\u002Fbuild\u002Fcache directories in non-git fallback\n- Skip baseline test verification\n- Proceed with failing tests without asking\n\n**Always:**\n- Run Step 0 detection first\n- Prefer native tools over git fallback\n- Use non-git copy fallback when git is unavailable or the project is not a git repository\n- Follow directory priority: existing > global legacy > instruction file > default\n- Verify directory is ignored for project-local\n- Auto-detect and run project setup\n- Verify clean test baseline\n",{"name":5,"description":7},"main","4180cbf3e82c49da08cab01820d0c559313b3761","assets\u002Fskills\u002Fusing-git-worktrees",76,"https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams","https:\u002F\u002Fopenteams-lab.com","https:\u002F\u002Fgithub.com\u002Fopenteams-lab","https:\u002F\u002Fopenteams-lab.com\u002F","2026-11-10 13:48:49",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add openteams-lab\u002Fopenteams --skill using-git-worktrees",{"tool":51,"command":52},"bunx","bunx skills add openteams-lab\u002Fopenteams --skill using-git-worktrees",{"tool":54,"command":55},"pnpm","pnpm dlx skills add openteams-lab\u002Fopenteams --skill using-git-worktrees","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",true,[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"routing-eval.jsonl","OTHER","其他",535,"https:\u002F\u002Fgithub.com\u002Fgarrytan\u002Fgbrain\u002Fblob\u002Fmaster\u002Fplugin-variants\u002Fgbrain-coding\u002Fskills\u002Fquery\u002Frouting-eval.jsonl",[66,89,108,122,141,166],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":88},"01M6CMA4C5H86X052SFX95C0DV","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,87],"webapp","testing","webapp testing","behavior","applications","logs","ui","browser","debugging","frontend","toolkit","screenshots","playwright","web","2026-11-11 15:11:14",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":88},"01M6CM5XTJ41XGXMQR5BKCFW8C","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[97,98,99,100,84,101,102,103,104,105,106,107],"theme factory","factory","artifacts","docs","generate","SET","fly","slides","landing","html","styling",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":88},"01M6CM1EWT05JZF2RNMACH1PYY","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fslack-gif-creator\u002FSKILL.md",[],[116,117,118,84,119,120,121],"slack gif creator","slack","composable","constraints","Animation","primitives",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":126,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":88},"01M6CM16FCHQTNGG2MNEMNQA12","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[130,131,132,133,134,135,136,137,138,139,140],"skill creator","specialized","new skill","workflows","create","update","capabilities","knowledge","tool","integrations","guide",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":145,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":88},"01M6CKEMQNT46M1XF07T7R9K5V","mcp-builder","Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node\u002FTypeScript (MCP SDK).","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fmcp-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fmcp-builder\u002FSKILL.md",[],[149,150,151,24,152,153,154,155,156,157,158,159,160,161,162,163,164,140,28,165],"builder","mcp builder","MCP","typescript","python","llms","sdk","model context protocol","fastmcp","protocol","mcp servers","services","model","quality","node","context","integrate",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":170,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":88},"01M6CK849SSJ30WTSP394J2ENR","internal-comms","A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Finternal-comms\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fopenteams-lab\u002Fopenteams\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Finternal-comms\u002FSKILL.md",[],[174,175,176,102,177,28,178],"internal comms","status","help","write","reports"]