AI CodingThrive Editorial

50 prompt IA per programmare

Un prompt di programmazione utile descrive il comportamento attuale, la modifica richiesta e il modo in cui verrà verificata. Fornisci una parte circoscritta del repository e chiedi una patch che puoi testare.

25 min di letturaAggiornato
Postazione di uno sviluppatore con un portatile e un filo arancione che collega le attività di programmazione.

La versione breve

  • Un prompt di programmazione utile descrive il comportamento attuale, la modifica richiesta e il modo in cui verrà verificata. Fornisci una parte circoscritta del repository e chiedi una patch che puoi testare.
  • Non incollare credenziali, dati privati dei clienti o interi repository proprietari in un assistente non autorizzato. Esegui i comandi e i test proposti nel tuo ambiente. Una patch plausibile non dimostra che la modifica funzioni.

Un prompt di programmazione utile descrive il comportamento attuale, la modifica richiesta e il modo in cui verrà verificata. Fornisci una parte circoscritta del repository e chiedi una patch che puoi testare.

Non incollare credenziali, dati privati dei clienti o interi repository proprietari in un assistente non autorizzato. Esegui i comandi e i test proposti nel tuo ambiente. Una patch plausibile non dimostra che la modifica funzioni.

Come usare questa raccolta

Scegli l'attività più vicina al tuo lavoro. Copia il prompt, sostituisci la scena generica o il contesto del codice con i tuoi dati e mantieni i vincoli utili a valutare il risultato. Modifica una variabile alla volta per capire cosa migliora.

Il metodo segue la guida al prompt engineering di GitHub Copilot: fornisci un contesto preciso e controlla il risultato, senza dare per corretta una prima bozza ben presentata.

Prompt per la diagnosi

Questa sezione riguarda la diagnosi dei problemi. Fornisci il codice reale e il comando di test prima di accettare la risposta.

1. Un parser di date che non funziona

Help with a failing date parser in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

2. Una query lenta sul database

Help with a slow database query in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

3. Un modulo con invii duplicati

Help with a form with duplicate submissions in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

4. Un'API con errori incoerenti

Help with an API with inconsistent errors in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

5. Un caso limite nella paginazione

Help with a pagination edge case in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

6. Un test di integrazione intermittente

Help with a flaky integration test in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

7. Un limite al caricamento dei file

Help with a file upload limit in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

8. Un errore di invalidazione della cache

Help with a cache invalidation bug in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

9. Un ciclo di tentativi nella coda

Help with a queue retry loop in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

10. Una verifica delle autorizzazioni

Help with an authorization check in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui il caso di riproduzione proposto prima di applicare una patch.

Prompt per l'implementazione

Questa sezione riguarda l'implementazione. Fornisci il codice reale e il comando di test prima di accettare la risposta.

11. Un parser di date che non funziona

Help with a failing date parser in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

12. Una query lenta sul database

Help with a slow database query in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

13. Un modulo con invii duplicati

Help with a form with duplicate submissions in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

14. Un'API con errori incoerenti

Help with an API with inconsistent errors in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

15. Un caso limite nella paginazione

Help with a pagination edge case in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

16. Un test di integrazione intermittente

Help with a flaky integration test in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

17. Un limite al caricamento dei file

Help with a file upload limit in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

Visual example of a developer isolating a failing parser, making a focused change and running a check.

18. Un errore di invalidazione della cache

Help with a cache invalidation bug in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

19. Un ciclo di tentativi nella coda

Help with a queue retry loop in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

20. Una verifica delle autorizzazioni

Help with an authorization check in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Controlla nella patch le modifiche non pertinenti e gli accessi ai dati non previsti.

Prompt per i casi limite

Questa sezione riguarda i test dei casi limite. Fornisci il codice reale e il comando di test prima di accettare la risposta.

21. Un parser di date che non funziona

Help with a failing date parser in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

22. Una query lenta sul database

Help with a slow database query in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

23. Un modulo con invii duplicati

Help with a form with duplicate submissions in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

24. Un'API con errori incoerenti

Help with an API with inconsistent errors in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

25. Un caso limite nella paginazione

Help with a pagination edge case in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

26. Un test di integrazione intermittente

Help with a flaky integration test in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

27. Un limite al caricamento dei file

Help with a file upload limit in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

28. Un errore di invalidazione della cache

Help with a cache invalidation bug in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

29. Un ciclo di tentativi nella coda

Help with a queue retry loop in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

30. Una verifica delle autorizzazioni

Help with an authorization check in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Esegui i test e, quando possibile, verifica che falliscano prima della correzione.

Prompt per la sicurezza

Questa sezione riguarda la verifica della sicurezza. Fornisci il codice reale e il comando di test prima di accettare la risposta.

31. Un parser di date che non funziona

Help with a failing date parser in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

32. Una query lenta sul database

Help with a slow database query in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

33. Un modulo con invii duplicati

Help with a form with duplicate submissions in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

34. Un'API con errori incoerenti

Help with an API with inconsistent errors in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

Three-step code workflow: brief the work, inspect the result, edit and verify.

35. Un caso limite nella paginazione

Help with a pagination edge case in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

36. Un test di integrazione intermittente

Help with a flaky integration test in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

37. Un limite al caricamento dei file

Help with a file upload limit in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

38. Un errore di invalidazione della cache

Help with a cache invalidation bug in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

39. Un ciclo di tentativi nella coda

Help with a queue retry loop in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

40. Una verifica delle autorizzazioni

Help with an authorization check in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then inspect authorization, input validation, error disclosure and rollback behavior. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Verifica le affermazioni sulla sicurezza rispetto alle route reali e alle regole di accesso al database.

Prompt per documentare la consegna

Questa sezione riguarda la documentazione da consegnare. Fornisci il codice reale e il comando di test prima di accettare la risposta.

41. Un parser di date che non funziona

Help with a failing date parser in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

42. Una query lenta sul database

Help with a slow database query in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

43. Un modulo con invii duplicati

Help with a form with duplicate submissions in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

44. Un'API con errori incoerenti

Help with an API with inconsistent errors in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

45. Un caso limite nella paginazione

Help with a pagination edge case in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

46. Un test di integrazione intermittente

Help with a flaky integration test in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

47. Un limite al caricamento dei file

Help with a file upload limit in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

48. Un errore di invalidazione della cache

Help with a cache invalidation bug in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

49. Un ciclo di tentativi nella coda

Help with a queue retry loop in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

50. Una verifica delle autorizzazioni

Help with an authorization check in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then write a concise changelog, usage example and rollback note tied to the implementation. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.

Verifica: Elimina le affermazioni prive di misurazioni o test.

Cosa verificare prima di usare il risultato

Non incollare credenziali, dati privati dei clienti o interi repository proprietari in un assistente non autorizzato. Esegui i comandi e i test proposti nel tuo ambiente. Una patch plausibile non dimostra che la modifica funzioni.

Se il risultato non risponde al compito, accorcia il prompt e precisa il fatto o il vincolo mancante. Conserva la versione usata per poter riprodurre il contenuto finale o la modifica al codice.

Approfondimenti

Hai una domanda o una correzione?

Contatta Thrive

Continua a leggere

Altri articoli del blog

Tutti gli articoli
50 prompt IA per programmare