# Pr

> Commit changes, bump version, update changelog, and open a PR

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

---


# /pr - Prepare and Submit Changes

## Purpose

Commit changes to a feature branch, bump version if needed, update changelog, and open a PR.

## Before Starting

- Check for uncommitted changes: `git status --porcelain`
- Ensure tests pass: `make test` or equivalent
- Confirm current branch (create one if on main)

## Process

1. **Create or verify feature branch**

   If on main, create a branch from the work context:
   ```
   git checkout -b <descriptive-branch-name>
   ```

2. **Stage and commit changes**

   Use the user's git identity (never sign as Claude, no Co-authored-by).
   Write conventional commit messages:
   - `feat: add remote file sync`
   - `fix: resolve timeout on large files`

3. **Bump version if warranted**

   - Bug fixes → patch
   - New features → minor
   - Breaking changes → major

   Update version in pyproject.toml (or equivalent).

4. **Update CHANGELOG.md**

   Use /changelog skill to generate entry if changes are user-facing.

5. **Push and create PR**

   ```
   git push -u origin <branch>
   gh pr create --fill
   ```

   PR description should summarize changes. Link issues if referenced in commits.

## Notes

- Don't add "Signed-off-by" or "Co-authored-by: Claude" trailers
- Ask before force-pushing
- If tests fail, stop and report

