Decide whether a task deserves its own git worktree and, if chosen, run it end to end: branch from the integration branch rather than the current tree, keep the main working copy untouched while the task runs, compare the result against the untouched baseline before declaring it done, and prepare it for a pull request instead of merging.
安装
npx skills add scarletkc/agents --skill worktree-prnpx skills add scarletkc/agents --skill worktree-pr -a claude-code -gnpx skills add scarletkc/agents --skill worktree-pr -a codex -ggemini skills install https://github.com/scarletkc/agents.git --path skills/worktree-prgh skill install scarletkc/agents worktree-prgit clone --depth 1 https://github.com/scarletkc/agents /tmp/scarletkc__agents
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/scarletkc__agents/skills/worktree-pr ~/.claude/skills/worktree-pr # Claude Code
cp -R /tmp/scarletkc__agents/skills/worktree-pr ~/.agents/skills/worktree-pr # Codex, Cursor, Gemini CLI, Copilot, OpenCode