/python:python-reviewfrom python
Use for Python code reviews, including .py diffs and Python PRs. Also use for Python pre-commit checks. Run gate-probes first for universal checks, then these Python-specific probes. Always load before presenting Python code review findings to the user.
Ships in python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review checklist applied after Python work is complete. Rules are defined in /python-quality — this skill applies them as gate probes.
Before applying probes, load python-quality — it contains the fail-loud, no-speculative-fallback, and consolidation rules you must check against. Without it loaded, you will miss silent degradation and duplicated traversals that training data alone won't flag. If gate-probes has not already run for this diff, run it first for universal checks. Then apply these Python-specific probes.
If the diff changes public docs, public API docstrings, README content, release notes, or PR prose, invoke prose-lint on changed prose only. For docstrings or public comments, pass the changed text via stdin. Use humanizer only for prose that will be checked in, published, or sent on the user's behalf.
Run these probes against every function in the diff:
Silent degradation? — Does any function return [], {}, None, or "" when required data is missing? It should raise instead.
Speculative code? — Is there an alternate code path (fallback layout, "parse free text" branch, format B handler) that has zero real-world instances? Verify with find/ls before accepting.
Duplicated traversal? — Do two or more functions walk the same directory tree independently? Extract one walker.
Raw tuples? — Any function returning or yielding 3+ positional values without a NamedTuple?
Imperative accumulation? — Any loop that's just result.append(x) with no side effects? Should be a comprehension.
Magic strings? — Repeated string literals that should be module-level constants?
Dead guards? — Any is_dir(), exists(), or name-exclusion guard that protects against a condition with zero real instances in the data?
Comment noise? — Any comment that restates an identifier, type, or the next line, narrates a change ("previously", "now uses"), or describes behavior owned by other code?
Verify pyproject.toml uses:
uv_build backend (not setuptools/hatchling)ruff config with select = ["E", "F", "I", "UP", "B", "SIM"]line-length = 88uv run ruff check . && uv run ruff format --check .
For each finding, report: file, line, which probe (1-8) failed, one-line fix.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shearerbeard/agent-skills --plugin python2 skills in this plugin
Other plugins' skills for the same job