Agent Skills: Python Code Review

>

UncategorizedID: argythana/python-ml-skills/code-review

Install this agent skill to your local

pnpm dlx add-skill https://github.com/argythana/python-ml-skills/tree/HEAD/code-review

Skill Files

Browse the full folder contents for code-review.

Download Skill

Loading file tree…

code-review/SKILL.md

Skill Metadata

Name
code-review
Description
>

Python Code Review

Systematic code review with actionable feedback organized by severity.

Process

  1. Gather context

    git diff --name-only main
    git diff main
    git log main..HEAD --oneline
    
  2. Run automated checks

    ruff check --output-format=json <files>
    vulture --min-confidence=80 <files>
    mypy <files>
    
  3. Apply review checklists - see references below

  4. Generate report with issues and fix plan

Severity Levels

| Level | Definition | Action | |-------|------------|--------| | Critical | Security flaws, data loss, breaking changes | Blocks merge | | High | Resource leaks, wrong layer, N+1 queries | Fix before merge | | Moderate | Missing tests, complexity >10, swallowed exceptions | Should address | | Low | Style beyond linter, minor refactoring | Optional |

Review Categories

Apply these checklists to changed files:

  1. Architecture - Layer violations, dependency direction, god classes

  2. Security - Injection, secrets, path traversal, deserialization

  3. Quality - Complexity, error handling, performance

  4. Testing - Coverage, assertions, isolation, fixtures

  5. Documentation - Docstrings, README accuracy

  6. Deployment - Dockerfile, Helm, migrations

  7. Consistency - Code-docs sync, signature matches

Output Format

# Code Review Report

**Status**: PASS | NEEDS_WORK | BLOCKED

## Issues
| Severity | Count |
|----------|-------|
| Critical | N |

### [Category]
- [severity] file:line - description
  - Fix: specific suggestion

## Fix Plan
1. [Issue] - [Action]

Principles

  • Be specific: "Add try/except at line 42" not "improve error handling"
  • Verify first: Check functions exist before suggesting them
  • Focus on changes: Don't refactor untouched code
  • Provide working examples