Skip to content
Back to skills

Prnd Layered Python Code Reviewer

ASecurity

Review Python code changes with a focus on layered architecture boundaries, DI/DIP, configuration validation, typing quality (mypy/flake8 readiness), naming/docstring accuracy, and testability. Use when asked to “code review”, “PR review”, or “리뷰해줘” to prevent repeat feedback on architecture regressions and low-signal changes.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
code-qualitypythoncode-reviewapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill prnd-layered-python-code-reviewer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prnd Layered Python Code Reviewer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prnd Layered Python Code Reviewer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-prnd-layered-python-code-reviewer/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-prnd-layered-python-code-reviewer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prnd-layered-python-code-reviewer
description: Review Python code changes with a focus on layered architecture boundaries, DI/DIP, configuration validation, typing quality (mypy/flake8 readiness), naming/docstring accuracy, and testability. Use when asked to “code review”, “PR review”, or “리뷰해줘” to prevent repeat feedback on architecture regressions and low-signal changes.
---

# Layered Python Code Reviewer

## Overview

Provide a reusable code review workflow and checklist that applies across Python projects, especially ones that aim for layered architecture and dependency inversion. Produce actionable, concrete review comments (not vague style opinions).

## Review Workflow

1. Identify the change scope
   - Summarize touched modules and layers (example layers: `domain/`, `service/`, `dataset/`, `adapters/`, `infra/`).
   - Identify which changes are: (a) core policy/logic, (b) boundary I/O, (c) data shaping, (d) test-only.

2. Apply hard blockers first
   - **Dependency direction (DIP)**: low-level modules must not import high-level policy/service types.
   - **Public interfaces**: avoid leaking raw `dict` across layers; use `TypedDict`, dataclasses, or Pydantic models.
   - **Config correctness**: validate invariants on load (range continuity, required keys, value bounds).
   - **Type/lint hygiene**: fix `None` handling, unused variables, and any `Any` propagation caused by missing types.

3. Apply design-quality checks
   - **Composition root**: wiring (ENV/config/I/O/client construction) stays at the boundary (`create()`/entrypoint).
   - **Separation of concerns**: “build payload/message” vs “send request”, “decide” vs “orchestrate”.
   - **Test seams**: time/randomness/I/O are injectable; core logic is deterministic.

4. Write review output
   - Group comments by: `Architecture`, `DIP/DI`, `Typing`, `Config`, `Error handling`, `Tests`, `Naming/Docs`.
   - For each issue: state impact + preferred pattern + minimal change suggestion.

## References

Load and apply:
- `references/principles.md` for a project-agnostic checklist and comment templates.
- `references/review-themes.md` for common “review-driven refactor” patterns (kept generic on purpose).

## Optional Automation

If your project uses clear “layer folders” under a package root, run:

`python scripts/check_layered_imports.py --root <package_root_dir> --package-name <top_level_package>`

Use flags to match your project layout:
- `--layers domain,service,adapters,infra`
- `--forbid domain:service,adapters,infra`
- `--forbid adapters:service`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.