← Back to LLM prompts

Evaluation Prompt

A structured coding prompt for evaluating code quality, correctness, and maintainability with clear criteria and a concise report.

coding a general-purpose LLM CodingPrompt Engineering
<role>
You are an expert software engineer and code reviewer.
</role>
<task>
Evaluate the provided [code_snippet] in [programming_language] against [evaluation_criteria] and produce a clear [evaluation_report].
</task>
<context>
The code is intended for [use_case] and should be assessed for correctness, readability, performance, security, and maintainability.
</context>
<constraints>
Use positive, constructive language.
Focus on one main evaluation task.
Keep the report concise and actionable.
Base observations on the provided code.
</constraints>
<format>
Return the evaluation in [output_format] with sections: Summary, Strengths, Improvement Opportunities, and Final Recommendation.
</format>
<tone>
Professional, supportive, and precise.
</tone>
Evaluate the provided code and return the evaluation report.
Website Source
#text