Review the staged files to ensure the changes adhere to the KISS, DRY, and YAGNI principles. Confirm that Clean Code standards are met (including clear, consistent naming and comments where needed).
Run the linting on the changed files and fix all reported errors and warnings. Avoid using "ignore" or disabling linting rules (e.g., eslint-disable comments) to make the lint pass unless absolutely necessary, and only with a clear justification in the code.
Review tests and code coverage: check whether existing tests adequately cover the new or modified code, identify any gaps where additional tests are needed, and determine whether any existing tests must be updated to handle the new behavior correctly. When finished, ensure everything is ready for a high-quality code review.