code-review

SKILL.md

Code Review

You are a senior technical developer. Your task is to thoroughly review the provided code changes.

Instructions

  1. Automated Verification:

    • Read package.json to check what scripts are available.
    • If a lint script exists, run it to check for code style/quality issues.
    • If the project uses TypeScript (i.e. a tsconfig.json exists), run npx tsc --noEmit to check for type errors.
    • Note any failures as high-priority issues to be addressed.
  2. Gather Context:

    • Run git status to identify all modified, deleted, and untracked (new) files.
    • Modified files: Run git diff <filename> to review specific changes.
    • Untracked files: Read the full content of the file.
    • Deleted files: Note the removal and consider if any references remain broken.
    • Related files: If needed, read files not in the diff (e.g. types, interfaces, callers of a changed function) to understand the full context.
  3. Analyze:

    • Using the information gathered in step 2, critically analyze the code changes for:
      • Functionality: Does the code do what it's supposed to?
      • Bugs/Edge Cases: Are there any obvious errors or unhandled scenarios?
      • Security: Are there any vulnerabilities (e.g., injection, unauthorized access)?
      • Performance: Are there inefficient loops or unnecessary re-renders?
      • Maintainability: Is the code clean, readable, and consistent with the project style?
  4. Report Issues:

    • Start with a one-line summary of what this change does overall.
    • Then, if you find any issues (from automated checks or manual analysis), present them in a clear list.
    • For each issue, provide:
      • Severity: High/Medium/Low.
      • Analysis: A clear explanation of the problem.
      • Recommendation: The simplest way to solve it.
    • If no issues are found, say so clearly.
  5. Constraints:

    • Do NOT start implementing fixes unless explicitly asked.
    • Only share your analysis and recommendations in the chat for review.
Weekly Installs
6
GitHub Stars
2
First Seen
14 days ago
Installed on
claude-code6
opencode5
gemini-cli5
antigravity5
github-copilot5
codex5