# Git Pr

> Use when users ask to create a pull request, open a PR, submit changes for review, or push and create PR. Verifies branch/remote readiness, gathers PR metadata, uses platform-specific CLI when available, and returns the resulting PR URL.

- Skill: `ashish102/git-pr` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add ashish102/git-pr`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ashish102/git-pr/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ashish102 (https://skillmd.com/u/ashish102)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/ashish102/git-pr

---


# Git Pull Request Instructions
When the user asks to create a pull request, follow these steps:
1. Verify the current branch is not the target branch (e.g., not on main/master).
2. Ensure all commits are pushed to the remote repository.
3. Determine the platform (GitHub, GitLab, Bitbucket) from the remote URL.
4. For GitHub:
   - Use GitHub CLI (`gh pr create`) if available
   - Or provide the web URL to create PR manually
5. For GitLab:
   - Use GitLab CLI (`glab mr create`) if available
   - Or provide the web URL
6. Gather PR details:
   - Title (use latest commit message as default)
   - Description/body
   - Target branch (usually main/master)
   - Reviewers (if specified)
   - Labels (if specified)
7. Create the PR and provide the URL to view it.
8. If CLI tools are not available, provide web URLs and instructions.

Additional references:
- Overview: see OVERVIEW.md  
- Usage details: see USAGE.md
- Examples: see EXAMPLES.md

