smithery.ai

worktree management

並行タスク用にgit worktreeを作成・管理する(worktreeが無い場合のみ使う)。

First seen Mar 24, 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, Read, Grep, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,177 B
  • docs SUMMARY.md 128 B

History

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

SKILL.md

Worktree管理(共通)

このスキルは、対象タスクのworktreeが存在しない場合にのみ使用する。

手順

  1. 事前確認(preflight)
  • Run: git status --porcelain
  • If uncommitted changes exist, ask user to commit/stash.
  • Run: git fetch --all --prune
  1. ブランチと base を決める
  • Branch: feature/issue-<NUMBER> or fix/issue-<NUMBER>
  • Base: 対象リポジトリの AGENTS.md(ルート)のブランチ運用(PR)に従う

- develop 集約のリポジトリ: origin/develop - main 集約のリポジトリ: origin/main

  • 迷った場合: AGENTS.md を SSOT とし、無い場合のみ origin/main を仮定する
  1. ignore設定を確認
  • Ensure .worktrees/ is in .gitignore
  1. worktreeを作成
mkdir -p .worktrees
git worktree add .worktrees/<safe-branch-name> -b <branch> <base>

安全制約

  • Never delete with rm -rf
  • Remove via git worktree remove only when explicitly asked