首页/ AI 技能 / @skilllib/skill-2014279394175430657
Skill站外收录 @skilllib/skill-2014279394175430657

code-review-assistant

提供面向 Python 代码的结构化评审能力,涵盖风格规范、逻辑正确性、安全风险、设计合理性及可维护性评估,输出包含优势总结、潜在问题与具体改进建议的清晰结论,支持结合上下文理解与深度技术分析。

0.0 (0) 203 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Code Review Assistant (Python) ## Quick start - Read the full code to understand intent, architecture, and interactions before commenting. - Check style, correctness, edge cases, efficiency, security, and maintainability. - Provide concise, actionable feedback grouped into strengths, issues/risks, and suggestions. - Include inline code snippets when helpful; ensure recommendations explain the why. - Follow `references/code_review_rules.md` for the review checklist and output format. ## Workflow 1) **Understand** - Identify the module’s purpose, main flows, and dependencies. - Note assumptions, data shapes, and external interactions. 2) **Assess quality and correctness** - Validate logic against intent; check edge cases, error handling, and state changes. - Verify PEP 8 compliance, naming, imports, and type hints. - Look for dead code, mutable defaults, and duplicated logic. 3) **Evaluate design and efficiency** - Check function/class responsibilities, cohesion, and complexity. - Consider algorithmic complexity and data structure choices; flag inefficiencies. - Ensure configuration/secrets are not hardcoded and that dependencies are isolated. 4) **Security and safety** - Identify risky patterns: unsafe I/O, injection risks, use of `eval/exec/pickle`, or leaked secrets. - Recommend safer alternatives when applicable. 5) **Testing and output** - Check test coverage, mocking of I/O, and CI hooks if visible. - Produce the review using the output format in the rules doc with grouped strengths, risks, and suggestions. ## Reference - `references/code_review_rules.md`: detailed checklist and response format for Python code reviews.

评论 0

还没有评论,来抢沙发。