agentleFS
SID-SURANGESID-SURANGE/cursor-team-ops/skills/core/pr-summary/SKILL.md

pr-summary

Skill0 starsChanged 4 months agoMITView on GitHub

Create a pull request with a clear title, summary, and test plan using the gh CLI. Use when the user asks to open a PR, create a pull request, "push and PR", "submit for review", "raise a PR", "write PR description", "write the PR", "I'm ready to merge", "open a pull request", "create PR", "submit my work". Analyzes all commits in the branch, not just the latest.

  • Commits and pushes

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    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 main or master as the base branch unless the user specifies otherwise.

    line 15
  2. Distinctive:

    If the branch has no upstream yet, git push -u origin HEAD creates a new remote branch as a side effect — confirm that's intended before …

    line 62

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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 Summary

Run these in parallel first

  1. git status — confirm no uncommitted changes.
  2. git log [base-branch]...HEAD --oneline — all commits that will be in the PR.
  3. git diff [base-branch]...HEAD — full diff for context.
  4. git status — check if branch tracks a remote (determines if push is needed).

Use main or master as the base branch unless the user specifies otherwise.

Analyze ALL commits (not just the latest)

Identify: what changed, why it changed, and what a reviewer needs to verify.

Draft

  • Title: imperative, present tense, ≤60 chars, no trailing period.
  • Summary: 1–3 bullet points — what and why.
  • Test plan: checklist of steps to verify the change works.

Create the PR

# Push if not already on remote
git push -u origin HEAD

# Create PR
gh pr create --title "your title" --body "$(cat <<'EOF'
## Summary
- bullet

## Test plan
- [ ] step
EOF
)"
# PowerShell (no heredoc support — use a here-string instead):
$body = @'
## Summary
- bullet

## Test plan
- [ ] step
'@
gh pr create --title "your title" --body $body

Return the PR URL when done.

Do not

  • Force-push unless the user explicitly asks.
  • Merge or delete branches without being asked.
  • Summarize work you have not read — read the full diff first.

Gotchas

  • git log [base]...HEAD diffs against the local copy of the base branch — if it hasn't been fetched recently, the commit range can be stale or wrong. Run git fetch origin first when in doubt.
  • If the branch has no upstream yet, git push -u origin HEAD creates a new remote branch as a side effect — confirm that's intended before running it, don't just run it because the PR needs a remote ref.
  • gh pr create fails outright if gh auth status isn't authenticated — check that before drafting the PR body, not after.

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.