Skip to content
Back to skills

Worktree Isolation

ASecurity

Git Worktree 隔离开发技能。仅在长周期特性、破坏性重构或已授权多执行者并行时启用,严防工作区污染。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add yjfkpyu/AgentLock-Harness --skill worktree-isolation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Worktree Isolation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Worktree Isolation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yjfkpyu-worktree-isolation-agentlock-harness/badge)](https://www.skillsdirectory.com/skills/yjfkpyu-worktree-isolation-agentlock-harness)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: worktree-isolation
description: Git Worktree 隔离开发技能。仅在长周期特性、破坏性重构或已授权多执行者并行时启用,严防工作区污染。
---

# Worktree Isolation

## 执行步骤

1. **先判必要性**:局部小修复无需开 worktree;仅在需要隔离风险或明确获批并行时启用。
2. **开辟干净工作树**:`git worktree add ../wt-<topic> -b feat/<topic>`
3. **基线全绿校验**:动第一行代码前先跑核心测试,确认基线本身无红灯。
4. **声明写入边界**:多执行者并行时明确各自写入目录与接口依赖;合并后由集成者统一验收并清理 worktree。

## 反偷懒 / 反理性化对照表

| 常见错误借口 | 强制反制动作 |
| :--- | :--- |
| “Markdown 状态表写了我在改,不会冲突” | Markdown 和分支名**不是并发锁**;并发写入必须隔离工作树并划分单一写入者目录 |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.