A tool to review code and give proper analysis and optimization

By (@rajutpal) · · Websites

A tool to review code and give proper analysis and optimization  - image 1

It is a code reviewer tool which helps analysing the code, optimising it, confidence score and trust boundaries of the same.

Tech stack

  • ChatGPT
  • Claude
  • Claude Code

Prompt

Build a full-stack AI code reviewer tool.

Requirements:

Frontend:
- Use Next.js (App Router)
- Simple UI with:
  - Code input textarea
  - Language selector
  - “Analyze” button
  - Output sections (Issues, Optimizations, Security, Improved Code, Confidence)
- Clean minimal design using Tailwind CSS

Backend:
- API route (/api/review)
- Accepts POST request with { code, language, context }
- Calls OpenAI API

AI Logic:
- Use this system prompt:

"You are a senior software engineer and security reviewer.
Analyze code and return:
1. Issues
2. Optimizations
3. Security & Trust Boundaries
4. Improved Code
5. Confidence (0–100)
Be precise, no fluff."

- Return structured JSON

Features:
- Syntax highlighting (optional)
- Loading state
- Error handling

Output:
- Provide complete folder structure
- All code files (frontend + backend)
- Environment setup instructions
- Example request/response

Constraints:
- Use JavaScript (not TypeScript)
- Keep it simple but production-ready
- No unnecessary explanations, focus on working code

Comments (7)

  1. Jack Herzlich · · 1 like

    Awesome, I’m gonna use this myself I’ve been looking for a tool like this

  2. Vision · · 1 like

    that looks great man

  3. Joshua · · 1 like

    This sounds super useful, especially for catching performance issues early.

  4. Lateef · · 1 like

    A proper code reviewer tool like this can save devs so much time.

  5. Praise · · 1 like

    This would be amazing for beginners who need clear code feedback

  6. Ayush · · 1 like

    Really cool project man!

18 likes · 7 comments · 4 views

Explore more on Prompted