Python code review guidelines for the Cog SDK
64
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.opencode/skills/python-review/SKILL.mdThis 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
4e62b8b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.