搜索

PythonReactSEOPDF
GitHub Skill

code-review

Use when reviewing code for security, performance, or quality issues. Provides checklists and patterns for thorough code review.

the-prod-father☆ 5 仓库 Stars1 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Code Review Skill

Comprehensive knowledge for reviewing code. Use the checklists below and reference detailed guides for specific domains.

Review Process

  1. Understand context - What does this code do? What problem does it solve?
  2. Check correctness - Does it work? Are there logic errors?
  3. Check security - Any vulnerabilities? See security checklist
  4. Check performance - Any bottlenecks? See performance patterns
  5. Check maintainability - Is it readable? Testable? Well-organized?

Quick Security Checklist

  • Input validation on all user data
  • No SQL/NoSQL injection vectors
  • No XSS vulnerabilities (output encoding)
  • Authentication checked on protected routes
  • Authorization verified for data access
  • No hardcoded secrets or credentials
  • Sensitive data not logged
  • CSRF protection where needed

Quick Performance Checklist

  • No N+1 queries
  • Expensive operations are cached or memoized
  • No unnecessary re-renders (React)
  • Database queries use indexes
  • No memory leaks (cleanup in effects)
  • Large lists are virtualized or paginated

Quick Quality Checklist

  • Clear naming (functions, variables, files)
  • Single responsibility principle
  • Error handling covers failure modes
  • No dead code or debug statements
  • Tests cover critical paths
  • Types are accurate (no any abuse)

Severity Levels

Level Criteria Action
CRITICAL Security vulnerability, data loss risk, crash Must fix before merge
HIGH Bug, significant performance issue, bad UX Should fix before merge
MEDIUM Code quality, maintainability concern Fix soon
LOW Style, minor improvement Optional

Output Format

## Code Review: [file/feature]

### Summary
One paragraph overall assessment.

### Critical Issues
- **[SEVERITY]** file:line - Description
  - Why it's a problem
  - Suggested fix

### Recommendations
- Improvement suggestions

### What's Good
- Positive observations

Detailed References

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!