Vai al contenuto
Promptowy / Libreria di prompt IA pronti da copiare (2026/2027) / Best AI Prompts for Coding, Debugging, Refactoring & SQL Review

Best AI Prompts for Coding, Debugging, Refactoring & SQL Review

Developer prompts tested on Claude Fable 5.2, Opus 5.5, GPT-6.2 Astra, and Gemini 4: root-cause debugging, unit tests, security review, and SQL tuning.

Come usarli: copia il prompt, sostituisci le parentesi [QUADRE] con i tuoi dati e incolla su ChatGPT, Claude o Gemini.

Root-Cause Bug Hunter

Analyze this stack trace and code snippet in [LANGUAGE]. Do NOT rewrite the whole file. Return: (1) exact root cause in 2 sentences, (2) minimal diff patch to fix it cleanly, and (3) one regression test covering this exact edge case. Error: [TRACE]. Code: [CODE].

Senior Security & Edge-Case Review

Review this [LANGUAGE] function for security flaws (injection, auth bypass, race conditions), null/empty edge cases, and O(n^2) bottlenecks. List findings ordered by severity with exact line numbers and one-line fixes. Code: [CODE].

SQL Query Optimizer

Optimize this [POSTGRES/MYSQL] query for a table with [N] million rows. Explain why the current plan is slow, propose the exact composite index needed, and provide the rewritten query with identical output. Query: [SQL].

Word & LLM Token Counter → · LLM API Cost Calculator →

Kinetyra OffertaLovable Pro 133,57 €/annoReplit Core 122,34 €/annoPostHog 55 €/annoVedi tutte le offerte →
× ‹ ›