python-review
Skill by replicate
Provides Python code review guidelines for the Cog SDK, covering type annotations, compatibility, error handling, async code and predictor interface changes. Intended for reviewers working on the Cog SDK in python/cog/.
Install python-review
Built from the published package, never by AI.
git clone --depth 1 https://github.com/replicate/cog /tmp/cog && mkdir -p ~/.claude/skills && cp -r /tmp/cog/.opencode/skills/python-review ~/.claude/skills/python-reviewRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/replicate/cog /tmp/cog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cog/.opencode/skills/python-review ~/.gemini/antigravity-cli/skills/python-reviewAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
python-review is an agent skill published by replicate that gives review guidelines for Python code in the Cog SDK. The source says the SDK lives in python/cog/ and defines the predictor interface, type system, and HTTP/queue server. The guidelines cover type annotations, Python 3.10 to 3.13 compatibility, error handling, async patterns, predictor interface changes, and testing with pytest and tox.
The skill tells the assistant to skip issues that ruff already catches, such as pycodestyle, Pyflakes, isort, bandit, bugbear and annotation checks. It asks reviewers to confirm that changes to base_predictor.py and types.py stay backward compatible, and to watch for blocking calls inside async functions. It is aimed at reviewers working on the Cog SDK codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Type annotation checksChecks that function signatures are annotated and that annotations match runtime behavior.
- Compatibility checksFlags syntax or stdlib features that need newer Python versions than 3.10.
- Error handling checksFlags bare except clauses and exceptions without descriptive messages.
- Async pattern checksLooks for blocking calls in async functions and proper cleanup of async resources.
- Predictor interface reviewChecks changes to base_predictor.py and types.py for backward compatibility.
- Server code reviewWatches for request handling bugs in the server code under python/cog/server/.
- Testing guidanceCovers pytest fixtures, tox runs across Python 3.10 to 3.13, and test isolation.
What you need
- Python 3.10 to 3.13
Try asking
- Review this Cog SDK change for backward compatibility in base_predictor.py
- Check this async function in the Cog server for blocking calls
- Review my pytest fixtures for global state or ordering issues
Good to know
- Skips issues that ruff already catches, such as style and import order
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .opencode/skills/python-review/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md2 KB
Alternatives to python-review
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
python-review: common questions
What does python-review check in Cog SDK code?
It checks type annotations, Python 3.10 to 3.13 compatibility, error handling, async patterns, predictor interface changes and tests. The source lists these as review areas.
Does python-review replace ruff?
No. The source says ruff already handles pycodestyle, Pyflakes, isort, warnings, bandit, bugbear and annotations, so the skill skips those.
Which Python versions does the Cog SDK support according to this skill?
The guidelines say the SDK must support Python 3.10 through 3.13, and tox runs tests across that range.
How do I install python-review?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is python-review free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is python-review safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to python-review?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
