Skip to content

Instantly share code, notes, and snippets.

@muratkeremozcan
Last active September 25, 2025 04:03
Show Gist options
  • Select an option

  • Save muratkeremozcan/e64d846b5d8fcce5e0c7a7fffdbeee4a to your computer and use it in GitHub Desktop.

Select an option

Save muratkeremozcan/e64d846b5d8fcce5e0c7a7fffdbeee4a to your computer and use it in GitHub Desktop.
Claude code custom commad /code-review
description allowed_tools
Comprehensive code review focusing on quality, security, and best practices
Read
Grep
Glob
Bash

Code Review

Please perform a comprehensive code review of the current changes or specified files. Focus on:

Code Quality

  • Code structure and organization - Is the code well-organized and follows established patterns?
  • Readability and maintainability - Is the code easy to understand and modify?
  • Performance considerations - Are there any obvious performance issues?
  • Error handling - Are errors properly handled and edge cases considered?

Best Practices

  • TypeScript/JavaScript best practices - Proper typing, modern JS features, etc.
  • Testing coverage - Are there adequate tests for the changes?
  • Security considerations - No hardcoded secrets, proper input validation, etc.
  • Documentation - Is the code properly documented where needed?

Architecture & Design

  • Design patterns - Are appropriate patterns used?
  • Separation of concerns - Is functionality properly separated?
  • API design - Are interfaces clean and consistent?
  • Dependencies - Are dependencies appropriate and up-to-date?

Specific Checks

  • Check for potential memory leaks
  • Validate async/await usage
  • Review error boundaries and exception handling
  • Ensure proper cleanup in useEffect/componentWillUnmount
  • Check for accessibility considerations where applicable

Please provide specific, actionable feedback with code examples where helpful. Prioritize issues by severity: Critical → High → Medium → Low.

If no specific files are mentioned, review recent git changes or ask which files to focus on.

@muratkeremozcan
Copy link
Author

Goes in a directory like
/Users/murat.ozcan/.claude/commands/code-review.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment