# Pr

> Create or update a pull request following verl project conventions.

- Skill: `zju-real/pr` (Agent Skill)
- Install (CLI): `npx skillmds@latest add zju-real/pr`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zju-real/pr/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: ZJU-REAL (https://skillmd.com/u/zju-real)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zju-real/pr

---


When the user asks to create or update a PR, follow these steps:

### 1. Gather Context

Read the following and understand the current branch's changes compared to main:

- [`CONTRIBUTING.md`](CONTRIBUTING.md)
- [`PULL_REQUEST_TEMPLATE.md`](.github/PULL_REQUEST_TEMPLATE.md)

If a PR already exists for this branch, also read its current title, body, and review comments.

### 2. Compose PR Title and Body

Follow the PR template strictly for both title format and body sections. Only check checklist boxes for steps that have actually been completed.

When updating, ensure the title and body still accurately reflect **all** changes on the branch, not just the latest commit.

### 3. Pre-submit Checks

Run pre-commit and fix any issues before creating or pushing.

### 4. Create or Update the PR

- **Create**: target `main` by default unless the user specifies otherwise.
- **Update**: push new commits and update the title and body if the scope has changed. **Read the current PR title and body first** and incorporate any edits the user may have made directly on GitHub — never overwrite with a version generated from scratch.

Return the PR URL when done.

