Awesome Agentic Patterns PR Review
Overview
Review PRs in this repository by applying the local contribution policy and checking the actual changed files. Treat CONTRIBUTING.md as the source of truth for acceptance criteria, TEMPLATE.md as the source of truth for expected pattern structure, and the validation scripts in scripts/ as the source of truth for structural checks and generated-file expectations.
Read First
CONTRIBUTING.md
README.md
TEMPLATE.md
scripts/lint_front_matter.py
scripts/pattern_validator.py
scripts/build-data.ts when the PR touches patterns, generated README sections, or generated site data
Do not restate repo policy from memory when those files are available. Quote or summarize the repository's own rules instead.
Workflow
1. Inspect the PR
Use gh first:
gh pr view <number> --repo nibzard/awesome-agentic-patterns --json title,number,state,isDraft,author,baseRefName,headRefName,headRepository,headRepositoryOwner,maintainerCanModify,files,additions,deletions,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,labels,url,body
gh pr diff <number> --repo nibzard/awesome-agentic-patterns --patch
gh pr checks <number> --repo nibzard/awesome-agentic-patterns
If you need the exact branch locally, fetch it with:
git fetch origin refs/pull/<number>/head:pr-<number>
Capture these facts before deciding anything:
- Whether the PR is a new pattern submission, a pattern edit, or a broader repo/tooling change
- Whether the change correctly uses
patterns/<slug>.md rather than editing generated docs directly
- Whether
README.md or apps/web/public/ generated outputs changed because the contributor regenerated outputs, or because they hand-edited generated files
- Whether
maintainerCanModify is enabled and which fork/branch must be updated if you need to fix the PR
- Whether GitHub mergeability is trustworthy yet;
UNKNOWN can be transient right after a push
2. Validate the submission contract
For pattern submissions, check the repository's exact contract before debating fit:
- One pattern per PR
- New patterns live in
patterns/ and use kebab-case filenames
- PR title should use
Add: pattern-name
- The pattern should be concise, roughly capped at about 200 lines
- Do not edit README auto-generated sections manually
docs/index.md is only a compatibility symlink to README.md
- Front-matter should include:
title
status
category
tags
plus authors, based_on, and source when available
source_link is invalid here; use source
- Required content sections are:
## Problem
## Solution
## References
For generated-file sync, check whether the PR also updated:
README.md
apps/web/public/data/patterns.json
- other generated files under
apps/web/public/ when the pattern catalog changed
Call out structural violations explicitly. These are repository requirements, not style nits.
3. Apply local policy
Use CONTRIBUTING.md for the actual acceptance rubric. Evaluate:
- Whether the PR documents a reusable pattern rather than a product announcement
- Whether the pattern is materially novel and non-repetitive relative to existing patterns
- Whether the write-up clearly explains Problem, Solution, and Trade-offs or practical mechanics
- Whether references are public and verifiable
- Whether the contribution is community-first and non-promotional
- Whether external links are mostly
github.com, github.io, or neutral technical references for outside contributors
- Whether any vendor or product links are justified by clear novelty rather than marketing
- Whether contributor-owned projects are disclosed and framed as examples rather than the center of the PR
- Whether the category is the best fit for existing repo taxonomy
Separate policy fit from technical mergeability. A PR can be in scope but still need a maintainer fix before merge.
4. Run structural validation when useful
When reviewing a local branch or checking CI behavior, run:
python3 scripts/lint_front_matter.py
python3 scripts/pattern_validator.py <pattern-file.md>
python3 scripts/pattern_validator.py --all
bun run build:data when checking generated README or site data changes
Treat the scripts as structural checks, not the decision-maker. Human review still decides repository fit, novelty, promotion risk, and category choice.
5. Repair the branch when the PR is acceptable but stale
If the PR is acceptable and the user wants it fixed or merged, prefer the smallest possible maintainer correction:
- Fetch the PR branch locally
- Rebase or replay it onto
origin/main
- Fix only the minimum structural issue
- Normalize front-matter keys or section headings to repo expectations
- Regenerate
README.md and site data with bun run build:data only if the PR already requires generated-file sync
- Push back to the contributor's exact head branch, preferably with
--force-with-lease
- Re-check
gh pr view after the push because mergeable and mergeStateStatus may temporarily show UNKNOWN
Do not turn a small submission repair into a broader cleanup.
6. Produce the review
Use a code-review mindset:
- Present findings first, ordered by severity, with file references when applicable
- If there are no findings, say that explicitly
- After findings, give one clear decision:
Accept, Request changes, or Close
- Include mergeability as a separate line:
clean, needs maintainer repair, or blocked
- When the user wants to merge, include the exact next action:
comment, fix and push, merge, or close
Output Shape
Keep the final review compact and consistent. Use this exact structure:
Summary
- One short sentence on PR state or scope if useful
Findings
- Findings first, ordered by severity
- If there are no findings, say
No blocking findings.
Decision
Policy fit: Accept | Request changes | Close
Mergeability: clean | needs maintainer repair | blocked
Recommended action: comment | fix and push | merge | close
Proposed comment to contributor
- Draft a short, polite comment suitable for posting on the PR
- If the maintainer already fixed the PR, say what was adjusted and thank the contributor
- If requesting changes, state the minimum changes needed
What next
- End with a direct question to the user asking what they want next
- Example:
Do you want me to post the comment, push the small fix, or merge it?
1---2name: awesome-agentic-patterns-pr-review3description: Review pull requests for the awesome-agentic-patterns repository. Use when asked to validate a PR, assess whether a contribution fits the repo, inspect pattern submissions under patterns/, check merge readiness, repair a small submission issue on top of a contributor branch, draft a polite contributor comment, or apply the repository's pattern-first and non-promotional contribution policy to a GitHub pull request.4---56# Awesome Agentic Patterns PR Review78## Overview910Review PRs in this repository by applying the local contribution policy and checking the actual changed files. Treat `CONTRIBUTING.md` as the source of truth for acceptance criteria, `TEMPLATE.md` as the source of truth for expected pattern structure, and the validation scripts in `scripts/` as the source of truth for structural checks and generated-file expectations.1112## Read First1314- `CONTRIBUTING.md`15- `README.md`16- `TEMPLATE.md`17- `scripts/lint_front_matter.py`18- `scripts/pattern_validator.py`19- `scripts/build-data.ts` when the PR touches patterns, generated README sections, or generated site data2021Do not restate repo policy from memory when those files are available. Quote or summarize the repository's own rules instead.2223## Workflow2425### 1. Inspect the PR2627Use `gh` first:2829- `gh pr view <number> --repo nibzard/awesome-agentic-patterns --json title,number,state,isDraft,author,baseRefName,headRefName,headRepository,headRepositoryOwner,maintainerCanModify,files,additions,deletions,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,labels,url,body`30- `gh pr diff <number> --repo nibzard/awesome-agentic-patterns --patch`31- `gh pr checks <number> --repo nibzard/awesome-agentic-patterns`3233If you need the exact branch locally, fetch it with:3435- `git fetch origin refs/pull/<number>/head:pr-<number>`3637Capture these facts before deciding anything:3839- Whether the PR is a new pattern submission, a pattern edit, or a broader repo/tooling change40- Whether the change correctly uses `patterns/<slug>.md` rather than editing generated docs directly41- Whether `README.md` or `apps/web/public/` generated outputs changed because the contributor regenerated outputs, or because they hand-edited generated files42- Whether `maintainerCanModify` is enabled and which fork/branch must be updated if you need to fix the PR43- Whether GitHub mergeability is trustworthy yet; `UNKNOWN` can be transient right after a push4445### 2. Validate the submission contract4647For pattern submissions, check the repository's exact contract before debating fit:4849- One pattern per PR50- New patterns live in `patterns/` and use kebab-case filenames51- PR title should use `Add: pattern-name`52- The pattern should be concise, roughly capped at about 200 lines53- Do not edit README auto-generated sections manually54- `docs/index.md` is only a compatibility symlink to `README.md`55- Front-matter should include:56 `title`57 `status`58 `category`59 `tags`60 plus `authors`, `based_on`, and `source` when available61- `source_link` is invalid here; use `source`62- Required content sections are:63 `## Problem`64 `## Solution`65 `## References`6667For generated-file sync, check whether the PR also updated:6869- `README.md`70- `apps/web/public/data/patterns.json`71- other generated files under `apps/web/public/` when the pattern catalog changed7273Call out structural violations explicitly. These are repository requirements, not style nits.7475### 3. Apply local policy7677Use `CONTRIBUTING.md` for the actual acceptance rubric. Evaluate:7879- Whether the PR documents a reusable pattern rather than a product announcement80- Whether the pattern is materially novel and non-repetitive relative to existing patterns81- Whether the write-up clearly explains Problem, Solution, and Trade-offs or practical mechanics82- Whether references are public and verifiable83- Whether the contribution is community-first and non-promotional84- Whether external links are mostly `github.com`, `github.io`, or neutral technical references for outside contributors85- Whether any vendor or product links are justified by clear novelty rather than marketing86- Whether contributor-owned projects are disclosed and framed as examples rather than the center of the PR87- Whether the category is the best fit for existing repo taxonomy8889Separate policy fit from technical mergeability. A PR can be in scope but still need a maintainer fix before merge.9091### 4. Run structural validation when useful9293When reviewing a local branch or checking CI behavior, run:9495- `python3 scripts/lint_front_matter.py`96- `python3 scripts/pattern_validator.py <pattern-file.md>`97- `python3 scripts/pattern_validator.py --all`98- `bun run build:data` when checking generated README or site data changes99100Treat the scripts as structural checks, not the decision-maker. Human review still decides repository fit, novelty, promotion risk, and category choice.101102### 5. Repair the branch when the PR is acceptable but stale103104If the PR is acceptable and the user wants it fixed or merged, prefer the smallest possible maintainer correction:105106- Fetch the PR branch locally107- Rebase or replay it onto `origin/main`108- Fix only the minimum structural issue109- Normalize front-matter keys or section headings to repo expectations110- Regenerate `README.md` and site data with `bun run build:data` only if the PR already requires generated-file sync111- Push back to the contributor's exact head branch, preferably with `--force-with-lease`112- Re-check `gh pr view` after the push because `mergeable` and `mergeStateStatus` may temporarily show `UNKNOWN`113114Do not turn a small submission repair into a broader cleanup.115116### 6. Produce the review117118Use a code-review mindset:119120- Present findings first, ordered by severity, with file references when applicable121- If there are no findings, say that explicitly122- After findings, give one clear decision: `Accept`, `Request changes`, or `Close`123- Include mergeability as a separate line: `clean`, `needs maintainer repair`, or `blocked`124- When the user wants to merge, include the exact next action: `comment`, `fix and push`, `merge`, or `close`125126## Output Shape127128Keep the final review compact and consistent. Use this exact structure:129130`Summary`131- One short sentence on PR state or scope if useful132133`Findings`134- Findings first, ordered by severity135- If there are no findings, say `No blocking findings.`136137`Decision`138- `Policy fit: Accept | Request changes | Close`139- `Mergeability: clean | needs maintainer repair | blocked`140- `Recommended action: comment | fix and push | merge | close`141142`Proposed comment to contributor`143- Draft a short, polite comment suitable for posting on the PR144- If the maintainer already fixed the PR, say what was adjusted and thank the contributor145- If requesting changes, state the minimum changes needed146147`What next`148- End with a direct question to the user asking what they want next149- Example: `Do you want me to post the comment, push the small fix, or merge it?`