dyoshikawa/rulesync/.rulesync/skills/approve/SKILL.md
approve
Approve a pull request using gh pr review --approve
- Source repository stars
- 1,263
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-07-28
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
Approve a pull request using gh pr review --approve.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/dyoshikawa/rulesync --skill ".rulesync/skills/approve"Inspect the Agent Skill "approve" from https://github.com/dyoshikawa/rulesync/blob/310b711fbe8cffc14debb276ade8a384c2b89083/.rulesync/skills/approve/SKILL.md at commit 310b711fbe8cffc14debb276ade8a384c2b89083. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Step 1: Determine the Target PR
Parse the user's request to identify the PR to approve:
Extract the PR number from the argumentExamples: 123, 123, https://github.com/owner/repo/pull/123Get the PR associated with the current branch: - 02
Step 2: Verify the PR
Before approving, confirm the PR details:
The PR state is OPENThe PR is not a draft (isDraft is false)Display the PR title, number, and author to the user for confirmation - 03
Step 3: Approve the PR
Execute the approve command:
Execute the approve command: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: - 04
Step 4: Report Result
1. Confirm the PR was successfully approved 2. Display the approved PR number and title
Confirm the PR was successfully approvedDisplay the approved PR number and title1. Confirm the PR was successfully approved 2. Display the approved PR number and title
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
Execute the approve command:Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 73/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 1,263 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- dyoshikawa/rulesync
- Skill path
- .rulesync/skills/approve/SKILL.md
- Commit
- 310b711fbe8cffc14debb276ade8a384c2b89083
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
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
Alternatives
Compare before choosing
Jeffallan/claude-skills
code-reviewer
Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quali
affaan-m/ECC
dmux-workflows
Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.
dpearson2699/swift-ios-skills
swiftui-performance
Profile, diagnose, and remediate SwiftUI runtime performance using code review, Instruments, and repeatable measurements. Use when a SwiftUI screen renders slowly, scrolling or animations hitch, view bodies update excessively, list identity churns, layout work spikes, or broad Observation dependencies raise CPU cost. Covers evidence-based triage, SwiftUI Instruments lanes, lazy-container guardrails, state lifetime, and before/after verification.
affaan-m/ECC
dmux-workflows
Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.