Pr create

From berkcangumusisik/claude-code-practices · View interactive version

Pr create is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Creates a pull request from the current branch with a generated title and description

How to use this skill

Skill file

Create Pull Request

  1. Gather context:
git branch --show-current
git log main..HEAD --oneline --no-merges 2>/dev/null || git log master..HEAD --oneline --no-merges
git diff main..HEAD --stat 2>/dev/null || git diff master..HEAD --stat
  1. Generate PR title and body from the commits and diff.

Title format: type: short description (Conventional Commits style, max 72 chars)

Body template:

## Summary
- 

## Changes
- 

## Testing
- [ ] Tests added/updated
- [ ] Manually tested

## Related Issues
Closes #
  1. Show the draft to the user and ask for confirmation or edits.
  1. On confirmation:
gh pr create --title "..." --body "..." --base "${1:-main}"

Base branch defaults to main (or $1 if provided).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.