Single-pass Python correctness, security, and style review on demand; not for multi-reviewer audits before merge (use audit-code-reviewer for that).
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Single-pass Python correctness, security, and style review on demand; not for multi-reviewer audits before merge (use audit-code-reviewer for that).
Old Python Code Review
Workflow
Apply repo-rules-reader to the requested repo rule files. For the default review baseline, read
AGENTS.md, docs/REPO_STYLE.md, docs/PYTHON_STYLE.md, docs/PYTEST_STYLE.md when present,
and docs/CHANGELOG.md.
Extract the review-relevant rules, especially how to run Python, Python style, pytest style,
repo workflow rules, and the latest changelog entry.
Inspect changed files first (git diff, git status --short), then inspect related call sites.
If the repo has docs/active_plans/, identify the active plan document(s) that govern the
change. Otherwise, skip plan-conformance steps.
If an active plan exists, map code and tests to plan requirements, acceptance criteria, and
stated constraints. Otherwise, skip this step.
Prioritize findings by severity: plan mismatch/regressions when applicable,
correctness/safety, then maintainability.
Provide concrete, minimal fixes with before/after examples when a fix is straightforward.
Flag uncertainty explicitly and ask targeted review questions for unclear logic or contracts.
Python style: tabs for indentation, import module names rather than imported symbols when
practical, no relative imports, direct required-key access, minimal try/except, shebangs only on
runnable scripts, and source source_me.sh && python ... command examples.
Pytest style: small deterministic tests, plain asserts, stable behavior-focused expectations,
tmp_path for filesystem tests, and no assertions on dates, collection sizes, required key
lists, hardcoded defaults, function names, or other fragile details.
Performance only when materially relevant.
Fix Guidance
Prefer small, local edits that preserve behavior unless a bug requires behavior change.
Keep fixes aligned with repo Python style and test conventions.
Add or adjust tests for each behavior-changing fix.