Automates the complete ship workflow: verify, push, and create a PR for your repository.
Install
mkdir -p .claude/skills/pr-luthersystems && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11878" && unzip -o skill.zip -d .claude/skills/pr-luthersystems && rm skill.zipInstalls to .claude/skills/pr-luthersystems
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.
Creates a PR after verifying all checks pass. Handles the full ship workflow: verify, push, create PR.Key capabilities
- →Determine the default base branch of the repository
- →Guard against creating PRs from the main branch
- →Fetch and rebase the current branch against the base
- →Run a full verification pipeline before pushing
- →Create a pull request with a structured body
How it works
The skill verifies the current branch state, rebases it, runs a full verification pipeline, pushes changes, and then creates a GitHub pull request with a predefined template.
Inputs & outputs
When to use pr
- →Ship changes to a new PR
- →Automate the complete verification and PR flow
- →Ensure branch is clean before pushing
About this skill
/pr — Pull Request Creation Skill
Creates a PR after verifying all checks pass. Handles the full ship workflow: verify, push, create PR.
Trigger
Use when asked to create a PR, submit changes for review, or ship changes.
Workflow
1. Determine Base Branch
gh repo view --json defaultBranchRef -q '.defaultBranchRef.name'
This is typically main.
2. Guard: Verify Not on Main
current=$(git branch --show-current)
if [ "$current" = "main" ] || [ "$current" = "master" ]; then
echo "ERROR: On $current — create a feature branch first"
exit 1
fi
STOP if on main/master. Create a feature branch before proceeding. Never push directly to the default branch.
3. Fetch and Rebase
git fetch origin
git rebase origin/<base-branch>
If there are conflicts, resolve them before proceeding.
4. Run Full Verification
Run the complete /verify pipeline (all 6 steps). If any step fails, stop and fix before creating the PR.
5. Push
git push -u origin <current-branch>
6. Create the PR
gh pr create --title "<concise title>" --body "$(cat <<'EOF'
## Summary
- <bullet point describing what changed>
- <bullet point describing why>
## Test Plan
- [ ] `make test` passes
- [ ] `make static-checks` passes
- [ ] `./elps fmt -l ./...` reports no changes
- [ ] `./elps lint ./...` reports no diagnostics
- [ ] `./elps doc -m` reports no missing docs
Closes #<N>
EOF
)"
7. Report
Return the PR URL so the user can review it.
PR Title Guidelines
- Keep under 70 characters
- Use imperative mood: "Add ...", "Fix ...", "Update ..."
- Be specific: "Add rethrow builtin for handler-bind" not "Add new feature"
PR Body Guidelines
- Summary: 1-3 bullet points explaining what and why
- Test Plan: Checklist of verification steps
- Closes #N: Link to the issue if this PR resolves one
- Include the Claude Code attribution line
Checklist
- All changes committed
- Rebased on latest base branch
- Full verify pipeline passes
- Pushed to remote with
-uflag - PR created with summary, test plan, and issue link
- PR URL returned to user
When not to use it
- →When the current branch is 'main' or 'master'
- →When there are merge conflicts after rebasing
- →When the full verification pipeline fails
Limitations
- →Cannot be run from the 'main' or 'master' branch.
- →Requires conflicts to be resolved manually after rebase.
- →The full verification pipeline must pass before PR creation.
How it compares
This skill enforces a rigorous pre-PR workflow including main branch protection, rebase, and a full verification pipeline, ensuring higher quality and adherence to standards than a simple PR creation.
Compared to similar skills
pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr (this skill) | 0 | 4mo | Review | Intermediate |
| fix-pr | 1 | 4mo | Review | Intermediate |
| resolve-checks | 1 | 6mo | Review | Intermediate |
| agent-github-pr-manager | 1 | 6mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
fix-pr
AztecProtocol
Fix a failing PR by analyzing CI logs and fixing errors. Autonomous workflow that identifies failures, rebases, fixes issues, and pushes.
resolve-checks
flowglad
Resolve all failing CI checks and address PR review feedback on the current branch's PR. Runs tests locally, fixes failures, incorporates valid review comments, and resolves addressed feedback. Use when CI is red, after receiving PR feedback, or before merging.
agent-github-pr-manager
ruvnet
Agent skill for github-pr-manager - invoke with $agent-github-pr-manager
agent-github-modes
ruvnet
Agent skill for github-modes - invoke with $agent-github-modes
agent-pr-manager
ruvnet
Agent skill for pr-manager - invoke with $agent-pr-manager
git-pr-workflows-git-workflow
sickn33
Orchestrate a comprehensive git workflow from code review through PR creation, leveraging specialized agents for quality assurance, testing, and deployment readiness. This workflow implements modern g