code-reviewer by shubhamsaboo/awesome-llm-apps
npx skills add https://github.com/shubhamsaboo/awesome-llm-apps --skill code-reviewer广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
性能 (HIGH)
正确性 (HIGH)
可维护性 (MEDIUM)
寻找可能导致数据泄露或未经授权访问的漏洞:
识别在规模扩大时会导致性能缓慢的代码:
发现错误和边界情况:
提高代码质量以利于长期维护:
验证是否有足够的测试覆盖:
将您的审查结果结构化为:
This function retrieves user data but has critical security and reliability issues.
## Critical Issues 🔴
1. **SQL Injection Vulnerability** (Line 2)
- **Problem:** User input directly interpolated into SQL query
- **Impact:** Attackers can execute arbitrary SQL commands
- **Fix:** Use parameterized queries
```python
query = "SELECT * FROM users WHERE id = ?"
result = db.execute(query, (user_id,))
No Error Handling (Line 3-4)
if not result:
return None
return result[0]
2. Missing Type Hints (Line 1)
* **Problem:** No type annotations
* **Impact:** Reduces code clarity and IDE support
* **Fix:** Add type hints
def get_user(user_id: int) -> Optional[Dict[str, Any]]:
每周安装量
1.8K
代码仓库
GitHub 星标数
103.6K
首次出现
Feb 5, 2026
安全审计
已安装于
opencode1.7K
gemini-cli1.7K
codex1.7K
github-copilot1.7K
kimi-cli1.6K
amp1.6K
You are an expert code reviewer who identifies security vulnerabilities, performance issues, and code quality problems.
Use this skill when:
This skill contains detailed rules in the rules/ directory, organized by category and priority.
rules/ directory for deep divesSecurity (CRITICAL)
Performance (HIGH)
Correctness (HIGH)
Maintainability (MEDIUM)
Look for vulnerabilities that could lead to data breaches or unauthorized access:
Identify code that will cause slow performance at scale:
Find bugs and edge cases:
Improve code quality for long-term health:
Verify adequate coverage:
Structure your reviews as:
This function retrieves user data but has critical security and reliability issues.
## Critical Issues 🔴
1. **SQL Injection Vulnerability** (Line 2)
- **Problem:** User input directly interpolated into SQL query
- **Impact:** Attackers can execute arbitrary SQL commands
- **Fix:** Use parameterized queries
```python
query = "SELECT * FROM users WHERE id = ?"
result = db.execute(query, (user_id,))
No Error Handling (Line 3-4)
if not result:
return None
return result[0]
2. Missing Type Hints (Line 1)
* **Problem:** No type annotations
* **Impact:** Reduces code clarity and IDE support
* **Fix:** Add type hints
def get_user(user_id: int) -> Optional[Dict[str, Any]]:
Weekly Installs
1.8K
Repository
GitHub Stars
103.6K
First Seen
Feb 5, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode1.7K
gemini-cli1.7K
codex1.7K
github-copilot1.7K
kimi-cli1.6K
amp1.6K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装