generating-pr-descriptions
Skill1 starsChanged 11 months agoMITView on GitHub
Generate structured, comprehensive Pull Request descriptions from your git changes. Good PR descriptions: Run the analysis script to understand what changed: What it extracts: The script auto-detects the type based on: Generate a complete PR description: Output includes: Copy the generated markdown to your PR: Customize base branch: Output to file: User: "Generate a PR description for my changes" Generated Output: See TEMPLATES.md for PR templates by change type.
- Sends data out
In this repository7 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use when user mentions PR description, pull request, code review, or asks to write/generate a PR.
- Distinctive: line 36
Run the analysis script to understand what changed:
- Distinctive: line 45
Commit messages and authors
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Description Generator
Generate structured, comprehensive Pull Request descriptions from your git changes.
Why This Matters
Good PR descriptions:
- Speed up reviews - Reviewers understand context instantly
- Reduce bugs - Testing instructions catch issues early
- Create documentation - Git history becomes useful
Quick Start
PR Description Workflow:
- [ ] Step 1: Analyze changes (diff + commits)
- [ ] Step 2: Detect PR type
- [ ] Step 3: Generate description
- [ ] Step 4: Copy to PRWorkflow
Step 1: Analyze Changes
Run the analysis script to understand what changed:
python scripts/analyze_changes.py --base mainWhat it extracts:
- Files added, modified, deleted
- Commit messages and authors
- Issue references (#123, fixes #456)
- Change statistics (lines added/removed)
Step 2: Detect PR Type
The script auto-detects the type based on:
| Type | Detection |
| Feature | New files, feat: commits |
| Bugfix | fix:, bug: commits, issue refs |
| Refactor | refactor: commits, same file count |
| Docs | Only .md files, docs: commits |
| Chore | Config files, chore: commits |
Step 3: Generate Description
Generate a complete PR description:
python scripts/generate_description.py --base main --output pr.mdOutput includes:
- Summary (auto-generated from commits)
- Type of change checkboxes
- Detailed changes list
- Testing instructions
- Related issues
- Review checklist
Step 4: Copy to PR
Copy the generated markdown to your PR:
- GitHub: Paste into description field
- GitLab: Paste into MR description
- Bitbucket: Paste into PR description
Utility Scripts
| Script | Purpose |
analyze_changes.py | Parse git diff and commits |
generate_description.py | Generate PR description markdown |
Configuration
Customize base branch:
python scripts/generate_description.py --base develop
python scripts/generate_description.py --base origin/mainOutput to file:
python scripts/generate_description.py --output pr_description.mdExample
User: "Generate a PR description for my changes"
Generated Output:
## Summary
Adds user authentication with JWT tokens and password hashing.
## Type of Change
- [x] ✨ New feature
- [ ] 🐛 Bug fix
- [ ] ♻️ Refactoring
- [ ] 📝 Documentation
## Changes Made
- Added `POST /auth/login` endpoint with JWT token generation
- Added `POST /auth/register` endpoint with validation
- Added bcrypt password hashing
- Added JWT middleware for protected routes
## Files Changed
| Status | File |
| -------- | ----------------------- |
| Added | src/auth/login.ts |
| Added | src/auth/register.ts |
| Modified | src/middleware/index.ts |
## Testing Instructions
1. Register: `curl -X POST /auth/register -d '{"email":"test@test.com","password":"secret"}'`
2. Login: `curl -X POST /auth/login -d '{"email":"test@test.com","password":"secret"}'`
3. Access protected route with `Authorization: Bearer <token>`
## Related Issues
Closes #42
## Checklist
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No breaking changesTemplates
See TEMPLATES.md for PR templates by change type.
Related Skills
- codebase-onboarding — Understand the codebase before reviewing
- stale-todo-finder — Ensure no stale TODOs in changed files
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

