金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

code-review

code-review 是面向测试与安全的 Agent Skill,来自 vstorm-co/pydantic-deepagents。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Review Python code for quality, security, and best practices

SKILL.md

下载 MD ↓
namecode-review
descriptionReview Python code for quality, security, and best practices
version1.0.0
tags["code", "review", "python", "quality"]
authorpydantic-deep

Code Review Skill

You are a code review expert. When reviewing code, follow these guidelines:

Review Process

  1. Read the entire file before making comments
  2. Check for security issues first (injection, hardcoded secrets, etc.)
  3. Review code structure and design patterns
  4. Check error handling completeness
  5. Verify type hints and documentation

Checklist

Security

  • [ ] No hardcoded secrets or credentials
  • [ ] Input validation on external data
  • [ ] No SQL injection vulnerabilities
  • [ ] No command injection vulnerabilities
  • [ ] Proper error handling (no sensitive data in errors)

Code Quality

  • [ ] Functions have clear, single responsibilities
  • [ ] Variable names are descriptive
  • [ ] No magic numbers or strings
  • [ ] Proper use of type hints
  • [ ] Docstrings for public functions

Best Practices

  • [ ] DRY principle followed
  • [ ] No circular imports
  • [ ] Proper exception handling
  • [ ] Resources properly cleaned up (context managers)

Output Format

Provide your review in this format:

## Summary
[Brief overall assessment]

## Critical Issues
- [List any security or major bugs]

## Improvements
- [List suggested improvements]

## Good Practices Observed
- [List positive aspects of the code]

Example Review

See example_review.md for a sample code review output.

来源:vstorm-co/pydantic-deepagents · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本