ワンクリックで
worker-cleanup
Remove completed or abandoned worker worktrees and their branches. Use to clean up after workers finish their tasks.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Remove completed or abandoned worker worktrees and their branches. Use to clean up after workers finish their tasks.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Spawn a Claude worker to handle a GitHub issue. Fetches issue details, creates a feature branch, and works autonomously. Use when you want to delegate an issue to a worker.
Spawn a Claude worker in an isolated git worktree for parallel development. Use when you need to work on a task in isolation without affecting current work.
Spawn a Claude worker to handle a GitHub issue. Fetches issue details, creates a feature branch, and works autonomously. Use when you want to delegate an issue to a worker.
Launch the Karkinos TUI to monitor worker progress in a new terminal window.
Bump the version number in pyproject.toml, plugin.json, and marketplace.json, then commit and tag.
Spawn a Claude worker to address PR feedback, fix CI failures, or continue work on a pull request. Use when a PR needs updates based on review comments or failing checks.
| name | worker-cleanup |
| description | Remove completed or abandoned worker worktrees and their branches. Use to clean up after workers finish their tasks. |
| allowed-tools | Bash, Read |
Remove completed or abandoned worker worktrees.
/worker-cleanup [worktree-path-or-branch]
/worker-cleanup --all-merged
/worker-cleanup --all
/worker-cleanup ../artemis-issue-42
/worker-cleanup feat/issue-42-retry
/worker-cleanup --all-merged
When given a specific worktree or branch:
Check for uncommitted changes
cd <worktree> && git status --porcelain
If dirty, warn user and ask for confirmation.
Check if branch was merged
git branch --merged main | grep <branch>
If not merged, warn user about unmerged commits.
Remove worktree
git worktree remove <worktree-path>
Delete branch if merged
git branch -d <branch> # Safe delete (fails if unmerged)
--all-merged)Find and remove all worktrees whose branches are merged to main:
# Get merged branches
MERGED=$(git branch --merged main | grep -v main)
# For each, remove worktree and branch
for branch in $MERGED; do
worktree=$(git worktree list | grep "$branch" | awk '{print $1}')
if [ -n "$worktree" ]; then
git worktree remove "$worktree"
git branch -d "$branch"
fi
done
--all)DANGEROUS - Removes all non-main worktrees:
Show cleanup summary:
Cleaned up 3 worktrees:
- ../artemis-issue-42 (feat/issue-42-retry) - merged, deleted
- ../artemis-feat-logging (feat/add-logging) - merged, deleted
- ../artemis-old-experiment (test/old) - unmerged, branch kept
Remaining worktrees: 1
- ../artemis-wip (feat/work-in-progress) - has uncommitted changes
-D flag to force)