review-pr
Review code changes in a pull request. Use when the user asks to review a PR, check PR changes, look at a pull request, or mentions reviewing code for merge.
Works with
--- name: review-pr description: Review code changes in a pull request. Use when the user asks to review a PR, check PR changes, look at a pull request, or mentions reviewing code for merge. license: MIT --- # Review Pull Request Review the code changes in a pull request for this Agility CMS Next.js codebase. ## Arguments - `$ARGUMENTS` - Optional: PR number or URL. If not provided, reviews the current branch's PR. ## Instructions 1. **Get PR Information** - If a PR number/URL is provided, use that - Otherwise, get the PR for the current branch using `gh pr view` - Fetch the PR diff using `gh pr diff` 2. **Analyze the Changes** Review the code for: ### Code Quality - TypeScript type safety and proper interface definitions - Proper error handling - Code clarity and maintainability - Avoiding over-engineering (no unnecessary abstractions) ### Agility CMS Patterns - Correct use of `getContentItem()` and `getContentList()` for CMS data fetching - Proper nested content fetching using `referencename` (not `contentid`) - Components registered in `src/components/agility-components/index.ts` - Use of `UnloadedModuleProps` with proper destructuring - `data-agility-component` and `data-agility-field` attributes for inline editing - Use of `<AgilityPic>` for Agility images (not Next.js `<Image>`) - Use of `renderHTML()` for rich text content ### Security - No hardcoded secrets or API keys - Proper input validation at system boundaries - No XSS, SQL injection, or command injection vulnerabilities ### Next.js & React Patterns - Correct use of server vs client components - Proper use of async components for data fetching - Following App Router conventions - Correct metadata and SEO patterns ### Styling - Tailwind CSS v4 patterns - Dark mode support with `dark:` variants - Mobile-first responsive design - Use of `clsx()` for conditional classes ### Documentation - Check if changes require documentation updates in `docs/` or `AGENTS.md` 3. **Output Format** Provide a structured review with: ``` ## PR Summary [Brief description of what the PR does] ## Review ### Strengths - [What's done well] ### Issues Found - **[Severity: Critical/Major/Minor]** [File:Line] - [Description] ### Suggestions - [Optional improvements that aren't required] ### Documentation Check - [Does this PR need documentation updates? Which files?] ## Verdict [APPROVE / REQUEST CHANGES / NEEDS DISCUSSION] [Summary of overall assessment] ``` 4. **Severity Levels** - **Critical**: Security issues, data loss risks, breaking changes - **Major**: Bugs, significant pattern violations, missing error handling - **Minor**: Style issues, minor improvements, nitpicks
More Code Review skills
pr-to-video
heygen-com/hyperframes
Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.
receiving-code-review
obra/superpowers
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
public-relations
coreyhaines31/marketingskills
When the user wants help with public relations, earned media, press coverage, journalist outreach, or media strategy (not pull requests). Also use when the user mentions 'PR,' 'public relations,' 'press,' 'press release,' 'press coverage,' 'media outreach,' 'pitch a journalist,' 'get featured,' 'media list,' 'media kit,' 'press kit,' 'newsjacking,' 'news hijack,' 'HARO,' 'Qwoted,' 'Featured,' 'Help A Reporter,' 'reporter request,' 'tech press,' 'TechCrunch,' 'earned media,' 'thought leadership placement,' 'op-ed,' 'guest article,' 'press contacts,' 'podcast prep,' 'going on a podcast,' 'podcast guest,' 'prep me for this podcast,' or 'how do I get press.' Use this for earned media work — finding journalists, pitching stories, newsjacking, prepping podcast appearances, and responding to press requests. For startup/SaaS/AI directory submissions, see directory-submissions. For product launches, see launch. For social-media engagement, see social. For cold-email outreach to prospects, see cold-email.

