Automates the PR workflow with pre-flight checks like linting, testing, and rebasing.
Install
mkdir -p .claude/skills/pr-zmerlynn && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17251" && unzip -o skill.zip -d .claude/skills/pr-zmerlynn && rm skill.zipInstalls to .claude/skills/pr-zmerlynn
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.
Push a branch and open a PR with pre-flight checksKey capabilities
- →Rebase the current branch on main
- →Build the project
- →Run Clippy with deny warnings
- →Execute project tests
- →Check for uncommitted changes
- →Review the diff before pushing
How it works
The skill performs a series of pre-flight checks, including rebasing, building, linting, and testing, before pushing the current branch and creating a pull request. It stops on the first failure.
Inputs & outputs
When to use pr
- →Automate PR submission
- →Run pre-push linting and tests
- →Sync branch with main
- →Generate PR test plans
About this skill
Push PR
Push the current branch and open a pull request, with pre-flight hygiene checks.
Arguments
- No arguments: run all checks, push, and open PR
--dry-run: run checks only, don't push or create PR- A PR title in quotes: use as the PR title instead of generating one
Pre-flight checks (all must pass before pushing)
Run these steps in order. Stop on first failure.
1. Rebase on latest main
git fetch origin main
git rebase origin/main
If rebase fails, stop and report the conflict.
2. Build
cargo build --features nalgebra
3. Clippy (deny warnings)
cargo clippy --all-targets --features nalgebra -- -D warnings
4. Test
cargo test --features nalgebra
5. Check for uncommitted changes
git status
If there are unstaged changes, stop and ask the user what to do.
6. Review the diff
Run git diff origin/main...HEAD --stat and git log --oneline origin/main..HEAD to summarize what's being pushed. Show this to the user.
Push and create PR
Only after all checks pass:
- Push the branch:
git push -u origin <branch-name> - Create the PR using the GitHub MCP tool
mcp__github__create_pull_request - Base branch:
main - Title: use the provided title, or generate one from the commit messages
- Body: include a
## Summarysection with bullet points describing changes, and a## Test plansection
Rules
- Do NOT push to
maindirectly — always use a feature branch - Do NOT include Claude session links in the PR body or commits
- If
--dry-runwas passed, stop after the checks and report results - If any check fails, do NOT push. Fix the issue or report it to the user.
- Keep
API_COVERAGE.mdin sync if any safe wrappers were added or changed
When not to use it
- →When pushing directly to the `main` branch
- →When including Claude session links in PR body or commits
- →When any pre-flight check fails
Limitations
- →All pre-flight checks must pass before pushing.
- →The skill does not push to `main` directly.
- →The skill does not include Claude session links in PR body or commits.
How it compares
This skill automates a sequence of pre-flight checks and PR creation, ensuring code quality and adherence to repository standards before changes are integrated, unlike a manual process that might skip checks.
Compared to similar skills
pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr (this skill) | 0 | 3mo | No flags | Intermediate |
| release-skills | 2 | 2mo | Review | Intermediate |
| search-code | 2 | 4mo | Review | Intermediate |
| pre_commit | 0 | 5mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
release-skills
JimLiu
Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, and generic projects. Use when user says "release", "发布", "new version", "bump version", "push", "推送".
search-code
JamieMason
Search for code patterns in Syncpack. Use when finding symbols, implementations, or understanding how code is used. Covers ast-grep for Rust and grep/rg for other cases.
pre_commit
pums974
Standardized pre-commit workflow for linting, formatting, and local quality gates.
code-review
jonatron55
Instructions for reviewing changes and ensuring quality before completion. Use when asking for a review or before committing changes.
pr
iopsystems
Prepare outstanding commits on a feature branch for a pull request to upstream
icn-shipping
InterCooperative-Network
Prepare ICN branches for merge with required checks, doc/spec sync, clean git hygiene, and high-quality PR metadata.