Back to Prompts

Code Explainer

将复杂代码分解为清晰易懂的解释,配合类比说明

Code Assist4.63.2K copiesby @devteacher

Prompt Template

Explain the following code as if teaching a junior developer. Break it into logical sections. For each section: 1) What it does (one sentence), 2) Why it's needed, 3) A real-world analogy. Use markdown formatting. Code to explain:

[CODE_BLOCK]

Parameters

[CODE_BLOCK]

The code to explain

Claude CodeChatGPTCursor
#explanation#teaching#documentation