smithery.ai

cleanup-tasks

完了したgit worktreeを削除します。引数なしで一覧表示、引数ありで指定したworktreeを削除します。

First seen May 1, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(git:*)

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,562 B
  • docs SUMMARY.md 152 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Worktreeのクリーンアップ

完了したタスクのworktreeを削除します。

処理フロー

引数なしの場合

現在のworktree一覧を表示し、削除対象を確認します:

echo "📋 現在のWorktrees:"
echo ""
git worktree list
echo ""
echo "削除するには: /cleanup-tasks [path or branch-name]"

引数ありの場合

指定されたworktreeを削除します:

TARGET="$ARGUMENTS"

# パスで指定された場合
if [[ -d "$TARGET" ]]; then
    git worktree remove "$TARGET"
    echo "✅ Removed worktree: $TARGET"
# ブランチ名で指定された場合
else
    # worktree listから該当パスを検索
    WORKTREE_PATH=$(git worktree list | grep "$TARGET" | awk '{print $1}')
    if [[ -n "$WORKTREE_PATH" ]]; then
        git worktree remove "$WORKTREE_PATH"
        echo "✅ Removed worktree: $WORKTREE_PATH"
    else
        echo "❌ Worktree not found: $TARGET"
    fi
fi

注意事項

  • 未コミットの変更がある場合は --force オプションが必要になる場合があります
  • メインのworktree(元のリポジトリ)は削除できません
  • 削除後、不要になったブランチは別途 git branch -d で削除できます

対象

$ARGUMENTS