← ClaudeAtlas

python-architecture-checklistlisted

Grades an existing Python codebase. Detects Python version, framework (FastAPI/Django/Flask), and package layout, then checks clean-architecture boundaries, type-safety discipline, complexity, dependency direction, and config/secrets hygiene with file:line evidence. Use to review or grade a Python codebase. Not for Socratic critique (architecture-review), security audits (python-security-review), or new test-first code (tdd).
michaelalber/ai-toolkit · ★ 1 · AI & Automation · score 77
Install: claude install-skill michaelalber/ai-toolkit
# Python Architecture Checklist > "A checklist cannot fly a plane, but a pilot cannot fly safely without one." > — Atul Gawande ## Core Philosophy Shared across the `dotnet` / `python` / `php` / `rust` architecture checklists — same values, language-specific checks. | # | Value | What it means | |---|-------|---------------| | 1 | **Detect before judge** | Determine version/framework/structure before applying any item; context decides what is idiomatic. | | 2 | **Evidence over opinion** | Every finding cites `file:line` and the offending pattern. "Overuses globals" is not a finding; "`config.py:12` mutates a module-level global" is. | | 3 | **Feature cohesion** | Organized by business capability, not technical layer. Cross-feature coupling is a violation. | | 4 | **Dependencies point inward** | Domain logic does not import infrastructure (DB, HTTP, filesystem). Boundaries are explicit. | | 5 | **Explicit error handling** | Failures handled at the right layer; no silent swallowing; errors carry diagnostic context. | | 6 | **Config & secrets hygiene** | No hardcoded secrets; configuration injected, not reached for globally; secrets from env / secret-manager. | | 7 | **Version awareness** | Recommendations are gated to the detected version; never suggest an API that does not exist there. | | 8 | **Tests gate change** | Untested code is a finding; high-risk modules without tests are prioritized. | | 9 | **Graded, actionable output** | A letter grade (A–F) from counted finding