# Open Pr

> Write a PR description using conversation context and open PR creation in browser.

- Skill: `majiayu000/open-pr-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/open-pr-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/open-pr-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/open-pr-2

---


<!-- This is a starting point. Customize the template and guidelines to match your team's PR conventions. -->

## Gather context

1. Get the base branch (usually `main` or `master`)
2. Get the diff: `git diff <base>...HEAD`
3. Get commit messages: `git log <base>...HEAD --format="%s"`
4. Read changed files to understand the broader context

## Commit uncommitted changes

1. Run `git status` to check for uncommitted changes
2. If changes exist, commit them before proceeding

## Write PR description

Use this template:

```markdown
## Summary

[1-2 sentences: what this PR does and why]

## Changes

- [Key change 1]
- [Key change 2]
- [Key change 3]

## Testing

[How you verified it works]
```

Guidelines:

- Lead with a concise summary of what the PR does
- Explain the "why" before the "how"
- Use the conversation context to inform the description
- Include before/after comparisons for UI or performance changes
- Be direct and to the point

## Create the PR

1. Write a short PR title (max 72 characters)

2. Ensure the branch is pushed:
   ```bash
   git push -u origin HEAD
   ```

3. Open PR creation in browser (do NOT create directly):
   ```bash
   gh pr create --web --title "<title>" --body "<body>"
   ```

