Back to skills
SKILL.md
Work In Worktree
ASecurityCreate a worktree with EnterWorktree and move the Claude Code session there for the main agent to work directly.
- 10 stars
- 0 votes
- 0 copies
- 3 views
- Added September 9, 2026
Works with
Security analysis
100/100npx -y skills add sasamuku/dotfiles --skill work-in-worktree --agent claude-codeAre you the author of Work In Worktree?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sasamuku-work-in-worktree)---
name: work-in-worktree
description: Create a worktree with EnterWorktree and move the Claude Code session there for the main agent to work directly.
argument-hint: <task-description or branch-name>
---
# Work in Worktree
引数: $ARGUMENTS (タスクまたはブランチ名)。委譲はせず、このセッションで作業する。
1. 既にworktreeセッション内なら、隣接パスへの切り替え前に `/exit-worktree keep` で戻る。
2. 指定ブランチを使う。タスク説明なら `feat/<topic>` / `fix/<topic>` を決める。既存ブランチを指定すると、そのブランチの worktree を開く。
3. `EnterWorktree({ name: "<branch>" })` で作成と移動を行う。Worktrunk plugin を使い、初期化が必要ならリポジトリの `.config/wt.toml` を準備・承認しておく。`git worktree add` は直接使わない。
4. hook のエラー出力を確認し、移動後にブランチ・`git status` を報告する。
5. featureブランチで依頼された実装・検証・コミットを行い、push・PR作成は依頼範囲に従う。
6. 終了時は `/exit-worktree keep` で戻る。不要になったworktreeの削除は、戻った後に `wt remove <branch>` を案内する。
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.