worktree-task
БесплатноБез исполняемых скриптовНе проверен使用 git worktree + 背景代理会话管理大型任务(默认启动 Claude Code;可用 --codex 快速切到 Codex CLI,或通过 --agent-cmd 指定任意命令)。适合用户希望在不阻塞当前会话的情况下执行大型或多步骤任务。
Об этом скилле
Worktree Task Manager
This skill manages large coding tasks by spawning autonomous agent instances (默认 Claude Code,可选 --codex/--agent-cmd) in separate git worktrees via tmux sessions.
When to Use
- User wants to execute a large task (>20 subtasks) without blocking current session
- User mentions "background", "parallel", "worktree", or "autonomous" execution
- Task involves creating a new service, major refactoring, or implementing complex features
- User wants to continue other work while a large task runs
Available Commands
Use these slash commands for precise control:
| Command | Description |
|---|---|
/worktree:launch |
Launch a new background task |
/worktree:status |
Check status of all or specific tasks |
/worktree:resume |
Resume an interrupted task |
/worktree:cleanup |
Clean up completed tasks |
Core Workflow
1. Launch a Task
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/launch.py <branch-name> "<task-description>"
Example:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/launch.py feature/my-task "Execute the task: implement new feature. Read the tasks.md and implement all phases."
The script will:
- Verify git status is clean (or prompt to commit/stash)
- Create a git worktree with the specified branch
- Create a tmux session
- Launch Claude Code by default (use
--codexfor default Codex command or--agent-cmdto switch, e.g.,codex --yolo -m gpt-5.1-codex-max -c model_reasoning_effort="high") - Send the task with instructions to use Task tool for each phase
2. Monitor Progress
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/status.py [session-name]
Without arguments, lists all active sessions. With a session name, shows detailed status.
3. Resume an Interrupted Task
If a task is interrupted (rate limit, API error, timeout):
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/resume.py <session-name> [message]
Options:
--retry- Retry the last failed task--check- Only check status, don't send message
4. Cleanup
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/cleanup.py <session-name> [--remove-worktree]
Alerts
This plugin automatically sends macOS notifications when:
- A background task completes successfully
- A task encounters an error (rate limit, API error)
- A session ends
Configure alerts in hooks/hooks.json.
Critical Instructions for Spawned Claude
The spawned agent receives these critical instructions:
- MUST use Task tool - Each major phase must be executed via
Tasktool to prevent context overflow - Silent mode - No confirmations needed, user has pre-approved all operations
- Complete execution - Do not stop until all tasks are done
- Track with TodoWrite - Create and update todo list for visibility
- Commit often - Make atomic commits after each logical unit
Notes
- Worktrees are created in parent directory:
../<project>-<branch-name> - tmux session names have
/and.replaced with- - Use
tmux attach -t <session>to take over interactively - The spawned Claude runs with full permissions (
--dangerously-skip-permissions)
💡 More Claude Code plugins: github.com/ourines
Установить worktree-task в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл worktree-task?
使用 git worktree + 背景代理会话管理大型任务(默认启动 Claude Code;可用 --codex 快速切到 Codex CLI,或通过 --agent-cmd 指定任意命令)。适合用户希望在不阻塞当前会话的情况下执行大型或多步骤任务。
Как установить скилл worktree-task?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worktree-task запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic