approve
FreeNo executable scriptsNot checkedApprove a pull request using gh pr review --approve
by dyoshikawa★ 1,671 GitHub starsAbout this skill
Approve Pull Request
Approve a pull request using gh pr review --approve.
Input
the user's request
Step 1: Determine the Target PR
Parse the user's request to identify the PR to approve:
Case A: PR number or URL is provided
- Extract the PR number from the argument
- Examples:
123,#123,https://github.com/owner/repo/pull/123
Case B: No argument provided
- Get the PR associated with the current branch:
gh pr view --json number,title,state
Case C: Unable to determine the PR
If the PR cannot be determined (e.g., no PR exists for the current branch, or the argument is ambiguous), ask the user to specify which PR to approve.
Step 2: Verify the PR
Before approving, confirm the PR details:
gh pr view <pr_number> --json number,title,state,author,baseRefName,headRefName,isDraft
Check:
- The PR state is
OPEN - The PR is not a draft (
isDraftisfalse) - Display the PR title, number, and author to the user for confirmation
If the PR is not open or is a draft, inform the user and stop.
Step 3: Approve the PR
Execute the approve command:
gh pr review <pr_number> --approve
Important: Only approve ONE PR at a time. If multiple PRs are somehow specified, ask the user which single PR to approve.
If you want to add a comment along with the approval, use the --body option:
gh pr review <pr_number> --approve --body "<approval_comment>"
Step 4: Report Result
After approving:
- Confirm the PR was successfully approved
- Display the approved PR number and title
Install approve in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the approve skill do?
Approve a pull request using gh pr review --approve
How do I install the approve skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the approve skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic