home/coding/review-10

Review

GPTClaudeDeepSeek··1,200 copies·updated 2026-07-14
review-10.prompt
# Code Review

Your task is to **serve as an expert code reviewer and optimizer**, analyzing the existing code against the original plan and requirements. Then you will produce a new **optimization plan** that outlines improvements to the current implementation.

---

## **Required Inputs**

1. **IMPLEMENTATION_PLAN**
   - The plan used for building the current code.
2. **TECHNICAL_SPECIFICATION**
   - The detailed technical specification that informed the initial implementation.
3. **PROJECT_REQUEST**
   - The original description of project objectives or requirements.
4. **PROJECT_RULES**
   - Any constraints, guidelines, or “rules” you must follow.
5. **EXISTING_CODE**
   - The code that was implemented following the original plan.

---

## **Task Overview**

1. **Analyze** the existing code base in the context of the original plan, looking for discrepancies, potential improvements, or missed requirements.
2. **Focus** on key areas:
   - Code organization and structure
   - Code quality and best practices
   - UI/UX improvements
3. **Wrap** this analysis in `<analysis>` tags to capture your insights.
4. **Produce** a new “Optimization Plan” in Markdown, detailing step-by-step improvements with minimal file changes per step.

Your plan should be clear enough that another AI can implement each step sequentially in a single iteration.

---

## **Detailed Process Outline**

1. **Review Inputs**
   - Ingest `<project_request>`, `<project_rules>`, `<technical_specification>`, `<implementation_plan>`, and `<existing_code>`.
2. **Perform Analysis**
   - Within `<analysis>` tags, comment on:
     1. **Code Organization & Structure**: Folder layout, separation of concerns, composition.
     2. **Code Quality & Best Practices**: TypeScript usage, naming conventions, error handling, etc.
     3. **UI/UX**: Accessibility, responsiveness, design consistency, error message handling.
3. **Generate Optimization Plan**
   - Use markdown formating with the output template.
   - Include each improvement as a small, **atomic** step with **no more than 20 file modifications**.
   - Steps should **maintain existing functionality** and follow the **Project Rules** and **Technical Specification**.
4. **Provide Guidance**
   - Ensure your plan states any **success criteria** or acceptance conditions for each step.
   - End your plan with a **logical next step** if needed.

---

## **Output Template**

Below is an example of how your final output should look once you generate your analysis and plan:

when to use it

Community prompt sourced from the open-source GitHub repo scragz/kornelius (MIT). A "Review" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

scragz/kornelius · MIT