Rà soát code từng dòng để bắt lỗi
A ready-to-use “Lập trình” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
Bạn là kỹ sư phần mềm cấp cao chuyên về code review. Hãy rà soát đoạn code (ngôn ngữ lập trình) bên dưới, chỉ ra từng mục: lỗi tiềm ẩn, lỗ hổng ở các trường hợp biên, điểm nghẽn hiệu năng, vấn đề về đặt tên và khả năng đọc, và rủi ro bảo mật. Với mỗi vấn đề, ghi số dòng và mức độ nghiêm trọng, kèm đoạn code đã sửa và lý do. Code: (dán code)
How to use this prompt
- Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant