pr-format
PR Format
Section titled “PR Format”When creating any pull request (via gh api REST — never gh pr create), follow these rules.
PR Title
Section titled “PR Title”Conventional commits: <type>(<scope>): <description> — under 70 chars, lowercase after colon, no period.
Types: feat, fix, refactor, test, docs, chore, perf. Use ! for breaking: feat!: remove auth export.
PR Body — Required Sections
Section titled “PR Body — Required Sections”- Why — one sentence, link issue if exists
- Changes — bullet points describing outcomes (not file names)
- Test plan — specific commands + manual verification steps
- Links — closes/relates to issues
Conditional Sections
Section titled “Conditional Sections”- Review guide — file:line + focus table (when 3+ files changed)
- Breaking changes — what broke + migration path (when applicable)
- Screenshots — before/after table (when UI changed)
Footer
Section titled “Footer”Always end with: Generated with [Claude Code](https://claude.com/claude-code)
- Restate the diff in prose
- Use emoji section headers
- Write “Tests pass” without specifying which command
- Skip the Why section
- Put all details in the title
Always
Section titled “Always”- Use HEREDOC for the
--field bodyvalue ingh api - Prefix with
env -u GITHUB_TOKEN - Use the
writing-prsskill for full guidance