smithery.ai

worktree-safe-remove

Safely remove a worktree by checking for important data in data/local before deletion. Preserves data/shared (symlink to main repository).

First seen Mar 28, 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

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 945 B
  • docs SUMMARY.md 166 B

History

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

SKILL.md

Worktree Safe Remove

Worktree を安全に削除する(重要データのチェック付き)。

Goal

重要なデータを失わずに worktree を削除する。

Instructions

  1. Worktree 削除前に data/local/ 内の重要ファイルをチェック
  2. 重要ファイルが見つかった場合はユーザーに警告
  3. data/shared/ は保持される(メインリポジトリへの symlink のため)

Usage

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
"$REPO_ROOT/.agent/skills/worktree-safe-remove/safe-remove.sh" "$WORKTREE_PATH"

Constraints

  • 削除前に data/local/ の重要データを必ずバックアップ
  • data/shared/ は削除されない(全 worktree で共有)