o-gi

Gw PR Close — Git skill for Claude Code

Git community

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

Terminal
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 Repository