code-review-python

code-review-python is a skill for Claude Code, Codex from soulcodex/agentic. It costs 59 tokens per session (807 once invoked), scanned A, original, MIT.

A code-review guide for Python, a programming language used for web services, scripts, and data tools. It checks type annotations, asynchronous code, mutable default values, thread safety, and business models.

In plain words
What is it for?
Use it to review Python pull requests and changes, inspect project settings, and find problems involving types, async operations, shared state between threads, default values, or domain models.
Why use it?
It focuses review on Python-specific mistakes that general code checks may overlook. It also keeps the review within the requested files or current changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to review Python pull requests and changes, inspect project settings, and find problems involving types, async operations, shared state between threads, default values, or domain models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/code-review-python
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 soulcodex/agentic --skill code-review-python
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

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 code-review-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/code-review-python/github.svg)](https://agentmods.dev/skills/soulcodex/agentic/code-review-python)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/code-review-python"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/code-review-python/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 code-review-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/code-review-python"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/code-review-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00059 $0.00807
Opus 5.5 $0.00024 $0.00323
Sonnet 5.5 $0.00012 $0.00161
Haiku 4.5 $0.00006 $0.00081

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

Security

Grade A, and why

code-review-python 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/development/code-review-python/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Review — Python

Apply Python-specific linting using the checklist in this skill directory.

Step 0 — Load Project Map

Check for .agentic/project-map.md:

  • If present: read it. Use the layer structure, key modules table, and non-obvious conventions it defines to orient all findings. Skip redundant filesystem exploration.
  • If absent: run lightweight auto-discovery:
    • Read pyproject.toml to identify dependencies and build system
    • Detect framework (FastAPI, Django, Typer, etc.) from dependencies
    • List top-level src/ or app directories
    • Suggest running the project-map skill after this review to avoid this overhead next time

Step 1 — Load Checklist

Read checklist.md in this skill directory and apply every item to the codebase.

Step 2 — Determine Scope

  • If the user specifies files, review those.
  • Otherwise review the current diff: git diff HEAD or staged changes.
  • Do not review files outside stated scope.

Step 3 — Analyze with Python-specific Lenses

Work through the checklist systematically. For each issue found, note:

  • File path and line number
  • Risk level: critical / high / medium / low
  • Description of the issue
  • Why it matters
  • Verifiable source reference when the finding is non-obvious

Focus particularly on:

  • Type annotation completeness and mypy strict mode violations
  • Mutable default arguments
  • Async/blocking I/O in coroutines
  • Threading safety issues
  • Domain modeling with dataclasses/Pydantic

Step 4 — Write the Review

Output the review in this exact format:

## Code Review — Python

### What Works Well
- [At least one specific positive observation with file reference]

### Findings

#### Critical
- `path/to/file.py:42` [critical] Description. Why it must change. *Source: [PEP 484 — Type Hints](https://peps.python.org/pep-0484/)*

#### High
- `path/to/file.py:18` [high] Description. Why it matters. *Source: ...*

#### Medium
- `path/to/file.py:7` [medium] Description.

#### Low
- `path/to/file.py:5` [low] Minor note.

### Suggested Improvements
[Concrete alternatives and solutions for the most impactful findings]

### Summary
[One paragraph: overall quality, main risks, merge recommendation]

Read the full file on GitHub · 105 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 105 lines · 59 tokens per session scan A bd715a66f44b

Subscribe to this mod's changes

code-review-python is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 28d ago), licensed MIT. It adds 59 tokens to every session and 807 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

plugin-review

Review plugin quality with tiered checks and dependency scoping. Use for PR and pre-release audits.

athola/claude-night-market · 23 tokens

fastapi

Use when building, reviewing, testing, securing or shipping a FastAPI / async Python service — routers, Pydantic v2 schemas, dependency injection, async SQLAlchemy 2.0, OAuth2/JWT, ASGITransport tests, production wiring. NOT language-level Python or packaging (that is python), NOT engine-level SQL (that is…

ericrisco/rsc-harness · 94 tokens

python

Use when the task is Python itself, in any framework or none: PEP 695 generics, mypy --strict typing, dataclass/Protocol/TypedDict/Enum choices, asyncio.TaskGroup, stdlib idioms, src/ layout + pyproject.toml with uv, ruff+mypy+pytest gate. NOT a FastAPI/ASGI service (that is fastapi), NOT a deep pytest suite (that is…

ericrisco/rsc-harness · 94 tokens

improve-codebase-architecture

Review module boundaries, interface depth and high-leverage refactors with evidence.

seaworld008/Commonly-used-high-value-skills · 22 tokens

python-sast

Python static analysis using bandit. Identifies injection, deserialization, unsafe exec/eval, weak crypto, and hardcoded credentials in Python code.

vladkesler/initrunner · 34 tokens

python-services

Python patterns for CLI tools, async parallelism, and backend services. Use when building CLI apps, async/parallel Python, FastAPI services, background jobs, or configuring Python project tooling (uv, ruff, ty).

iliaal/whetstone · 48 tokens