Skip to main content
Run any Skill in Manus
with one click

worktree-discipline

Stars7
Forks0
UpdatedJuly 17, 2026 at 10:59

cc-master 仓库自用的 git worktree 隔离纪律——Solo(单任务单 worktree)与 Fan-out(多 worktree 并行)两种操作模式 + 一组防止并行开发污染 main checkout 或彼此的红线。何时用 / Use when:(1) 开始一段需要与 main checkout 隔离的实现工作、动第一次文件编辑之前;(2) 把并行实现 fan-out 到多个 worktree;(3) 决定这场并行怎么收口(各自 feature-branch PR vs HUB 集成分支合并回);(4) 一次 merge / PR 落地后的清理墙、开下一个 PR 之前;(5) 给一个将在 worktree 内工作的 sub-agent 写派发 prompt;(6) 作为 master orchestrator dogfood 本仓、fan-out 后台 worker 之前先立起隔离拓扑。Triggers: worktree、隔离、fan-out、并行改文件、cd 进哪个树、main 被污染、清理残留 worktree、spoke 该不该 commit。Do NOT use when:把目标切成任务 DAG / 排 wave(那是 slicing-goals-into-dags + master-orchestrator-guide 的 decomposition),worktree 内的 TDD / 测量循环(dev-as-ml-loop / engineering-with-craft),或 PR 创建与 merge 机制(AGENTS.md §11 的 gh 手工流——本仓没有 github-pr skill)。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
2 files
SKILL.md
readonly