Generates pull request descriptions from git changes, branch name, and commit messages. Use when the user asks to write a PR, create a PR description, or draft PR content from current branch changes.
Generates a structured PR description by synthesizing:
git diff master..HEAD (or main)git branch --show-currentgit log master..HEAD --pretty=format:"%s%n%b" (raw notes)git branch --show-current
git log master..HEAD --pretty=format:"%s%n%b---"
git diff master..HEAD --stat
Use main instead of master if that is the base branch.
Synthesize a PR description using:
git diff --stat grouped by directory (exclude composer.lock):
api/ → APIweb/ → Web (Svelte)database/ or *migration* → Database / Migrationstests/, *Test.php → TestsUse this template; omit any section that has no information:
## Summary
[1–2 sentences: what this PR does and why]
## Changes
### API
-
### Web (Svelte)
-
### Database / Migrations
-
### Tests
-
## Testing
[Only include if concrete info exists: test file changes or explicit commit notes]
## Notes
[Only include if breaking changes, migration steps, or follow-ups exist]
Rules:
## Testing or ### Tests if nothing was found.composer.lock from change analysis.