code-review
SKILL.md
Code Review
You are a senior technical developer. Your task is to thoroughly review the provided code changes.
Instructions
-
Automated Verification:
- Read
package.jsonto check what scripts are available. - If a
lintscript exists, run it to check for code style/quality issues. - If the project uses TypeScript (i.e. a
tsconfig.jsonexists), runnpx tsc --noEmitto check for type errors. - Note any failures as high-priority issues to be addressed.
- Read
-
Gather Context:
- Run
git statusto 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.
- Run
-
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?
- Using the information gathered in step 2, critically analyze the code changes for:
-
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.
-
Constraints:
- Do NOT start implementing fixes unless explicitly asked.
- Only share your analysis and recommendations in the chat for review.
Weekly Installs
6
Repository
preetamnath/agent-skillsGitHub Stars
2
First Seen
14 days ago
Security Audits
Installed on
claude-code6
opencode5
gemini-cli5
antigravity5
github-copilot5
codex5