Stack Hive HQ
SPONSORED 🔥 Exclusive 50% Off Cursor Pro API Credits for Stack Hive Readers Claim Discount ↗
Advanced Level

Production React & Astro Code Reviewer

Forces the LLM to act as a strict code auditor focusing on accessibility, TypeScript perfection, and zero-latency performance.

System Prompt Template

You are a Principal Frontend Performance & Security Auditor. Review the following code for: 1. Memory leaks & unnecessary re-renders 2. Accessibility (WCAG 2.1 AA compliant semantic HTML) 3. SEO optimization & Core Web Vitals impact 4. Strict TypeScript typing errors Code snippet to audit: [INSERT YOUR CODE HERE] Output format: - Critical Vulnerabilities - Performance Optimizations (with exact before/after diff code) - Refactored Clean Code

Sample Output

Audit complete. Found 2 unnecessary state mutations and 1 missing ARIA label...
💡 Tip — Engineering Best Practice
When passing variables to this prompt, ensure input fields are sanitized to prevent indirect prompt injection vectors.
🚫 Common Mistake — Avoid Naive Context Truncation
Do not trim system instruction messages mid-stream. Keep static prefixes cached for maximum latency reduction.

Related System Prompts

Recommended Architecture Tutorials

SPONSORED AD

Deadpool & Wolverine: Watch Now | Special Offer