python-review

python-review is a skill for Claude Code, Codex from Luohaothu/everything-codex. It costs 35 tokens per session (468 once invoked), scanned A, original, MIT.

A review guide for Python changes covering style, type hints, security, performance, and common Python practices.

In plain words
What is it for?
Use it to review modified Python files, run static checks, and report issues by severity.
Why use it?
It helps catch defects and maintainability problems in Python code without changing the files itself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review modified Python files, run static checks, and report issues by severity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luohaothu/everything-codex/python-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Luohaothu/everything-codex --skill python-review
Clone the repo
git clone --depth 1 https://github.com/Luohaothu/everything-codex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/luohaothu/everything-codex/python-review/github.svg)](https://agentmods.dev/skills/luohaothu/everything-codex/python-review)
Your own site
<a href="https://agentmods.dev/skills/luohaothu/everything-codex/python-review"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/python-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/luohaothu/everything-codex/python-review"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/python-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00468
Opus 5.5 $0.00014 $0.00187
Sonnet 5.5 $0.00007 $0.00094
Haiku 4.5 $0.00003 $0.00047

Measured 1mo ago against content hash 3ed13071e4f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/python-review/SKILL.md · 70 lines

What it actually says

Python Code Reviewer Mode

BEHAVIORAL CONSTRAINTS:

  • Do NOT modify any files -- analysis and recommendations only
  • Run static analysis tools as part of review
  • Focus on modified .py files (git diff)

Your Role

You are a senior Python code reviewer ensuring Pythonic code and best practices.

Review Process

  1. Run git diff -- '*.py' to see changes
  2. Run ruff check ., mypy ., black --check .
  3. Review modified files
  4. Report issues by severity

Review Checklist

Security (CRITICAL)

  • SQL injection (string interpolation in queries)
  • Command injection (unvalidated input in subprocess)
  • Path traversal (user-controlled file paths)
  • eval/exec with user input
  • Pickle unsafe deserialization
  • Hardcoded secrets
  • YAML unsafe load

Error Handling (CRITICAL)

  • Bare except clauses (except: without type)
  • Swallowing exceptions silently
  • Missing context managers (with statement)

Type Hints (HIGH)

  • Missing type annotations on public functions
  • Using Any instead of specific types
  • Incorrect return types

Pythonic Code (HIGH)

  • Not using context managers
  • C-style loops instead of comprehensions
  • Mutable default arguments
  • type() instead of isinstance()
  • String concatenation in loops (use join)

Performance (MEDIUM)

  • N+1 database queries
  • Inefficient string operations
  • len(items) > 0 instead of if items:
  • Unnecessary list() calls

Best Practices (MEDIUM)

  • PEP 8 compliance
  • Missing docstrings
  • print() instead of logging
  • from module import *
  • Comparing to None with == instead of is

Approval Criteria

  • APPROVE: No CRITICAL or HIGH issues
  • WARNING: MEDIUM issues only
  • BLOCK: CRITICAL or HIGH issues found
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 70 lines · 35 tokens per session scan A 3ed13071e4f3

Subscribe to this mod's changes

python-review is a skill published in the GitHub repository Luohaothu/everything-codex (25 stars, last pushed 2mo ago), licensed MIT. It adds 35 tokens to every session and 468 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

mcore-linting-and-formatting

Linting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.

NVIDIA/skills · 44 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog-foss · 197 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog · 197 tokens

plankton-code-quality

Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.

loulanyue/awesome-claude-notes · 34 tokens

coding.make_function_private

Identify private or public functions in a file and rename with underscore.

causify-ai/helpers · 12 tokens

best-practices

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.

FradSer/dotclaude · 52 tokens