Рабочий процесс ревью кода с AI

Используйте AI для выявления багов, соблюдения стандартов и документирования кода перед каждым мержем.

4 steps
codingdeveloper-toolsproductivity
1

Вставьте код и запросите ревью на баги

Вставьте измененные функции в 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

Сгенерируйте встроенную документацию

Используйте AI для написания комментариев JSDoc или docstring для каждой публичной функции.

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: что изменилось, почему, как тестировать. Экономит 10 минут.

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