Creates a git worktree for parallel feature development. Use after planning to prepare an isolated development environment with all necessary environment files.
日本語の概要は準備中です。原文の説明を表示しています。
shikajiro/claude-code-skill-example642026年1月8日 更新
Create a PR and automatically cleanup the worktree. Keeps local and remote branches intact.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
worktreeでの開発完了後、PR作成と同時にworktreeを自動的にクリーンアップします。
このスキルは以下を自動で実行します:
重要: ローカルブランチとリモートブランチは残ります(削除されません)
# worktreeディレクトリ内で実行
cd .worktrees/<feature-name>
bash ../../.claude/skills/pr-and-cleanup/scripts/pr_and_cleanup.sh
# PR作成のみ(worktreeを削除しない)
bash pr_and_cleanup.sh --pr-only
# worktreeクリーンアップのみ(PR作成済みの場合)
bash pr_and_cleanup.sh --cleanup-only
# タイトルと本文を事前指定
bash pr_and_cleanup.sh --title "feat: Add new feature" --body "詳細な説明..."
# ドラフトPRとして作成
bash pr_and_cleanup.sh --draft
# 未コミット変更を無視(非推奨)
bash pr_and_cleanup.sh --force
gh CLI がインストール・認証済みであること$ cd .worktrees/user-auth
$ bash ../../.claude/skills/pr-and-cleanup/scripts/pr_and_cleanup.sh
[INFO] Current branch: feature/user-auth
[INFO] Worktree path: /path/to/.worktrees/user-auth
[STEP] Checking for uncommitted changes...
[INFO] No uncommitted changes detected
[STEP] Creating pull request...
[INFO] PR created: https://github.com/user/repo/pull/123
[STEP] Removing worktree...
[INFO] Worktree removed successfully
[STEP] Returning to main branch...
[INFO] Now on branch: main
スクリプトは停止し、コミットを促します。
worktreeは削除されず、現在のディレクトリに留まります。
警告を表示し、処理を中止します。
create-worktree: worktree作成commit-commands:commit-push-pr: 従来のPR作成(worktree削除なし)commit-commands:clean_gone: マージ済みブランチの一括削除詳細については REFERENCE.md を参照してください。
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Creates a git worktree for parallel feature development. Use after planning to prepare an isolated development environment with all necessary environment files.
日本語の概要は準備中です。原文の説明を表示しています。