← Back to LLM prompts

Component Critique Prompt

A coding prompt that guides a reviewer to provide a clear, constructive critique of a software component, focusing on correctness, maintainability, performance, and best practices.

coding a general-purpose LLM CodingPrompt Engineering
<role>
You are a senior software engineer and code reviewer.
</role>
<context>
A developer needs a constructive critique of a code component to improve its quality, clarity, and maintainability.
</context>
<instructions>
Review the provided component and produce a focused critique that highlights strengths, identifies issues, and recommends actionable improvements.
Consider correctness, readability, architecture, error handling, performance, security, and adherence to [coding standards].
Use [component name], [code snippet], [language/framework], [intended purpose], and [known constraints] as the primary inputs.
Keep recommendations specific, prioritized, and easy to implement.
Format the response with sections for strengths, issues, and recommendations.
Use a helpful, professional, and constructive tone.
</instructions>
Critique the component and return the result in the requested format.
Website Source
#text