Agent skill
create-pr
Use when the user wants to create a pull request, open a PR, or submit changes for review.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/create-pr-huzaifa525-claude-code-optimize
SKILL.md
Create a pull request for the current branch.
Steps
-
Gather context
git branch --show-current git log main..HEAD --oneline git diff main..HEAD --stat git diff main..HEAD -
Analyze ALL commits on this branch (not just the latest)
-
Generate PR
- Title: Under 70 characters, describes the change
- Body: Summary bullets + test plan
-
Push and create PR
git push -u origin $(git branch --show-current)Then create PR:
gh pr create --title "title" --body "$(cat <<'EOF' ## Summary - Bullet point 1 - Bullet point 2 - Bullet point 3 ## Changes - [file] — [what changed and why] ## Test Plan - [ ] Test step 1 - [ ] Test step 2 - [ ] Test step 3 EOF )" -
Return the PR URL
If $ARGUMENTS is provided
Use it as the base branch instead of main.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?