Skip to content
Back to skills

Pr Describe

ASecurity

Write a pull-request title and body from the current branch's commits and diff against the base branch. Invoke when the user asks to open a PR, draft a PR description, or summarize a branch.

  • 86 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 5, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned June 5, 2026

npx -y skills add MuhammadUsmanGM/claude-code-best-practices --skill pr-describe --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr Describe?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr Describe
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/muhammadusmangm-pr-describe/badge)](https://www.skillsdirectory.com/skills/muhammadusmangm-pr-describe)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr-describe
description: Write a pull-request title and body from the current branch's commits and diff against the base branch. Invoke when the user asks to open a PR, draft a PR description, or summarize a branch.
allowed-tools: Bash(git branch:*), Bash(git log:*), Bash(git diff:*), Bash(git remote:*), Bash(gh pr view:*)
---

# PR Describe

Draft a pull-request title and body. Do **not** open the PR — hand the text to the user.

## Steps

1. Detect the base branch: check `git remote show origin | grep 'HEAD branch'`, fall back to `main`.
2. `git log <base>..HEAD --no-merges --reverse --format='%h %s%n%b'` — read every commit, not just the latest.
3. `git diff <base>...HEAD --stat` for scope, then targeted `git diff <base>...HEAD -- <path>` for files that look important.
4. If a PR template exists at `.github/pull_request_template.md` or `.github/PULL_REQUEST_TEMPLATE.md`, follow its structure.

## Title

- ≤ 70 characters, imperative mood, no trailing period.
- Prefix with a Conventional Commits type only if the repo's existing PR titles do.

## Body

Default structure (unless a template overrides):

```markdown
## Summary
<2-4 bullets: what changed and why — not a commit list>

## Changes
<grouped, human-readable bullets; collapse noisy refactors>

## Test plan
- [ ] <explicit verification step>
- [ ] <explicit verification step>

## Notes
<risks, migrations, follow-ups — omit the section if empty>
```

## Rules

- Focus on *why*, not *what*. The diff already shows *what*.
- Never invent issue numbers or Jira tickets. Only include `Closes #N` if a commit message references it.
- If the branch is empty relative to base, stop and tell the user.
- Do not run `gh pr create` or push. Output the title and body as a single markdown block the user can paste.

## Output

Exactly two fenced blocks: `title` and `body`. Nothing else.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.