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 を参照してください。
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer