Pr summary

From gittower/git-flow-next · View interactive version

Pr summary is an AI agent skill from the GitHub repository gittower/git-flow-next. Generate a PR summary and write to .ai/ pr_summary.md

How to use this skill

Skill file

Create PR Summary

Generate a pull request summary based on branch changes.

Instructions

  1. Gather Context
  1. Analyze Changes

```bash

# All commits on this branch

git log main...HEAD --oneline

# Full diff

git diff main...HEAD --stat

# Changed files

git diff main...HEAD --name-only

```

  1. Generate Summary

Read .github/PULL_REQUEST_TEMPLATE.md for the format specification and example.

Use context from the .ai/ folder files to write a better summary:

Write the summary to .ai/<folder>/pr_summary.md.

  1. Validate Format

Before presenting the create command, run pr_summary.md through the

posting checklist (mechanical + tone),

then check it against .github/PULL_REQUEST_TEMPLATE.md. A PR body is a

GitHub-only artifact — it never enters git history, so unlike commit

messages it is not caught by code review, and it posts via gh so no hook

reminder fires. This step is that missing gate. Reject and rewrite the

summary if any of these fail:

(Resolves/Closes/Relates #N)

author checklist, or example text copied from the template

credit is via Co-Authored-By commit trailers only

match the template's shape

If it fails, fix pr_summary.md and re-check before continuing. This same

check applies to any skill that posts a PR body directly (see

/resolve-issue, /takeover-pr).

  1. Create PR Command

Output the gh pr create command:

```bash

gh pr create --title "<title>" --body "$(cat .ai/<folder>/pr_summary.md)"

```

  1. Report Completion

PR Title Guidelines

Follow the Pull Request Titles rules in

COMMIT_GUIDELINES.md — same subject format as

commits: type(scope): Subject.

…); pick the dominant type for a multi-purpose PR — don't stack prefixes

"Added feature")

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.