Skip to content
Back to skills

Worktrees

ASecurity

Git worktree isolation for Path C/D development with branch strategy

  • 188 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 9, 2026
developmentshellgitfrontendbackend

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add WenJunDuan/Rlues --skill worktrees --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Worktrees?

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

Security grade badge for Worktrees
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-worktrees/badge)](https://www.skillsdirectory.com/skills/wenjunduan-worktrees)

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: worktrees
description: "Git worktree isolation for Path C/D development with branch strategy"
---

# Git Worktrees

## 工具

| 工具 | 类型 | 用法 | 调用方式 |
|:---|:---|:---|:---|
| git CLI | Shell | worktree 操作 | `git worktree add/remove/list` |
| commit-commands | Plugin | 提交规范 | 自动: `git commit` 时 |

## 激活条件

| Path | 方式 |
|:---|:---|
| A/B | 不激活 (普通分支或直接 commit) |
| C | E 阶段开始前自动创建 worktree |
| D | Lead worktree + teammate 子分支 |
| --worktree | 任意 Path 强制激活 |

## 流程

```
1. git status → 确认 main 干净
2. git worktree add ../project-feature feature/vibe-{id}-{desc}
3. cd worktree → RIPER-7 E 阶段开发
4. 提交 → commit-commands plugin (Conventional Commits)
5. V 阶段完成 → merge 或 PR → git worktree remove
```

## Path D 分支策略

```
Lead:  feature/vibe-{id}-main
  ├─ Teammate: feature/vibe-{id}-frontend
  ├─ Teammate: feature/vibe-{id}-backend
  └─ Teammate: feature/vibe-{id}-tests
合并顺序: tests → backend → frontend → main
```

## 降级

git worktree 不支持 → `git checkout -b` 普通分支。

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.

Comments

Loading comments…

Newsletter

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