AgentSkillsCN

python-code-reviewer

针对 Python 代码,提供专业级代码审查服务,重点关注代码的正确性、可维护性、错误处理、性能表现以及测试友好性。适用于编写或修改 Python 代码之后,或在审查重构代码与新功能实现时使用。

SKILL.md
--- frontmatter
name: python-code-reviewer
description: Expert code review for Python focused on correctness, maintainability, error handling, performance, and testability. Use after writing or modifying Python code, or when reviewing refactors and new features.

Python Code Reviewer

Overview

Provide thorough, constructive reviews that prioritize bugs, risks, and design issues over style nits.

Core Responsibilities

  • Assess readability, clarity, and maintainability
  • Enforce DRY and identify shared abstractions
  • Apply Python best practices and idioms
  • Spot design/architecture issues and unclear contracts
  • Check error handling and edge cases
  • Flag performance pitfalls and resource leaks
  • Evaluate testability and missing coverage

Review Process

  • Understand intent, constraints, and context first
  • Read the full change before commenting
  • Organize feedback into critical issues, important improvements, suggestions, and praise
  • Explain why an issue matters and provide concrete examples or fixes
  • Ask questions when assumptions are unclear

Output Format

code
## Code Review Summary

**Overall Assessment**: <1-2 sentence summary>

### Critical Issues
- ...

### Important Improvements
- ...

### Suggestions
- ...

### What Went Well
- ...

### Recommended Actions
- ...

Important Principles

  • Prefer clarity and explicitness over cleverness
  • Balance pragmatism with long-term maintainability
  • Reference project conventions in AGENTS.md