Exit the current worktree session and return to the original working directory. Use when the user wants to leave a worktree entered via /enter-worktree or /delegate-worker — trigger on phrases like "exit the worktree", "worktree から出て", "元のディレクトリに戻って".
Scanned 9/9/2026
Install to Claude Code
npx -y skills add sasamuku/dotfiles --skill exit-worktree --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Exit Worktree?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sasamuku-exit-worktree)More formats (shields.io, HTML) on the badges page.
---
name: exit-worktree
description: Exit the current worktree session and return to the original working directory. Use when the user wants to leave a worktree entered via /enter-worktree or /delegate-worker — trigger on phrases like "exit the worktree", "worktree から出て", "元のディレクトリに戻って".
argument-hint: [keep|remove]
---
# worktree からの離脱
`EnterWorktree` で入った worktree セッションを終了し、元のディレクトリに戻る。
## 引数
$ARGUMENTS
## ワークフロー
### 1. action を決める
- 引数なし → `"keep"` (デフォルト)
- `keep` → worktree とブランチをディスクに残す
- `remove` → worktree とブランチを削除する
### 2. 終了する
```
ExitWorktree({ action: "keep" }) // または "remove"
```
注意事項:
- **`path` で入った worktree (= `/delegate-worker` や `/enter-worktree` 経由) は `"remove"` では削除されない**。`"keep"` で元のディレクトリに戻るのが正しい。削除したい場合は、戻ったあとに `wt remove <branch>` を案内する (worktree がワーカー所有なら先にワーカーをシャットダウンする)
- `"remove"` 指定時に未コミット変更や未マージコミットがあるとツールがエラーで一覧を返す。その場合は**ユーザーに確認してから** `discard_changes: true` で再実行する。無断で破棄しない
- worktree セッションがアクティブでない場合は no-op となる。その旨を報告して終了する
### 3. 終了後
- 戻り先のディレクトリと、worktree を残した場合はそのパス・ブランチ名を報告する
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...