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]
Step 5 — Tone and Sources
Be direct and specific. Reference exact line numbers.
Cite verifiable sources (PEP documents, Python docs, well-known style guides)
inline for non-obvious findings. Include the source name and URL.
Explain why, not just what to change.
Assume good intent. Use sandwich communication: open with positives, then findings
by severity descending, then actionable improvement path.
For async coroutine or threading state issues too complex for prose: emit a stateDiagram-v2
Mermaid block showing the problematic and correct state transitions.
1---2name: soulcodex-agentic-code-review-python3description: Code Review — Python4---56## Code Review — Python78Apply Python-specific linting using the checklist in this skill directory.910### Step 0 — Load Project Map1112Check for `.agentic/project-map.md`:13- **If present**: read it. Use the layer structure, key modules table, and non-obvious14 conventions it defines to orient all findings. Skip redundant filesystem exploration.15- **If absent**: run lightweight auto-discovery:16 - Read `pyproject.toml` to identify dependencies and build system17 - Detect framework (FastAPI, Django, Typer, etc.) from dependencies18 - List top-level `src/` or app directories19 - Suggest running the `project-map` skill after this review to avoid this overhead next time2021### Step 1 — Load Checklist2223Read `checklist.md` in this skill directory and apply every item to the codebase.2425### Step 2 — Determine Scope2627- **If the user specifies files**, review those.28- **Otherwise review the current diff**: `git diff HEAD` or staged changes.29- **Do not review files outside stated scope**.3031### Step 3 — Analyze with Python-specific Lenses3233Work through the checklist systematically. For each issue found, note:34- File path and line number35- Risk level: `critical` / `high` / `medium` / `low`36- Description of the issue37- Why it matters38- Verifiable source reference when the finding is non-obvious3940Focus particularly on:41- Type annotation completeness and mypy strict mode violations42- Mutable default arguments43- Async/blocking I/O in coroutines44- Threading safety issues45- Domain modeling with dataclasses/Pydantic4647### Step 4 — Write the Review4849Output the review in this exact format:5051```52## Code Review — Python5354### What Works Well55- [At least one specific positive observation with file reference]5657### Findings5859#### Critical60- `path/to/file.py:42` [critical] Description. Why it must change. *Source: [PEP 484 — Type Hints](https://peps.python.org/pep-0484/)*6162#### High63- `path/to/file.py:18` [high] Description. Why it matters. *Source: ...*6465#### Medium66- `path/to/file.py:7` [medium] Description.6768#### Low69- `path/to/file.py:5` [low] Minor note.7071### Suggested Improvements72[Concrete alternatives and solutions for the most impactful findings]7374### Summary75[One paragraph: overall quality, main risks, merge recommendation]76```7778### Step 5 — Tone and Sources7980- Be direct and specific. Reference exact line numbers.81- Cite verifiable sources (PEP documents, Python docs, well-known style guides)82 inline for non-obvious findings. Include the source name and URL.83- Explain *why*, not just *what* to change.84- Assume good intent. Use sandwich communication: open with positives, then findings85 by severity descending, then actionable improvement path.86- For async coroutine or threading state issues too complex for prose: emit a `stateDiagram-v2`87 Mermaid block showing the problematic and correct state transitions.8889---90> Source: [soulcodex/agentic](https://github.com/soulcodex/agentic) — distributed by [TomeVault](https://tomevault.io).91<!-- tomevault:4.0:skill_md:2026-06-16 -->
Run npx skillmds@latest add tomevault-io/soulcodex-agentic-code-review-python in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Code Review — Python It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.