Skip to content
goodprompts

Explain code line by line and find its bugs

After the walkthrough you get a summary, the bugs ranked by severity, and a corrected version with comments.

2 blanksCodingSuggested models GPT, Claude, Geminiby @library

The prompt

545 characters
Explain what this code does line by line. For each significant section: 1. **What it does** — plain English explanation 2. **Why it matters** — the purpose in the larger context 3. **Potential issues** — bugs, edge cases, or performance concerns 4. **Improvement suggestions** — better approaches or patterns After the line-by-line analysis, provide: - A summary of what the full code accomplishes - A list of all bugs or issues found, ranked by severity - The corrected version with comments explaining each change ``` ```
545 characters

Model ratings

4.2 / 5

Strongest on the fill-in blanks. Weakest on the output.

  • Astra
  • Fable
  • Neon

Worth fixing

  • It doesn't say how long or how detailed the output should be.2 of 3 models
  • It doesn't say or ask who the output is for or what it's for.2 of 3 models
  • Its request rests on a loose word, like "better", that it never pins down.1 of 3 models

Rated

Wording only. The models read the prompt without running it.

  • AstraOpenAI · gpt-6.2-astra
  • FableAnthropic · claude-fable-5-2
  • NeonGoogle · gemini-4-neon-high

About this prompt

Category
Coding
Suggested models
GPT, Claude, Gemini
Blanks
2
Published
Jan 30, 2026
Tags
#debugging#code-review#technical#explanation

by @library

Comments

Details

Category
Coding
Suggested models
GPT, Claude, Gemini
Blanks
2
Published
Jan 30, 2026
Tags
#debugging#code-review#technical#explanation
GoodPrompts Library@library · 94 published
View profile

Comments

No comments yet.

Remixes

No remixes yet. Create your own version of this prompt.

Remix

More like this

Frontend state audit prompt for reviewing app codeCodingPlanning and building a data animation explainer as a canvas HTML fileCodingAudit third-party API integrations for reliability and failure risksCodingReview a pull request for scope creep and risksCodingAudit a codebase for authorization and tenant isolation flawsCoding

Unfilled blanks stay as {{name}} when copied.