agentleFS
dcs-sonidcs-soni/skills/pr-description-generator/SKILL.md

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

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
  1. Distinctive:

    Use when user mentions PR description, pull request, code review, or asks to write/generate a PR.

    line 5
  2. Distinctive:

    Run the analysis script to understand what changed:

    line 36
  3. Distinctive:

    Commit messages and authors

    line 45

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 PR

Workflow

Step 1: Analyze Changes

Run the analysis script to understand what changed:

python scripts/analyze_changes.py --base main

What 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:

TypeDetection
FeatureNew files, feat: commits
Bugfixfix:, bug: commits, issue refs
Refactorrefactor: commits, same file count
DocsOnly .md files, docs: commits
ChoreConfig files, chore: commits

Step 3: Generate Description

Generate a complete PR description:

python scripts/generate_description.py --base main --output pr.md

Output 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

ScriptPurpose
analyze_changes.pyParse git diff and commits
generate_description.pyGenerate PR description markdown

Configuration

Customize base branch:

python scripts/generate_description.py --base develop
python scripts/generate_description.py --base origin/main

Output to file:

python scripts/generate_description.py --output pr_description.md

Example

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 changes

Templates

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.