一键导入
using-git-worktrees
Use when starting feature work that needs isolation from the current workspace - creates isolated git worktrees. Good for @Operator (PROPS).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when starting feature work that needs isolation from the current workspace - creates isolated git worktrees. Good for @Operator (PROPS).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automated governance, hook installation, pre-commit validation, branch isolation, and safe commit operations.
Enforcement of safety guardrails, axiom verification, secret scanning, and mutability protections.
Building and managing premium statistical dashboards, RAG explorer UIs, warehouse log monitors, and real-time visualization centers.
Integration of agent systems with blockchain protocols, contracts, event stores, reputation networks, and collective verification engines.
AI model configuration, LLM memoization, agentic RAG search, and vector library maintenance.
Catalog generation, reference link verification, workshop documentation building, and knowledge gap analysis.
| name | using-git-worktrees |
| description | Use when starting feature work that needs isolation from the current workspace - creates isolated git worktrees. Good for @Operator (PROPS). |
| type | skill |
Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
Core principle: Systematic directory selection + safety verification = reliable isolation.
Follow this priority order:
Check Existing Directories
ls -d .worktrees or ls -d worktrees. Use if found.
Check .agentrules or global constraints
Verify if a specific worktree setup is mandated.
Ask User
If no directory exists:
"No worktree directory found. Should I create a local hidden .worktrees/ directory?"
MUST verify directory is ignored before creating worktree:
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
If NOT ignored, add it to .gitignore and commit immediately. This prevents accidentally committing worktree contents to the repository.
git worktree add .worktrees/$BRANCH_NAME -b $BRANCH_NAME (or use existing branch).conda run -p D:\Anaconda\envs\cursor-factory pip install -r requirements.txt (or appropriate depending on the stack).pytest (or equivalent) to ensure the worktree starts clean. If tests fail, report failures to the human before proceeding.Never:
.gitignore