py-code-stylelisted
Install: claude install-skill CodeSigils/py-review-skill
# Python Code-Style Review
Use style findings after correctness findings. Defer to the project's configured
formatter and linter when they exist.
**Freshness:** stable (no external references) — review rules based on core Python conventions, not volatile APIs.
## Review Rules
### Rule: style-defer-to-tooling
**Impact:** LOW-MEDIUM
**Applies when:** The project has `ruff`, `black`, `isort`, `mypy`, or `pyright` configuration.
**Skip when:** No tooling exists and the issue is purely subjective.
**Python:** any
**Tools:** ruff | mypy | pyright | project-configured
**Review signal:** Review feedback contradicts or duplicates configured automated tooling.
**Incorrect:**
```python
# Reviewer asks for single quotes while pyproject config uses double quotes.
name = 'Ada'
```
**Correct:**
```python
# Follow configured formatter output.
name = "Ada"
```
**Reason:** Style review should reinforce automated tools, not create a parallel subjective standard.
### Rule: style-import-organization
**Impact:** LOW-MEDIUM
**Applies when:** Imports are added or moved.
**Skip when:** The project formatter/linter will auto-fix the issue and CI already enforces it.
**Python:** any
**Tools:** ruff | project-configured
**Review signal:** Standard library, third-party, and local imports are mixed, or relative imports are added without need.
**Incorrect:**
```python
from myapp.models import User
import os
import httpx
```
**Correct:**
```python
import os
import httpx
from myapp.models import