Code Review Assistant

👤 huajianjiu000 📦 v0.1.0 ⭐ 3.9 ⬇️ 775 下載
💻 開發程式設計 免費

📖 技能介紹


name: code-review-assistant description: AI-powered code review assistant that analyzes pull requests, identifies potential bugs, security issues, code quality problems, and provides actionable improvement suggestions. Use when reviewing PRs, auditing code changes, or ensuring code quality standards. version: 1.0.0 author: muqing tags: [development, code-review, security, quality]


Code Review Assistant

Description

An AI-powered code review assistant that analyzes pull requests, identifies potential bugs, security vulnerabilities, code quality issues, and provides actionable improvement suggestions. This skill helps maintain code quality standards and catch issues before they reach production.

When to Use

  • Reviewing pull requests for potential issues
  • Auditing code changes for security vulnerabilities
  • Ensuring code follows best practices and style guides
  • Identifying performance bottlenecks

    小蔥技能7w4.net有完整的技能分類。

  • Checking for test coverage gaps
  • Validating code complexity

Review Checklist

Security Issues

  • SQL injection vulnerabilities
  • XSS (Cross-Site Scripting) risks
  • Authentication/authorization flaws
  • Sensitive data exposure
  • Insecure dependencies

Code Quality

  • Code duplication
  • Function/class complexity
  • Naming conventions
  • Comment quality
  • Error handling
  • Resource management

Performance

  • N+1 query problems
  • Unnecessary re-renders
  • Memory leaks
  • Inefficient algorithms
  • Missing caching opportunities

Best Practices

  • Test coverage
  • Documentation completeness
  • API consistency
  • Error handling patterns
  • Type safety

How to Use

  1. When asked to review code, first gather context:
  2. The programming language and framework
  3. The files/functions changed
  4. The purpose of the changes

  5. Analyze the code systematically using the checklist

  6. Provide structured feedback with severity levels

Output Format

## Code Review Summary

### Overview
[Brief description of what the PR does]

### Issues Found

#### Critical (🔴)
- [Issue with location and fix suggestion]

#### High (🟠)
- [Issue with location and fix suggestion]

#### Medium (🟡)
- [Issue with location and fix suggestion]

#### Low (🟢)
- [Minor suggestions]

### Positive Aspects
- [What was done well]

### Recommendations
- [Additional suggestions]

🤖 AI 評測

這個技能整體質量中等偏上。它的優勢是結構完整、檢查維度全面,能幫助系統性地進行程式碼審查,並提供了清晰的輸出模板。但不足之處在於內容偏通用,沒有針對具體程式語言的深入指導,也缺少實際案例和可量化標準。對於需要詳細審查規則和具體操作建議的使用者來說,可能會覺得實用性有限。

📊 多維度評分

適應性3.8
規範性3.8
有效性4.2
可靠性3.6
可信度4.2

📁 包含檔案 (2 個)

📄 SKILL.md 2.3 KB
📄 _meta.json 142 B