git-worktree-isolation SKILL.md skillA
git-worktree-isolation from hashgraph-online/awesome-codex-plugins is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add hashgraph-online/awesome-codex-plugins/git-worktree-isolation@git:20260512.6523792Pins git:20260512.6523792 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- hashgraph-online/awesome-codex-plugins
- Path
plugins/Colin4k1024/tsp/skills/git-worktree-isolation/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260512.6523792, committed May 12, 2026
- Size
- 5,131 bytes
- Repository stars
- 1,501
- License
- Apache-2.0
基于 Git Worktree 的任务隔离工作流:每个开发任务在独立 worktree 中执行, 确保主工作区干净、并行任务互不干扰,完成后结构化决策合并/PR/保留/丢弃。 与 parallel-execution 的 worktree 基础设施互补,本 skill 聚焦任务级隔离策略。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Git Worktree Isolation
## 用途
- 确保每个开发任务(feature / fix / spike)在 **隔离的 worktree + 分支** 中执行,主工作区始终保持可切换状态。
- 在多 agent 并行场景下,每个 agent 拥有独立文件系统视图,避免写冲突。
- 任务完成后提供 **结构化收口决策**(merge / PR / keep / discard),而不是任凭 worktree 积累。
## 触发信号
- `/team-execute` 分派的并行实现任务。
- `wave-execution` 中同一 Wave 的多个工作项。
- 需要在不影响主分支的情况下进行探索性实现或 spike。
- 当前工作区有未提交变更,但需要紧急处理另一个任务。
- Code review 后的修改需要在隔离环境中完成。
## 核心原则
1. **一个任务 = 一个 worktree = 一个分支**——不共用 worktree。
2. **worktree 有明确生命周期**——创建时绑定任务 ID,完成后必须做收口决策。
3. **主工作区是调度中心**——编排和合并在主工作区进行,实现在 worktree 中进行。
## 工作流
### 1. 创建隔离环境
```bash
# 命名规则: .worktrees/{slug}-{task-id}
git worktree add .worktrees/{slug}-{task-id} -b task/{slug}/{task-id}
# 验证隔离
cd .worktrees/{slug}-{task-id}
git branch --show-current # → task/{slug}/{task-id}
```
**命名约定:**
| 元素 | 格式 | 示例 |
|------|------|------|
| Worktree 路径 | `.worktrees/{slug}-{task-id}` | `.worktrees/auth-T001` |
| 分支名 | `task/{slug}/{task-id}` | `task/auth/T001` |
| Spike 分支 | `spike/{slug}/{description}` | `spike/auth/oauth-flow` |
### 2. 在 worktree 中执行
```
进入 worktree 目录 →
加载任务上下文(STATE.md 对应工作项)→
执行实现 →
运行测试 →
提交到 worktree 分支
```
**执行约束:**
- 每个 worktree 中的 agent 只操作任务范围内的文件。
…Read the whole file at its exact version.
How to install
mdr add hashgraph-online/awesome-codex-plugins/git-worktree-isolation@sha256:c4d125f82d1b25bbThe line at the top of this page pins the label git:20260512.6523792, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_s5yg63x4qdn7m7d5)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on May 12, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5131 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
hashgraph-online/awesome-codex-plugins · 1,501 stars · license Apache-2.0 · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_s5yg63x4qdn7m7d5 GET https://markdownregistry.com/api/v1/resolve?ref=hashgraph-online/awesome-codex-plugins/git-worktree-isolation GET https://markdownregistry.com/api/v1/blob/c4d125f82d1b25bb7e08c4089f5385a8b14af8b8af9f564e7ee896dcb296357a
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from hashgraph-online/awesome-codex-plugins
Every file in hashgraph-online/awesome-codex-plugins