← AI Prompt Library
01
CODE REVIEW · PROMPT

AI Code Review Prompt Pack

A focused review pack for developers who want AI feedback that points to specific code risks instead of generic suggestions.

WHAT IT DOES

Structured prompts for sharper frontend architecture, accessibility and performance reviews.

BEST FOR

Developers using AI as a second-pass reviewer before refactoring, opening a pull request or shipping frontend work.

ChatGPTClaudeCursorCodex
THE PROMPT

Copy it. Add your context. Build carefully.

# Barnx AI Code Review Prompt Pack

## Frontend architecture
Review this component as a senior frontend engineer. Identify duplicated responsibility, fragile state, unnecessary client-side work, accessibility problems and opportunities for clearer component boundaries. Rank findings by impact.

## Accessibility
Audit this UI for keyboard access, semantic HTML, labeling, focus management, contrast assumptions and reduced-motion behavior. Do not invent issues; cite the exact code pattern behind each finding.

## Performance
Review this page for avoidable rerenders, oversized client boundaries, image/font issues, expensive effects and loading bottlenecks. Separate measurable risks from stylistic preferences.
HOW TO USE IT

A short workflow before you start.

01

Choose the review angle that matches the problem: architecture, accessibility or performance.

02

Paste the relevant component, page or diff together with enough surrounding context to understand it.

03

Run the prompt and ask the AI to rank findings by impact rather than changing everything at once.

04

Verify each recommendation against the actual code and runtime behavior before applying it.

Keep exploring

Browse all prompts →