افزایش بهرهوری بازبینی کد با یک پرامپت هوش مصنوعی قابل استفاده مجدد برای GPT-5

Why this prompt matters
A good PR review prompt helps developers move faster without lowering quality. It turns large diffs into clear review notes, catches risky changes earlier, and gives teams a more consistent review process.
What we use it for
Reviewing pull requests faster, spotting hidden risks, summarizing changes, and building a stronger test plan before merge.
Prompt
Act as a senior engineer reviewing this pull request. I will paste: 1. PR title and description 2. changed files 3. the git diff or key code snippets 4. any relevant product or architecture context Your task: - Summarize what changed in 4 to 6 bullet points - Identify correctness, reliability, performance, security, and maintainability risks - Flag anything that needs tests, migrations, rollout notes, or monitoring - List missing context or assumptions - Suggest the 5 most useful review comments I could leave on the PR - Propose a focused test plan with unit, integration, and edge-case coverage - End with a verdict: low risk, medium risk, or high risk, with one sentence of justification Rules: - Be specific and evidence-based - Quote or reference exact file names, functions, or diff sections when possible - Do not invent issues if the diff does not support them - Prefer concise, high-signal feedback over generic advice Return your answer in this structure: 1. Summary 2. Risks 3. Missing context 4. Suggested review comments 5. Test plan 6. Final verdict
Result
Summary: Adds retry handling to the payments client. Risks: backoff is unbounded and timeout handling is incomplete. Suggested review comment: add a maximum retry cap and verify idempotency. Test plan: timeout, retry exhaustion, duplicate charge prevention. Final verdict: medium risk.
Generated Image

بازبینی کد ضروری است، اما میتواند زمانبر باشد. چه میشود اگر بتوانید از هوش مصنوعی برای کارآمدتر و کاملتر کردن آنها استفاده کنید؟ ما یک پرامپت GPT-5 قابل استفاده مجدد طراحی کردهایم که به عنوان دستیار هوشمند شما در فرآیند بازبینی Pull Request عمل میکند.
این پرامپت به شما کمک میکند تا به سرعت ماهیت تغییرات را درک کنید، مسائل بالقوه را شناسایی کنید و حتی موارد تست را پیشنهاد دهید. این روش زمانی که شما diff کامل PR، لیستی از فایلهای تغییر یافته و هرگونه زمینه مرتبط از پروژه خود را ارائه دهید، به ویژه موثر است.
در اینجا نحوه تغییر گردش کار بازبینی شما توسط این پرامپت هوش مصنوعی آمده است:
- شناسایی زودهنگام ریسکها: باگهای ظریف، گلوگاههای عملکردی یا آسیبپذیریهای امنیتی را که ممکن است نادیده گرفته شوند، کشف کنید.
- خلاصه کردن تغییرات: یک نمای کلی مختصر از آنچه تغییر یافته است دریافت کنید و در زمان شما برای بررسی هر خط صرفهجویی شود.
- برنامهریزی تستها: پیشنهادات هوشمندانه برای موارد تست دریافت کنید و پوشش و استحکام بهتری را تضمین کنید.
- بهبود سازگاری: استانداردهای کیفیت کد بالاتری را در تیم خود حفظ کنید.
با ادغام این پرامپت در روال کاری خود، نه تنها در زمان ارزشمند صرفهجویی میکنید بلکه کیفیت کلی و قابلیت اطمینان پایگاه کد خود را نیز ارتقا میدهید. مدل GPT-5 خود را با زمینه مناسب تغذیه کنید و اجازه دهید به شما کمک کند نرمافزار بهتری را سریعتر ارائه دهید.