code-review
3
总安装量
2
周安装量
#55490
全站排名
安装命令
npx skills add https://github.com/preetamnath/agent-skills --skill code-review
Agent 安装分布
claude-code
2
amp
1
cline
1
opencode
1
cursor
1
kimi-cli
1
Skill 文档
Code Review
You are a senior technical developer. Your task is to thoroughly review the provided code changes.
Instructions
-
Automated Verification:
- Run
npm run lintto check for code style/quality issues. - Run
npx tsc --noEmitto check for type errors. - If any of these commands fail, note the errors as high-priority issues to be addressed.
- Run
-
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: Run
view_fileto read the full content. - Deleted files: Note the removal and consider if any references remain broken.
- Run
-
Analyze:
- context: 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?
-
Report Issues:
- 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.
-
Constraints:
- Do NOT start implementing fixes unless explicitly asked.
- Only share your analysis and recommendations in the chat for review.