Code Review
Perform thorough code review analyzing quality, potential bugs, security issues, and suggesting improvements.
Parameters
{
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "File path, directory, or glob pattern to review"
},
"focus": {
"type": "string",
"enum": ["general", "security", "performance", "maintainability"],
"description": "Primary focus area",
"default": "general"
}
},
"required": ["target"]
}
When to Use
- User asks to "review" or "check" code
- User wants to find bugs or issues
- User asks about code quality
- User wants security analysis
- User asks for improvement suggestions
Methodology
Phase 1: Context Gathering
- Read the target files
- Understand the codebase structure
- Identify the programming language and framework
- Check for related tests and documentation
Phase 2: Analysis
- Logic Review: Check for bugs and edge cases
- Security Scan: Look for vulnerabilities (injection, auth issues, etc.)
- Performance Check: Identify bottlenecks and inefficiencies
- Style Review: Check consistency and best practices
Phase 3: Prioritization
- Categorize issues by severity (Critical, High, Medium, Low)
- Focus on actionable feedback
- Provide concrete examples
Phase 4: Output
Provide structured review with:
- Summary of findings
- Issues list with severity and line numbers
- Specific improvement suggestions
- Code examples where helpful
Guidelines
- Be constructive, not just critical
- Provide specific line references
- Explain WHY something is an issue
- Suggest concrete fixes, not just problems
- Acknowledge good patterns when found
- Consider the project's existing style
Examples
Example 1: File Review
User Input: "Review src/auth.ts for security issues"
Expected Behavior:
- Read the file and understand authentication flow
- Check for common security issues (SQL injection, XSS, weak crypto)
- Verify input validation and sanitization
- Check for proper error handling
- Provide prioritized list of findings with fixes
Example 2: Directory Review
User Input: "帮我 review 一下 src/utils/ 目录的代码质量"
Expected Behavior:
- 列出并读取目录中的所有文件
- 分析代码结构、命名、错误处理
- 检查是否有重复代码或可抽象的模式
- 用中文输出详细的 review 报告
- 按严重程度排序问题列表
Source: 21pounder/terminalagent — distributed by TomeVault.
1---2name: code-review-1883description: Use this skill when user asks to "review code", "check for issues", "analyze code quality", "find bugs", or wants feedback on code implementation.4---56# Code Review78Perform thorough code review analyzing quality, potential bugs, security issues, and suggesting improvements.910## Parameters1112```json13{14 "type": "object",15 "properties": {16 "target": {17 "type": "string",18 "description": "File path, directory, or glob pattern to review"19 },20 "focus": {21 "type": "string",22 "enum": ["general", "security", "performance", "maintainability"],23 "description": "Primary focus area",24 "default": "general"25 }26 },27 "required": ["target"]28}29```3031## When to Use3233- User asks to "review" or "check" code34- User wants to find bugs or issues35- User asks about code quality36- User wants security analysis37- User asks for improvement suggestions3839## Methodology4041### Phase 1: Context Gathering42- Read the target files43- Understand the codebase structure44- Identify the programming language and framework45- Check for related tests and documentation4647### Phase 2: Analysis481. **Logic Review**: Check for bugs and edge cases492. **Security Scan**: Look for vulnerabilities (injection, auth issues, etc.)503. **Performance Check**: Identify bottlenecks and inefficiencies514. **Style Review**: Check consistency and best practices5253### Phase 3: Prioritization54- Categorize issues by severity (Critical, High, Medium, Low)55- Focus on actionable feedback56- Provide concrete examples5758### Phase 4: Output59Provide structured review with:60- Summary of findings61- Issues list with severity and line numbers62- Specific improvement suggestions63- Code examples where helpful6465## Guidelines6667- Be constructive, not just critical68- Provide specific line references69- Explain WHY something is an issue70- Suggest concrete fixes, not just problems71- Acknowledge good patterns when found72- Consider the project's existing style7374## Examples7576### Example 1: File Review7778**User Input**: "Review src/auth.ts for security issues"7980**Expected Behavior**:811. Read the file and understand authentication flow822. Check for common security issues (SQL injection, XSS, weak crypto)833. Verify input validation and sanitization844. Check for proper error handling855. Provide prioritized list of findings with fixes8687### Example 2: Directory Review8889**User Input**: "帮我 review 一下 src/utils/ 目录的代码质量"9091**Expected Behavior**:921. 列出并读取目录中的所有文件932. 分析代码结构、命名、错误处理943. 检查是否有重复代码或可抽象的模式954. 用中文输出详细的 review 报告965. 按严重程度排序问题列表9798---99> Source: [21pounder/terminalagent](https://github.com/21pounder/terminalagent) — distributed by [TomeVault](https://tomevault.io).100<!-- tomevault:4.0:skill_md:2026-05-28 -->