npx github:NickCirv/pr-summary# Basic summary from current branch vs main
npx github:NickCirv/pr-summary
# AI-polished description, copied to clipboard
npx github:NickCirv/pr-summary --ai --copy
# Compare against a different base branch and open a draft PR
npx github:NickCirv/pr-summary --base develop --open| Flag | Description |
|---|---|
--base <branch> |
Base branch to compare against (default: main) |
--ai |
AI-polished summary via ANTHROPIC_API_KEY (Claude Haiku) |
--copy |
Copy the output to clipboard |
--open |
Open a draft PR using the gh CLI |
--format <fmt> |
Output format: markdown or github (default: markdown) |
pr-summary reads your git diff against a base branch and generates a structured PR description with a summary, commit breakdown, file-change list, and a test checklist. Pass --ai to refine the summary through Claude Haiku (requires ANTHROPIC_API_KEY). Pass --open to push the draft directly to GitHub via the gh CLI.
Zero dependencies · Node 18+ · MIT · by NickCirv