Back to list
k4h4shi

worktree-management

by k4h4shi

kotaro.t@k4h4shi's dotfiles

0🍴 0📅 Jan 26, 2026

SKILL.md


name: worktree-management description: 並行タスク用にgit worktreeを作成・管理する(worktreeが無い場合のみ使う)。 allowed-tools: Bash, Read, Grep, Glob

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: 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

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon