一键导入
using-git-worktrees
Use Git worktrees to create parallel working directories safely; avoid branch-switch contamination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use Git worktrees to create parallel working directories safely; avoid branch-switch contamination.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use 4-phase root cause analysis (Observe, Hypothesize, Verify, Fix); avoid unverified patches.
Behavioral guidelines to reduce common LLM coding mistakes — Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution.
Enforce "no evidence = no completion"; run Gate Function verification before declaring done.
Pre-ship observability readiness checklist — ensures errors reach production monitoring, not just debug consoles.
Adversarial security and resilience analysis — auto-triggered during /review and /test based on task classification. Provides attack surface analysis, boundary testing, auth bypass attempts, dependency chain attacks, and Beast Mode stress testing.
Evaluate when to dispatch parallel agents; use a 4-step pattern to split, coordinate, and integrate results.
| name | using-git-worktrees |
| description | Use Git worktrees to create parallel working directories safely; avoid branch-switch contamination. |
Git worktree allows mounting multiple working directories onto the same repository simultaneously, each mapped to a different branch. This is ideal for parallel development and hotfixes.
../wt-<task>).git rev-parse --git-dir differs from git rev-parse --git-common-dir (they match in the main worktree). cd to the main worktree before adding.git rev-parse --show-superproject-working-tree is non-empty. Operate on the intended repo, not the submodule.git worktree list.../wt-<task>). If it must live inside the repo, verify it is ignored first: git check-ignore -q <path> (exit 0 = ignored). A non-ignored in-repo worktree pollutes the parent's git status and can be committed by accident.git worktree add ../wt-<task> -b <branch-name>git worktree remove ../wt-<task>