Build a Brag Document from GitHub Pull Requests for Year End Review

A Markdown brag document built from your merged and reviewed GitHub PRs, grouped into impact themes with linked STAR bullets and clearly marked gaps.

Agent prompt for Claude Code and Codex

The prompt

Prompt
You are a staff engineer helping a teammate prepare for a year-end review. Build a brag document for GitHub user  covering , using their pull request history as the only source.

Steps:
1. Run gh auth status first. If not authenticated, stop and tell me.
2. Check gh --help, gh pr list --help and gh search prs --help for the exact flags on the installed version. Do not guess flags.
3. Read-only: collect PRs authored by  and merged in the period, plus PRs they reviewed. Use gh pr view for details. Never comment, approve, edit, merge or push.
4. If you cannot tell which repos or orgs to search, ask me up to 3 short numbered questions in one message and wait.

Rules:
- Group PRs into 3-6 impact themes, not by repo.
- Each bullet follows STAR (situation, task, action, result) in 1-2 sentences and ends with the PR link.
- Use only facts from the PR title, body, diff stats, labels or linked issues. If a result is not shown, write "result: add a number or outcome". Never invent PRs, metrics or praise.
- Save to brag-doc.md at the repo root (I may change the path), show me the file and its path. Do not commit or post it anywhere.

Output format:# Brag document title
## Summary (3 lines: merged count, reviewed count, repos)## One section per theme with STAR bullets
## Reviews given (table: PR, repo, what was reviewed)
## Gaps: 5 questions about mentoring, incidents, design docs, interviews, cross-team help

End with one line listing repos you could not access and any flags you could not confirm.

Example output

Example for: github_username = mkoval-dev, review_period = July 1 to December 31, 2024.

Brag document: mkoval-dev, Jul 1 – Dec 31, 2024

Summary

  • 23 merged PRs authored, 41 PRs reviewed
  • Repos: lumen-freight/billing, lumen-freight/web, lumen-freight/platform-tools
  • Saved to brag-doc.md at the repo root (not committed)

1. Billing reliability

  • S: Duplicate invoice emails were sent when the retry worker restarted. T: Make invoice sends idempotent. A: Added an idempotency key to services/billing/invoices/send.ts and a unique index. R: Linked issue #388 closed; result: add a number or outcome. #412
  • S: Stripe webhook handler had no tests. T: Cover failure paths. A: Added 14 test cases for refund and dispute events. R: PR body notes coverage for webhooks/ rose from 41% to 78%. #431

2. Checkout performance

  • S: Checkout page loaded the full product catalog. T: Reduce initial payload. A: Split catalog fetch and lazy-loaded apps/web/checkout/Recommendations.tsx. R: PR body reports bundle down 112 KB. #1287
  • S: Address form re-rendered on every keystroke. T: Fix input lag. A: Memoized validation hooks. R: result: add a number or outcome. #1302

3. Developer tooling

  • S: Local setup needed 9 manual steps. T: Script it. A: Wrote platform-tools/scripts/bootstrap.sh and updated README. R: result: add a number or outcome. #77

Reviews given

PRRepoWhat was reviewed
#1311webCart state refactor, 3 rounds of comments
#440billingTax rounding fix, requested extra tests
#82platform-toolsCI cache config

Gaps

  1. Did you mentor or onboard anyone in this period?
  2. Were you on call for or did you lead any incident response?
  3. Did you write design docs or RFCs outside these repos?
  4. How many interviews did you run?
  5. Which other teams did you unblock, and how?

Could not access: lumen-freight/data-pipeline (403). Could not confirm whether the reviewed-PR search includes PRs where you only left comments.

Check before using: confirm the PR count matches your own memory, fill every "result: add a number or outcome" line with real data, and remove any PR you would rather not highlight.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Checking gh auth status and --help first stops the agent from guessing CLI flags that do not exist on your version.
  • The 'result: add a number or outcome' marker keeps invented metrics out and shows exactly where you need to add evidence.
  • Ending with 5 questions about mentoring, incidents and interviews captures work that never appears in a pull request.

Use before writing your self-review. Paste into Claude Code or Codex in a terminal with the GitHub CLI installed and logged in. Know which orgs or repos you worked in and the exact date range.

Common edits

  • Second example, ready to paste: set {github_username} = "asha-builds" and {review_period} = "January 1 to June 30, 2025 (mid-year promotion packet)".
  • Change the save path to a private notes folder outside the repo.
  • Ask for a short 5-bullet version to paste into your review form.

Reuse it: Use in a workflowAdapt in the builder

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Did this prompt work?

AI Coding AgentsClaude Code

Review AI Pull Requests for Phantom Imports and Bloat

Audits pull request diffs generated by coding agents to flag fake dependencies, single-call wrappers, and premature abstractions.

AI Coding AgentsClaude Code

Pre-Merge Self-Review of a Git Diff: Correctness, Security, and Test Gaps

Has Claude Code review a branch diff like a skeptical maintainer, producing severity-ranked findings with evidence and a clear merge, fix, or block recommendation. Use it before opening or approving a pull request.

AI Coding AgentsClaude Code

Audit PR Git Diffs for Scope Creep and Churn

Reviews git diff statistics and patch files to immediately flag out-of-scope edits, accidental whitespace formatting churn, and unrequested dependency updates.

AI Coding AgentsClaude Code

Create a Legacy Module Reference Sheet for Coding Agents

Compresses messy legacy source files into a dense markdown cheat sheet capturing public methods, hidden state changes, and side effects for coding agent contexts.

AI Coding AgentsClaude Code

Audit AI Code Diffs for Performance Regressions

This prompt scans code changes for silent performance killers like N+1 queries, unindexed filters, and memory leaks before you merge them.

AI Coding AgentsClaude Code

Convert User Stories into Strict Acceptance Test Assertions

This prompt transforms vague business requirements into precise Given-When-Then test assertions with exact HTTP status codes and JSON payload structures for AI coding agents.