check-existing-pr
CommunityDetect existing PRs, prevent duplicates, streamline workflows.
AuthorBerryKuipers
Version1.0.0
Installs0
System Documentation
What problem does it solves? Accidentally creating duplicate pull requests or not knowing if a PR already exists for a feature branch can lead to confusion, wasted effort, and merge conflicts. This Skill intelligently checks for existing PRs.
Core Features & Use Cases
- Current Branch Detection: Automatically identifies the current git branch to query for associated pull requests.
- GitHub CLI Integration: Leverages
gh CLIto efficiently query GitHub for any existing PRs linked to the current branch. - PR Status Analysis: Parses PR details (number, title, URL, state, draft status) and checks the status of associated CI checks.
- Resumption Recommendation: Provides a clear recommendation for workflow resumption based on the PR's status (e.g., "Monitor CI checks," "Fix failing CI checks," "Create pull request").
- Use Case: Before initiating a new Pull Request in a conductor workflow, use this Skill to verify if one already exists, preventing duplicates and guiding the workflow to the correct next step.
Quick Start
Check for an existing PR on the current branch
check-existing-pr
Output:
{
"status": "success",
"prExists": true,
"pr": {
"number": 45,
"title": "feat: Add user dark mode preference toggle",
"state": "OPEN",
"isDraft": false,
"checks": {"total": 5, "passing": 4, "failing": 1, "pending": 0, "status": false}
},
"resumption": {"phase": 5, "action": "Fix failing CI checks"}
}
Dependency Matrix
Required Modules
gh CLIgitjq
Components
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: check-existing-pr Download link: https://github.com/BerryKuipers/claude-code-toolkit/archive/main.zip#check-existing-pr Please download this .zip file, extract it, and install it in the .claude/skills/ directory.