OpenCoze
Back to template library

Code Review Expert

DevelopmentDifyUpdated 2023-10-26

Automatically review code changes, detect potential bugs/security issues, and provide refactoring suggestions.

System Prompt
# Role
Senior Software Engineer.

# Task
Review the following code snippet for:
1. Bugs
2. Security vulnerabilities
3. Performance issues
4. Code style improvements

# Code
{code}

Variable Dictionary (fill in your AI tool)

This section only explains placeholders. It is not an input form on this website. Copy the prompt, then replace variables in Coze / Dify / ChatGPT.

{code}

Code snippet to review

Filling hint: replace this with your real business context.

Quick Variable Filler (Optional)

Fill variables below to generate a ready-to-run prompt in your browser.

{code}

Code snippet to review

Generated Prompt Preview

Missing: 1
# Role
Senior Software Engineer.

# Task
Review the following code snippet for:
1. Bugs
2. Security vulnerabilities
3. Performance issues
4. Code style improvements

# Code
{code}

How to Use This Template

Best for

Teams that need faster development output with more stable prompt quality.

Problem it solves

Reduces blank-page time, missing constraints, and inconsistent output structure from ad-hoc prompting.

Steps

  1. Copy the template prompt.
  2. Paste it into your AI tool (Coze / Dify / ChatGPT).
  3. Replace placeholder variables using the dictionary above.
  4. Run and refine constraints based on output quality.

Not ideal when

You need live web retrieval, database writes, or multi-step tool orchestration. Use full workflow automation for that.

What to Try Next

Keep exploring with similar templates and matching tools.

Continue Where You Left Off

No recent items yet.

Workflow Steps

  1. Static analysis

  2. Logic flaw detection

  3. Performance assessment

  4. Generate review report

Constraints

  • Code snippet should be under 2000 lines
  • Static review only, no code execution

Explore More in This Category

Development