AI-पावर्ड कोड रिव्यू वर्कफ्लो

हर मर्ज से पहले बग पकड़ने, मानक लागू करने और कोड डॉक्युमेंट करने के लिए AI का उपयोग करें।

4 steps
codingdeveloper-toolsproductivity
1

कोड पेस्ट करें और बग रिव्यू मांगें

PR खोलने से पहले, बदले गए फंक्शन को AI टूल में पेस्ट करें और इसे बग, एज केस और नल-पॉइंटर रिस्क खोजने के लिए कहें।

Example prompt
Review this code for bugs, edge cases, and potential runtime errors. List each issue with: location (function/line), severity (critical/medium/low), what can go wrong, and a suggested fix. Code:

[PASTE CODE HERE]
2

कोड स्टाइल और नामकरण परंपराओं की जांच करें

AI से स्टाइल उल्लंघन, असंगत नामकरण और टीम के नियमों का पालन न करने वाली चीजों को फ्लैग करने के लिए कहें।

Example prompt
Review this code for style and consistency issues. Check: naming conventions (variables, functions, classes), function length, comment quality, magic numbers, and DRY violations. Team conventions: [DESCRIBE YOUR CONVENTIONS]. Code:

[PASTE CODE HERE]
3

इनलाइन डॉक्यूमेंटेशन जनरेट करें

प्रत्येक पब्लिक फंक्शन के लिए JSDoc या docstring कमेंट लिखने के लिए AI का उपयोग करें।

Example prompt
Write JSDoc comments for each function in the code below. Include: one-line summary, @param with types and descriptions, @returns with type and description, @throws if applicable, and one usage example per function. Code:

[PASTE CODE HERE]
4

PR विवरण लिखें

Diff पेस्ट करें और AI को PR विवरण लिखने दें: क्या बदला, क्यों, कैसे टेस्ट करें।

Example prompt
Write a pull request description for the following code changes. Include: Summary (2-3 sentences on what changed and why), Changes Made (bulleted list of key changes), How to Test (step-by-step testing instructions), Screenshots (placeholder if UI changed), and any Breaking Changes. Diff:

[PASTE DIFF HERE]
Ready to try LockedIn AI?
Follow this playbook with the actual tool
View Tool