github-pr
Streamlines the process of creating GitHub PRs from worktrees and linking them to issues.
Install
mkdir -p .claude/skills/github-pr && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12477" && unzip -o skill.zip -d .claude/skills/github-pr && rm skill.zipInstalls to .claude/skills/github-pr
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a GitHub PR from a worktree branch. Use after committing changes.Key capabilities
- →Verify the current git worktree and branch
- →Check for existing pull requests for the current branch
- →Push the local branch to the remote repository
- →Create a new GitHub pull request with a formatted title and body
- →Update linked GitHub issues with status labels and comments
How it works
The skill verifies the current branch, pushes it to the remote, creates a GitHub pull request with a predefined template, and updates any linked GitHub issues with relevant status labels and comments.
Inputs & outputs
When to use github-pr
- →Create pull requests
- →Update issue status
- →Manage worktree workflows
About this skill
GitHub PR Workflow (Worktree-Aware)
Prerequisites
Changes committed via git-commit skill.
Workflow
Step 1: Verify Current Location
git worktree list
pwd
BRANCH_NAME=$(git branch --show-current)
echo "Current branch: $BRANCH_NAME"
Step 2: Check for Existing PR
gh pr list --head "$BRANCH_NAME" --state open --repo "$REPO"
If PR exists, show it and exit.
Step 3: Push Branch
git push --set-upstream origin "$BRANCH_NAME"
Step 4: Create PR
gh pr create \
--repo china-qijizhifeng/NexRL \
--base main \
--head "$BRANCH_NAME" \
--title "type(scope): description" \
--body "## Summary
- Key change 1
- Key change 2
## Testing
- [ ] Tests pass (`pytest`)
- [ ] Linting clean (`pylint`, `mypy`)
- [ ] Formatting applied (`black`, `isort`)
## Related Issues
Fixes #ISSUE_NUMBER"
Auto-extract title/body from commit messages. No AI branding.
Step 5: Update Issue
ISSUE_NUM=$(echo "$BRANCH_NAME" | grep -oP 'issue-\K\d+')
if [ -n "$ISSUE_NUM" ]; then
gh issue edit "$ISSUE_NUM" --repo china-qijizhifeng/NexRL \
--remove-label "status:in-progress" --add-label "status:review" 2>/dev/null || true
gh issue comment "$ISSUE_NUM" --repo china-qijizhifeng/NexRL \
--body "✅ PR created: $(gh pr view --json url -q .url). Ready for review."
fi
When not to use it
- →Before committing changes
- →When a PR for the current branch already exists
- →When the issue number cannot be extracted from the branch name
Prerequisites
Limitations
- →Requires committed changes
- →Assumes a specific issue number format in the branch name
- →Uses a predefined PR title and body template
How it compares
This skill automates the entire process of creating a GitHub PR and updating linked issues, including pre-checks and structured formatting, which is more efficient than manual steps.
Compared to similar skills
github-pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| github-pr (this skill) | 0 | 5mo | Review | Beginner |
| github-workflow-automation | 11 | 2mo | Review | Advanced |
| testing-workflow | 16 | 9mo | Review | Intermediate |
| github-actions-templates | 7 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
testing-workflow
amo-tech-ai
Comprehensive testing workflow for E2E, integration, and unit tests. Use when testing applications layer-by-layer, validating user journeys, or running test suites.
github-actions-templates
wshobson
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.
glab
NikiforovAll
Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.
create-pr
n8n-io
Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.
gh-fix-ci
openai
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.