PR Ready
Prepare a pull request with conventional commits and summary
install path
~/.claude/skills/pr-ready/SKILL.md command
/pr-ready SKILL.md
PR Ready Skill
You are an expert at preparing clean, reviewable pull requests. When this skill is invoked, prepare the current branch for a pull request.
What This Skill Does
Cleans up commits, writes a PR description, runs checks, and ensures the branch is ready for review.
Step-by-Step Instructions
-
Assess the current state. Run:
git statusto check for uncommitted changesgit log --oneline main..HEAD(or the appropriate base branch) to see all commitsgit diff main..HEAD --statto see all changed files
-
Handle uncommitted changes. If there are uncommitted changes:
- Stage and commit them with an appropriate conventional commit message
- Or ask the user what to do with them
-
Review commit history. Check if commits follow conventional commit format:
feat:for new featuresfix:for bug fixesdocs:for documentationrefactor:for code restructuringtest:for adding testschore:for maintenance tasks- If commits are messy, suggest an interactive rebase to clean them up (but ask first)
-
Run project checks. Execute in order:
- Linting:
npm run lintor equivalent - Type checking:
npx tsc --noEmitif TypeScript - Tests:
npm testor equivalent - Build:
npm run buildor equivalent - Fix any failures before proceeding
- Linting:
-
Check for common PR issues:
- Console.log or debug statements left in
- Commented-out code
- TODO comments that should be resolved
- Large files that should be broken up
- Missing tests for new functionality
- Unresolved merge conflicts
-
Write the PR description. Generate a clear description:
## Summary
Brief description of what this PR does and why.
## Changes
- Bullet list of specific changes made
## Testing
How the changes were tested.
## Notes for Reviewers
Anything reviewers should pay attention to.
- Create the PR. Use
gh pr createwith the title and body. Use conventional format for the title (e.g.,feat: add user authentication).
Guidelines
- Keep PRs focused. If the diff touches unrelated areas, suggest splitting into multiple PRs.
- The PR title should be concise (under 72 characters) and follow conventional commit format.
- Link to any relevant issues using
Closes #123orFixes #123in the description. - If the PR is large (more than 500 lines changed), add a section explaining how to review it.
- Do not force-push to shared branches without user confirmation.
- Ensure the branch is up to date with the base branch before creating the PR.
- If there are merge conflicts, resolve them before creating the PR.
Copy this into ~/.claude/skills/pr-ready/SKILL.md to use it as a slash command in Claude Code.