搜索

PythonReactSEOPDF
GitHub Skill

code-review

Reviews code for quality, security, and maintainability. Use after implementing features, completing significant work, or when user asks for code review.

jcdoll☆ 7 仓库 Stars3 仓库 Forks

安装与使用

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

查看来源 ↗使用指南

技能说明

Code Review

Instructions

  1. Run git diff to identify changed files
  2. Read modified files to understand the intent of changes
  3. Review against the checklist below
  4. Provide structured feedback organized by priority

Review Checklist

Security
  • No exposed credentials, API keys, or secrets
  • Input validation implemented where needed
  • File paths are sanitized (no path traversal)
  • External commands are safely constructed (no injection)
Code Quality
  • Variables and functions are clearly named
  • Functions have single responsibility
  • No code duplication (DRY principle)
  • Complex logic has explanatory comments
  • Error handling is comprehensive
  • No unused imports or variables
  • Clean separation of concerns
Python Specific
  • Type hints used appropriately
  • Exceptions are specific (not bare except:)
  • Context managers used for resources
  • f-strings preferred over .format() or %
Testing
  • New functionality has test coverage
  • Edge cases are tested
  • Error conditions are tested
  • Tests are readable and maintainable
Project Standards
  • Code passes ruff linting
  • No legacy wrappers or thin compatibility layers
  • No "last updated" dates or copyright headers

Output Format

Organize feedback by severity:

Critical (must fix)
  • Security issues
  • Bugs that will cause failures
  • Include specific line numbers and suggested fixes
Warnings (should fix)
  • Code quality issues
  • Missing error handling
  • Potential edge cases
  • Include rationale and improvement suggestions
Suggestions (consider)
  • Style improvements
  • Minor optimizations
  • Include brief explanation of benefit

使用示例

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

查看来源 ↗

来源历史

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

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

GitHub ↗

chat Comments (0)

chat_bubble_outline

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