.opencode/skills/python-review/SKILL.md
This project uses Python for the SDK (python/cog/) which defines the predictor
interface, type system, and HTTP/queue server.
ruff handles pycodestyle (E), Pyflakes (F), isort (I), warnings (W), bandit (S), bugbear (B), and annotations (ANN). Don't flag issues these would catch.
Type annotations
typing_extensions for backward compatibilityAny where a concrete type is possibleCompatibility
from __future__ import annotations if using newer annotation syntaxError handling
except: or except Exception: that swallows everythingAsync patterns
Predictor interface
base_predictor.py is the core interface -- changes here affect all userstypes.py defines input/output types -- check backward compatibilitypython/cog/server/ handles HTTP -- watch for request handling bugsTesting