Skip to content
Back to skills

Work In Worktree

ASecurity

Create 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
ai-agentsgit

Works with

  • claude code

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add sasamuku/dotfiles --skill work-in-worktree --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Work In Worktree?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Work In Worktree
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sasamuku-work-in-worktree/badge)](https://www.skillsdirectory.com/skills/sasamuku-work-in-worktree)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.