using-git-worktrees
Intent
- 用于需要隔离开发环境的工程任务:当用户要并行做多个需求、明确说“单独开分支做”“不要污染当前工作区”“给这个任务单独开一套目录”,或任务会持续较久并改动多个文件时使用。Prefer
planning-with-fileswhen 任务还没拆清;Combine withgit-commit/github-pr-creation/verification-before-completionwhen 需要形成完整工程闭环;Do not use for 小改动、纯研究或只改文案的任务。
Default operating pattern
- Capture the actual engineering goal and the next decision that matters.
- Inspect the current code, tests, branch state, or CI context before acting.
- Take the smallest next action that reduces uncertainty or advances delivery.
- Collect fresh evidence before claiming progress.
- Summarize status, risks, and the next recommended step.
Pack fit
- Included in:
engineering-workflow - Keep examples generic, privacy-safe, and portable across hosts.
Boundary
- Do not use for tiny single-file edits that do not justify extra setup.