git-worktree-isolation
仓库创建 2026年3月12日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由
自动选择目录并做安全校验,方便并行分支开发与子代理隔离。
▸ 风险提示
会创建/切换本地 git worktree,可能影响未提交的更改
这个 Skill 做什么
为并行或隔离工作创建并管理安全的 git worktree 工作区。
在同一仓库里并行开发或给并行任务(比如多个 agents)分配独立工作区时,使用 git worktree 来隔离变更,避免频繁切换分支互相影响。流程会智能选目录并做安全校验,确保不会覆盖未提交的内容。特点是把目录选择与安全验证结合起来,适合多任务并行、长时特性分支或需要独立工作空间的场景。
▸ 展开 SKILL.md 英文原文
Use when starting feature work that needs isolation from current workspace, before executing implementation plans, or when dispatching parallel agents that each need their own working directory - creates isolated git worktrees with smart directory selection and safety verification.
0
Stars
0
Forks
16
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/huanlongAI/tzh-Harness/main/cowork-skills/git-worktree-isolation/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/huanlongAI/tzh-Harness/main/cowork-skills/git-worktree-isolation/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Using Git Worktrees ## Overview 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. **Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace." ## Directory Selection Process Follow this priority order: ### 1. Check Existing Directories ```bash # Check in priority order 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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有