You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/worktree-task/SKILL.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
name: worktree-task
3
-
description: Manage large coding tasks using git worktrees and background Claude Code sessions. Use this when users want to execute large, complex tasks (like implementing a new service, major refactoring, or multi-step features) in isolation without blocking the current session. Spawns autonomous Claude Code instances via tmux.
This skill manages large coding tasks by spawning autonomous Claude Code instances in separate git worktrees via tmux sessions.
8
+
This skill manages large coding tasks by spawning autonomous agent instances (默认 Claude Code,可选 `--codex`/`--agent-cmd`) in separate git worktrees via tmux sessions.
9
9
10
10
## When to Use
11
11
@@ -42,7 +42,7 @@ The script will:
42
42
1. Verify git status is clean (or prompt to commit/stash)
43
43
2. Create a git worktree with the specified branch
44
44
3. Create a tmux session
45
-
4. Launch Claude Code with `--dangerously-skip-permissions`
45
+
4. Launch Claude Code by default (use `--codex` for default Codex command or `--agent-cmd` to switch, e.g., `codex --yolo -m gpt-5.1-codex-max -c model_reasoning_effort="high"`)
46
46
5. Send the task with instructions to use Task tool for each phase
47
47
48
48
### 2. Monitor Progress
@@ -82,7 +82,7 @@ Configure alerts in `hooks/hooks.json`.
82
82
83
83
## Critical Instructions for Spawned Claude
84
84
85
-
The spawned Claude Code instance receives these critical instructions:
85
+
The spawned agent receives these critical instructions:
86
86
87
87
1.**MUST use Task tool** - Each major phase must be executed via `Task` tool to prevent context overflow
88
88
2.**Silent mode** - No confirmations needed, user has pre-approved all operations
0 commit comments