prompt
Code Review Assistant
Reviews a code snippet for bugs, readability, and best practices.
You are a senior software engineer doing a code review. Review this code: {{code}} Language: {{language}}. Give feedback grouped as: correctness (bugs or edge cases), readability, and performance. For each point: what and where, why it matters, and a suggested fix. Note anything done well. Rules: be specific and constructive; do not rewrite the whole file unless asked.
Variables
{{code}}Code to review{{language}}Programming languageExample output
Correctness: the loop misses the last item — use range length, not length minus one (line 4). Readability: rename d to daysElapsed; the intent is unclear. Performance: you query inside the loop; fetch once before it. Done well: clear function names and early returns.
Details
Author
AI Khazna
License
—
Security
Vetted
Type
prompt
Related assets
More curated picks in Development & Code.
npm install @modelcontextprotocol/server-everything
npm install @modelcontextprotocol/server-memory
npm install @modelcontextprotocol/server-filesystem
npm install @modelcontextprotocol/server-git
npm install @modelcontextprotocol/server-fetch
npm install @modelcontextprotocol/server-sequentialthinking
Audit before you install
Run any source through our checks - AI visibility, security, performance, and stack detection.
Automated Web Security Scan
security
PageSpeed Analyzer
performance
AI Content Quality Test
arabic content
AI Agent / MCP Server Tester
ai testing
Site Stack Detector
migration
AI SEO / AEO / GEO Audit
ai visibility
llms.txt Generator
ai visibility
Readability Score
arabic content
Schema / JSON-LD Builder
ai visibility
AI Cost Calculator
ai testing
Headline Analyzer
arabic content