Gw PR Close — Git skill for Claude Code
Close PR without merging and cleanup all related branches/worktrees.
How to install Gw PR Close
Installs to ~/.claude/skills/o-gi-claude-code-commands-gw-pr-close/SKILL.md
mkdir -p ~/.claude/skills/o-gi-claude-code-commands-gw-pr-close && curl -fsSL https://raw.githubusercontent.com/o-gi/claude-code-commands/HEAD/commands/gw-pr-close.md -o ~/.claude/skills/o-gi-claude-code-commands-gw-pr-close/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Gw PR Close does
Close PR without merging and cleanup all related branches/worktrees.
Usage
/user:gw-pr-close [-c "comment"] [-p "prompt"]
Examples
# Close PR without comment
/user:gw-pr-close 45
# Close with direct comment
/user:gw-pr-close 45 -c "CIが通らないため一旦クローズ"
# Close with Claude-generated message
/user:gw-pr-close 45 -p "動作してないから"
Options
-c, --comment: Add exact comment as provided-p, --prompt: Generate professional message from prompt using Claude
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Awesome ChatGPT — Search awesome-ChatGPT-repositories for open-source GitHub repositories related to ChatGPT and LLMs 3.2k ★
- Create Worktrees — by evmts - Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleani 440 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Finish PR
Post-merge cleanup -- verify merge state, sync dev, delete branch, close issue
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Branches Cleanup
扫 ~/Dev 全部 git repo,找出已合并到 main 的分支(本地+远端),列表批准后一键删。
Sidecar
Spawn a read-only sidecar subagent to investigate something in this checkout without editing files, moving bra
Analyze GitHub Issue
Analyze a GitHub issue without creating branches or making changes
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Swe
Executor. Implements task specs in isolated worktrees with atomic close.
Delivery Tpm
Delivery control (code: tpm). Reconciles the board with branches, worktrees, pull requests, and gates; keeps o